mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-15 09:35:57 +00:00
This CL updates the list of reserved words to match the WGSL spec. The use of a reserved word is changed from an error to a deprecation at the moment be cause the majority of the list would be new errors. Bug: tint:1633 tint:1624 Change-Id: I498db41689cdd666dfb291b1a6761a1182c87ec8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98042 Reviewed-by: David Neto <dneto@google.com> Reviewed-by: Ben Clayton <bclayton@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 16
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
OpName %foo "foo"
|
|
OpName %explicitStride "explicitStride"
|
|
OpName %implictStride "implictStride"
|
|
OpDecorate %_arr_int_uint_2 ArrayStride 4
|
|
%void = OpTypeVoid
|
|
%1 = OpTypeFunction %void
|
|
%int = OpTypeInt 32 1
|
|
%uint = OpTypeInt 32 0
|
|
%uint_2 = OpConstant %uint 2
|
|
%_arr_int_uint_2 = OpTypeArray %int %uint_2
|
|
%_ptr_Function__arr_int_uint_2 = OpTypePointer Function %_arr_int_uint_2
|
|
%13 = OpConstantNull %_arr_int_uint_2
|
|
%unused_entry_point = OpFunction %void None %1
|
|
%4 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|
|
%foo = OpFunction %void None %1
|
|
%6 = OpLabel
|
|
%explicitStride = OpVariable %_ptr_Function__arr_int_uint_2 Function %13
|
|
%implictStride = OpVariable %_ptr_Function__arr_int_uint_2 Function %13
|
|
%15 = OpLoad %_arr_int_uint_2 %explicitStride
|
|
OpStore %implictStride %15
|
|
OpReturn
|
|
OpFunctionEnd
|