mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-27 20:20:28 +00:00 
			
		
		
		
	Spec change: https://github.com/gpuweb/gpuweb/pull/2427 Reverses: tint:867 This reverts and fixes commits: b6fdcc54df6e012578e69550788e2b4b2b611c32 10442eff7db4271d53eed553795e655068488276 Added a bunch of end-to-end tests. Fixed: tint:1352 Change-Id: I34968243bbec1cab838c8ba50a6f027146bbfd06 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75401 Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 28
 | |
| ; 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 %f "f"
 | |
|                OpName %x "x"
 | |
|                OpName %a "a"
 | |
|                OpDecorate %_arr_int_uint_8 ArrayStride 4
 | |
|        %void = OpTypeVoid
 | |
|           %1 = OpTypeFunction %void
 | |
|         %int = OpTypeInt 32 1
 | |
|           %5 = OpTypeFunction %int %int
 | |
|        %uint = OpTypeInt 32 0
 | |
|      %uint_8 = OpConstant %uint 8
 | |
| %_arr_int_uint_8 = OpTypeArray %int %uint_8
 | |
|       %int_1 = OpConstant %int 1
 | |
|       %int_2 = OpConstant %int 2
 | |
|       %int_3 = OpConstant %int 3
 | |
|       %int_4 = OpConstant %int 4
 | |
|       %int_5 = OpConstant %int 5
 | |
|       %int_6 = OpConstant %int 6
 | |
|       %int_7 = OpConstant %int 7
 | |
|       %int_8 = OpConstant %int 8
 | |
|          %21 = OpConstantComposite %_arr_int_uint_8 %int_1 %int_2 %int_3 %int_4 %int_5 %int_6 %int_7 %int_8
 | |
| %_ptr_Function__arr_int_uint_8 = OpTypePointer Function %_arr_int_uint_8
 | |
|          %24 = OpConstantNull %_arr_int_uint_8
 | |
| %_ptr_Function_int = OpTypePointer Function %int
 | |
| %unused_entry_point = OpFunction %void None %1
 | |
|           %4 = OpLabel
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 | |
|           %f = OpFunction %int None %5
 | |
|           %x = OpFunctionParameter %int
 | |
|           %9 = OpLabel
 | |
|           %a = OpVariable %_ptr_Function__arr_int_uint_8 Function %24
 | |
|                OpStore %a %21
 | |
|          %26 = OpAccessChain %_ptr_Function_int %a %x
 | |
|          %27 = OpLoad %int %26
 | |
|                OpReturnValue %27
 | |
|                OpFunctionEnd
 |