mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 20:01:22 +00:00
Enable the parsing of 'const'. Warn on use of module-scope 'let', and automatically replace with 'const'. Fixed: tint:1580 Change-Id: I214aabca80686dc6b60ae21a7a57fbfb4898ea83 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93786 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 17
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main"
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %main "main"
|
|
OpName %signed_literal "signed_literal"
|
|
OpName %unsigned_literal "unsigned_literal"
|
|
OpName %signed_constant "signed_constant"
|
|
OpName %unsigned_constant "unsigned_constant"
|
|
OpDecorate %_arr_float_uint_4 ArrayStride 4
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%float = OpTypeFloat 32
|
|
%uint = OpTypeInt 32 0
|
|
%uint_4 = OpConstant %uint 4
|
|
%_arr_float_uint_4 = OpTypeArray %float %uint_4
|
|
%_ptr_Function__arr_float_uint_4 = OpTypePointer Function %_arr_float_uint_4
|
|
%11 = OpConstantNull %_arr_float_uint_4
|
|
%main = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
%signed_literal = OpVariable %_ptr_Function__arr_float_uint_4 Function %11
|
|
%unsigned_literal = OpVariable %_ptr_Function__arr_float_uint_4 Function %11
|
|
%signed_constant = OpVariable %_ptr_Function__arr_float_uint_4 Function %11
|
|
%unsigned_constant = OpVariable %_ptr_Function__arr_float_uint_4 Function %11
|
|
%15 = OpLoad %_arr_float_uint_4 %unsigned_constant
|
|
OpStore %signed_literal %15
|
|
%16 = OpLoad %_arr_float_uint_4 %unsigned_literal
|
|
OpStore %signed_constant %16
|
|
OpReturn
|
|
OpFunctionEnd
|