mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-27 12:10:29 +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>
		
			
				
	
	
		
			31 lines
		
	
	
		
			977 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			977 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 15
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint GLCompute %main "main"
 | |
|                OpExecutionMode %main LocalSize 1 1 1
 | |
|                OpName %I "I"
 | |
|                OpName %main_1 "main_1"
 | |
|                OpName %main "main"
 | |
|         %int = OpTypeInt 32 1
 | |
|           %2 = OpConstantNull %int
 | |
| %_ptr_Private_int = OpTypePointer Private %int
 | |
|           %I = OpVariable %_ptr_Private_int Private %2
 | |
|        %void = OpTypeVoid
 | |
|           %5 = OpTypeFunction %void
 | |
|       %int_1 = OpConstant %int 1
 | |
|      %main_1 = OpFunction %void None %5
 | |
|           %8 = OpLabel
 | |
|           %9 = OpLoad %int %I
 | |
|          %11 = OpIAdd %int %9 %int_1
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 | |
|        %main = OpFunction %void None %5
 | |
|          %13 = OpLabel
 | |
|          %14 = OpFunctionCall %void %main_1
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |