mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 11:45:54 +00:00
These can be used in all sorts of places which are not tracked by sem::Function::TransitivelyReferencedGlobals(). As they're not emitted as variables by any backend, just preserve them. Fixed: tint:1598 Change-Id: I2696486cb2ffe8408bd5dd3090d7d600ca1d170f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101481 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com>
26 lines
895 B
Plaintext
26 lines
895 B
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 12
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %main "main"
|
|
OpExecutionMode %main OriginUpperLeft
|
|
OpName %main "main"
|
|
OpName %a "a"
|
|
OpDecorate %_arr_int_uint_5 ArrayStride 4
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%int = OpTypeInt 32 1
|
|
%uint = OpTypeInt 32 0
|
|
%uint_5 = OpConstant %uint 5
|
|
%_arr_int_uint_5 = OpTypeArray %int %uint_5
|
|
%_ptr_Function__arr_int_uint_5 = OpTypePointer Function %_arr_int_uint_5
|
|
%11 = OpConstantNull %_arr_int_uint_5
|
|
%main = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
%a = OpVariable %_ptr_Function__arr_int_uint_5 Function %11
|
|
OpReturn
|
|
OpFunctionEnd
|