Skip to content

Commit

Permalink
Clarify zero cases of occlusion queries (gpuweb#4062)
Browse files Browse the repository at this point in the history
Fixes 3895
  • Loading branch information
kainino0x authored Apr 25, 2023
1 parent e4a98f9 commit da4964f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -12002,7 +12002,9 @@ attachments used by this encoder.

1. Let |passingFragments| be non-zero if any fragment samples passed all per-fragment
tests since the corresponding {{GPURenderPassEncoder/beginOcclusionQuery()}}
command was executed.
command was executed, and zero otherwise.

Note: If no draw calls occurred, |passingFragments| is zero.
1. Write |passingFragments| into
|this|.{{GPURenderPassEncoder/[[occlusion_query_set]]}} at index
|renderState|.{{RenderState/[[occlusionQueryIndex]]}}.
Expand Down

0 comments on commit da4964f

Please sign in to comment.