MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BindIB

Method BindIB

Source/Engine/GraphicsDevice/WebGPU/GPUContextWebGPU.cpp:332–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void GPUContextWebGPU::BindIB(GPUBuffer* indexBuffer)
333{
334 auto ibWebGPU = (GPUBufferWebGPU*)indexBuffer;
335 _indexBufferDirty = true;
336 _indexBuffer32Bit = indexBuffer->GetFormat() == PixelFormat::R32_UInt;
337 _indexBuffer.Buffer = ibWebGPU->Buffer;
338 _indexBuffer.Offset = 0;
339 _indexBuffer.Size = indexBuffer->GetSize();
340}
341
342void GPUContextWebGPU::BindSampler(int32 slot, GPUSampler* sampler)
343{

Callers

nothing calls this directly

Calls 2

GetFormatMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected