mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-27 12:10:29 +00:00 
			
		
		
		
	Added to hlsl, msl, glsl, and spirv backends. Bug: tint:1300 Change-Id: I06062bd8e4b32acbc4a8670b060a7a22bc1ae034 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80600 Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 31
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint GLCompute %main "main"
 | |
|                OpExecutionMode %main LocalSize 1 1 1
 | |
|                OpName %f "f"
 | |
|                OpName %a "a"
 | |
|                OpName %b "b"
 | |
|                OpName %c "c"
 | |
|                OpName %main "main"
 | |
|         %int = OpTypeInt 32 1
 | |
|           %1 = OpTypeFunction %int %int %int %int
 | |
|        %void = OpTypeVoid
 | |
|          %10 = OpTypeFunction %void
 | |
|       %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_8 = OpConstant %int 8
 | |
|       %int_9 = OpConstant %int 9
 | |
|      %int_10 = OpConstant %int 10
 | |
|       %int_7 = OpConstant %int 7
 | |
|      %int_11 = OpConstant %int 11
 | |
|           %f = OpFunction %int None %1
 | |
|           %a = OpFunctionParameter %int
 | |
|           %b = OpFunctionParameter %int
 | |
|           %c = OpFunctionParameter %int
 | |
|           %7 = OpLabel
 | |
|           %8 = OpIMul %int %a %b
 | |
|           %9 = OpIAdd %int %8 %c
 | |
|                OpReturnValue %9
 | |
|                OpFunctionEnd
 | |
|        %main = OpFunction %void None %10
 | |
|          %13 = OpLabel
 | |
|          %14 = OpFunctionCall %int %f %int_1 %int_2 %int_3
 | |
|          %18 = OpFunctionCall %int %f %int_4 %int_5 %int_6
 | |
|          %22 = OpFunctionCall %int %f %int_8 %int_9 %int_10
 | |
|          %26 = OpFunctionCall %int %f %int_7 %22 %int_11
 | |
|          %29 = OpIMul %int %18 %26
 | |
|          %30 = OpIAdd %int %14 %29
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |