mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 20:31:20 +00:00
This is required to handle materialized values, and for constant expressions. Bug: tint:1504 Change-Id: If0a49e9b03566c06aa6e4e4c284fc427e1541e91 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92082 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 18
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %f "f"
|
|
OpExecutionMode %f OriginUpperLeft
|
|
OpName %S "S"
|
|
OpMemberName %S 0 "m"
|
|
OpName %A "A"
|
|
OpName %f "f"
|
|
OpMemberDecorate %S 0 Offset 0
|
|
OpDecorate %_arr_S_uint_4 ArrayStride 4
|
|
%int = OpTypeInt 32 1
|
|
%S = OpTypeStruct %int
|
|
%uint = OpTypeInt 32 0
|
|
%uint_4 = OpConstant %uint 4
|
|
%_arr_S_uint_4 = OpTypeArray %S %uint_4
|
|
%_ptr_Private__arr_S_uint_4 = OpTypePointer Private %_arr_S_uint_4
|
|
%8 = OpConstantNull %_arr_S_uint_4
|
|
%A = OpVariable %_ptr_Private__arr_S_uint_4 Private %8
|
|
%void = OpTypeVoid
|
|
%9 = OpTypeFunction %void
|
|
%13 = OpConstantNull %int
|
|
%_ptr_Private_S = OpTypePointer Private %S
|
|
%int_1 = OpConstant %int 1
|
|
%17 = OpConstantComposite %S %int_1
|
|
%f = OpFunction %void None %9
|
|
%12 = OpLabel
|
|
%15 = OpAccessChain %_ptr_Private_S %A %13
|
|
OpStore %15 %17
|
|
OpReturn
|
|
OpFunctionEnd
|