mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
s/OutputAttachment/RenderAttachment/g
But also keep OutputAttachment so it can be gradually changed in all dependants. See https://github.com/gpuweb/gpuweb/pull/1168 and https://github.com/gpuweb/gpuweb/pull/1168 Bug: dawn:22 Change-Id: I6a1ec1de6c22ca4deac88b7fffde4b98d9d54a84 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31040 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
25eeaa3d39
commit
6b087819dd
@@ -445,7 +445,7 @@ namespace dawn_native { namespace opengl {
|
||||
// Clear textures that are not output attachments. Output attachments will be
|
||||
// cleared in BeginRenderPass by setting the loadop to clear when the
|
||||
// texture subresource has not been initialized before the render pass.
|
||||
if (!(usages.textureUsages[i].usage & wgpu::TextureUsage::OutputAttachment)) {
|
||||
if (!(usages.textureUsages[i].usage & wgpu::TextureUsage::RenderAttachment)) {
|
||||
texture->EnsureSubresourceContentInitialized(texture->GetAllSubresources());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user