mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 14:13:39 +00:00
It wasn't actually called, as array is parsed like any other templated type. Fixed: tint:1850 Change-Id: I2f1c8b8990cf7f3a5f8b09316e4dc539dbe6535a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121520 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 20
|
|
; 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"
|
|
OpName %shr_const_expr "shr_const_expr"
|
|
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
|
|
%shr_const_expr = OpVariable %_ptr_Function__arr_float_uint_4 Function %11
|
|
%16 = OpLoad %_arr_float_uint_4 %signed_literal
|
|
OpStore %unsigned_literal %16
|
|
%17 = OpLoad %_arr_float_uint_4 %signed_literal
|
|
OpStore %signed_constant %17
|
|
%18 = OpLoad %_arr_float_uint_4 %signed_literal
|
|
OpStore %unsigned_constant %18
|
|
%19 = OpLoad %_arr_float_uint_4 %signed_literal
|
|
OpStore %shr_const_expr %19
|
|
OpReturn
|
|
OpFunctionEnd
|