mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 02:15:43 +00:00
Deprecate renderpass color/depth .attachment
As of https://github.com/gpuweb/gpuweb/pull/1352 the spec indicates that GPURenderPassColorAttachmentDescriptor and GPURenderPassDepthStencilAttachmentDescriptor should use .view rather than .attachment to indicate the TextureView associated with the render pass attachment. Bug: dawn:762 Change-Id: I70d615e19d8e7aae5b26aa5965c7109289ab868b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47902 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
12953caa42
commit
5e6a092703
@@ -104,14 +104,14 @@ namespace utils {
|
||||
uint32_t colorAttachmentIndex = 0;
|
||||
for (const wgpu::TextureView& colorAttachment : colorAttachmentInfo) {
|
||||
if (colorAttachment.Get() != nullptr) {
|
||||
cColorAttachments[colorAttachmentIndex].attachment = colorAttachment;
|
||||
cColorAttachments[colorAttachmentIndex].view = colorAttachment;
|
||||
}
|
||||
++colorAttachmentIndex;
|
||||
}
|
||||
colorAttachments = cColorAttachments.data();
|
||||
|
||||
if (depthStencil.Get() != nullptr) {
|
||||
cDepthStencilAttachmentInfo.attachment = depthStencil;
|
||||
cDepthStencilAttachmentInfo.view = depthStencil;
|
||||
depthStencilAttachment = &cDepthStencilAttachmentInfo;
|
||||
} else {
|
||||
depthStencilAttachment = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user