10 const std::shared_ptr<CommandQueueWG> owningQueue;
17 void BindRenderPipeline(RGLRenderPipelinePtr)
final;
18 void BeginCompute(RGLComputePipelinePtr)
final;
19 void EndCompute()
final;
20 void DispatchCompute(uint32_t threadsX, uint32_t threadsY, uint32_t threadsZ, uint32_t threadsPerThreadgroupX=1, uint32_t threadsPerThreadgroupY=1, uint32_t threadsPerThreadgroupZ=1)
final;
22 void BeginRendering(RGLRenderPassPtr)
final;
23 void EndRendering()
final;
25 void BindBuffer(RGLBufferPtr buffer, uint32_t binding, uint32_t offsetIntoBuffer = 0)
final;
26 void BindComputeBuffer(RGLBufferPtr buffer, uint32_t binding, uint32_t offsetIntoBuffer = 0)
final;
27 void SetVertexBuffer(RGLBufferPtr buffer,
const VertexBufferBinding& bindingInfo = {})
final;
29 void SetIndexBuffer(RGLBufferPtr buffer)
final;
31 void SetVertexBytes(
const untyped_span data, uint32_t offset)
final;
32 void SetFragmentBytes(
const untyped_span data, uint32_t offset)
final;
33 void SetComputeBytes(
const untyped_span data, uint32_t offset)
final;
35 void SetVertexSampler(RGLSamplerPtr sampler, uint32_t index)
final;
36 void SetFragmentSampler(RGLSamplerPtr sampler, uint32_t index)
final;
37 void SetComputeSampler(RGLSamplerPtr sampler, uint32_t index)
final;
39 void SetVertexTexture(
const TextureView& texture, uint32_t index)
final;
40 void SetFragmentTexture(
const TextureView& texture, uint32_t index)
final;
41 void SetComputeTexture(
const TextureView& texture, uint32_t index)
final;
48 void SetViewport(
const Viewport&)
final;
49 void SetScissor(
const Rect&)
final;
51 void CopyTextureToBuffer(
TextureView& sourceTexture,
const Rect& sourceRect,
size_t offset, RGLBufferPtr desetBuffer)
final;
53 void CopyBufferToTexture(RGLBufferPtr source, uint32_t size,
const TextureDestConfig& dest)
final;
63 void BeginRenderDebugMarker(
const std::string& label)
final;
64 void BeginComputeDebugMarker(
const std::string& label)
final;
66 void EndRenderDebugMarker()
final;
67 void EndComputeDebugMarker()
final;
72 void BlockUntilCompleted()
final;
75 WGPUCommandEncoder currentCommandEncoder;
76 WGPURenderPassEncoder currentRenderPassEncoder;
77 std::vector<WGPUCommandBuffer> commandBuffers;
Definition CommandBuffer.hpp:159
Definition CommandBuffer.hpp:146
Definition Texture.hpp:43