Replies: 1 comment 1 reply
-
|
More generally, it would be nice to expose render passes into specific area (as opposed to the whole render target space). Also would allows us to do gpuweb/gpuweb#503 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Vulkan and DX and OpenGL, I can clear render pass with partial Texture, but in wgpu I can't find way that partial clear ?
In Vulkan for example:
VkRenderPassBeginInfo renderPassBeginInfo = vkTools::initializers::renderPassBeginInfo();
renderPassBeginInfo.renderPass = renderPass;
// this can set part of render, not the full pass
renderPassBeginInfo.renderArea.offset.x = 0;
renderPassBeginInfo.renderArea.offset.y = 0;
renderPassBeginInfo.renderArea.extent.width = width;
renderPassBeginInfo.renderArea.extent.height = height;
renderPassBeginInfo.clearValueCount = 2;
renderPassBeginInfo.pClearValues = clearValues;
Beta Was this translation helpful? Give feedback.
All reactions