mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 19:55:37 +00:00
Involves expanding the source range of a variable declaration so we can point at something that can include the 'const'. Fixed: tint:1740 Change-Id: Ie8f784de34a1792002aaa708c1b77053be54f1b5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108120 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
bug/tint/1474-b.wgsl:7:5 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
|