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

Method Resolve

Source/Engine/GraphicsDevice/WebGPU/GPUDeviceWebGPU.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void GPUQuerySetWebGPU::Resolve(WGPUCommandEncoder encoder)
100{
101 ASSERT(_index != 0 && _state == Active);
102 wgpuCommandEncoderResolveQuerySet(encoder, Set, 0, _index, _queryBuffer, 0);
103 wgpuCommandEncoderCopyBufferToBuffer(encoder, _queryBuffer, 0, _readBuffer, 0, _index * sizeof(uint64));
104 _state = Resolved;
105}
106
107bool GPUQuerySetWebGPU::Read(uint32 index, uint64& result, bool wait)
108{

Callers 1

FlushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected