-
Notifications
You must be signed in to change notification settings - Fork 329
Description
I was looking at the history of previous discussions and in #1376 (comment) it is noted:
storeOp to be "clear" (which discards the multisampled data, and only keeps the resolved data)
Assuming the reference to "clear" here now maps to "discard", does this mean that when colorAttachment.resolveTarget is set but storeOp == "discard", then the MSAA contents are still resolved to GPURenderPassColorAttachment.view but the contents of the resolveTarget are discarded?
That would be preferred but I couldn't find definitive language in the specification confirming this.
I read the wording in https://www.w3.org/TR/webgpu/#render-pass-encoder-finalization though I don't understand the wording:
If colorAttachment.loadOp is:
"store"
Ensure the contents of the framebuffer memory associated with colorSubregion are stored in colorSubregion.
"discard"
Set every texel of colorSubregion to zero.
Assuming loadOp
should be storeOp
then it seems like that is not the case? Though it would be preferred if it was