mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	docs/ -> docs/tint/ fuzzers/ -> src/tint/fuzzers/ samples/ -> src/tint/cmd/ src/ -> src/tint/ test/ -> test/tint/ BUG=tint:1418,tint:1433 Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ryan Harrison <rharrison@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 GLCompute %main "main"
 | |
|                OpExecutionMode %main LocalSize 1 1 1
 | |
|                OpName %func "func"
 | |
|                OpName %value "value"
 | |
|                OpName %pointer "pointer"
 | |
|                OpName %main "main"
 | |
|                OpName %i "i"
 | |
|        %void = OpTypeVoid
 | |
|         %int = OpTypeInt 32 1
 | |
| %_ptr_Function_int = OpTypePointer Function %int
 | |
|           %1 = OpTypeFunction %void %int %_ptr_Function_int
 | |
|          %10 = OpTypeFunction %void
 | |
|     %int_123 = OpConstant %int 123
 | |
|          %15 = OpConstantNull %int
 | |
|        %func = OpFunction %void None %1
 | |
|       %value = OpFunctionParameter %int
 | |
|     %pointer = OpFunctionParameter %_ptr_Function_int
 | |
|           %8 = OpLabel
 | |
|                OpStore %pointer %value
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 | |
|        %main = OpFunction %void None %10
 | |
|          %12 = OpLabel
 | |
|           %i = OpVariable %_ptr_Function_int Function %15
 | |
|                OpStore %i %int_123
 | |
|          %16 = OpFunctionCall %void %func %int_123 %i
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |