mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-06 04:05:40 +00:00
Fixed: tint:1474 Change-Id: I462ae7bdb17a394b0a4c185fc815fe9727044555 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105963 Commit-Queue: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
bug/tint/1474-b.wgsl:7:9 warning: code is unreachable
|
|
let non_uniform_cond = non_uniform_value == 0;
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 9
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %main "main"
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
OpName %non_uniform_value_block "non_uniform_value_block"
|
|
OpMemberName %non_uniform_value_block 0 "inner"
|
|
OpName %non_uniform_value "non_uniform_value"
|
|
OpName %main "main"
|
|
OpDecorate %non_uniform_value_block Block
|
|
OpMemberDecorate %non_uniform_value_block 0 Offset 0
|
|
OpDecorate %non_uniform_value DescriptorSet 0
|
|
OpDecorate %non_uniform_value Binding 0
|
|
%int = OpTypeInt 32 1
|
|
%non_uniform_value_block = OpTypeStruct %int
|
|
%_ptr_StorageBuffer_non_uniform_value_block = OpTypePointer StorageBuffer %non_uniform_value_block
|
|
%non_uniform_value = OpVariable %_ptr_StorageBuffer_non_uniform_value_block StorageBuffer
|
|
%void = OpTypeVoid
|
|
%5 = OpTypeFunction %void
|
|
%main = OpFunction %void None %5
|
|
%8 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|