mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 08:54:13 +00:00
420b7913d4
2820ab0b51 Merge pull request #1076 from KhronosGroup/bitcast-pre-330-glsl 63bcbd511e GLSL: Need extension to use bitcast on GLSL < 330. 9f3bebe3d0 Merge pull request #1075 from lifpan/master b11c20fc1d Remove unreasonable assertion for OpTypeImage Sampled parameter. 1a592b7c0f Merge pull request #1067 from cdavis5e/msl-scalar-block-layout 28454facbb MSL: Handle packed matrices. ea5c0ed82f MSL: Fix alignment of packed types. 44f688bf0b Merge pull request #1070 from KhronosGroup/fix-1066 25c74b324e Forget loop variable enables after emitting block chain. 6b010e0cbc Merge pull request #1069 from KhronosGroup/fix-1053 f6f849397e MSL: Re-roll array expressions in initializers. e5fa7edfd6 MSL: Support scalar block layout. git-subtree-dir: deps/SPIRV-Cross git-subtree-split: 2820ab0b51bf5e4187435d904b34e762b988f48b
68 lines
2.3 KiB
Plaintext
68 lines
2.3 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos Glslang Reference Front End; 1
|
|
; Bound: 38
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint GLCompute %4 "main"
|
|
OpExecutionMode %4 LocalSize 1 1 1
|
|
OpSource ESSL 310
|
|
OpName %4 "main"
|
|
OpName %10 "SSBO0"
|
|
OpMemberName %10 0 "scalar"
|
|
OpMemberName %10 1 "vec2_val"
|
|
OpMemberName %10 2 "vec3_val"
|
|
OpMemberName %10 3 "vec4_val"
|
|
OpName %12 ""
|
|
OpMemberDecorate %10 0 Offset 0
|
|
OpMemberDecorate %10 1 Offset 8
|
|
OpMemberDecorate %10 2 Offset 16
|
|
OpMemberDecorate %10 3 Offset 32
|
|
OpDecorate %10 BufferBlock
|
|
OpDecorate %12 DescriptorSet 0
|
|
OpDecorate %12 Binding 0
|
|
%2 = OpTypeVoid
|
|
%3 = OpTypeFunction %2
|
|
%6 = OpTypeFloat 32
|
|
%7 = OpTypeVector %6 2
|
|
%8 = OpTypeVector %6 3
|
|
%9 = OpTypeVector %6 4
|
|
%10 = OpTypeStruct %6 %7 %8 %9
|
|
%11 = OpTypePointer Uniform %10
|
|
%12 = OpVariable %11 Uniform
|
|
%13 = OpTypeInt 32 1
|
|
%14 = OpConstant %13 0
|
|
%15 = OpTypePointer Uniform %6
|
|
%20 = OpConstant %13 1
|
|
%21 = OpTypePointer Uniform %7
|
|
%26 = OpConstant %13 2
|
|
%27 = OpTypePointer Uniform %8
|
|
%32 = OpConstant %13 3
|
|
%33 = OpTypePointer Uniform %9
|
|
%4 = OpFunction %2 None %3
|
|
%5 = OpLabel
|
|
%16 = OpAccessChain %15 %12 %14
|
|
%17 = OpLoad %6 %16
|
|
%18 = OpQuantizeToF16 %6 %17
|
|
%19 = OpAccessChain %15 %12 %14
|
|
OpStore %19 %18
|
|
%22 = OpAccessChain %21 %12 %20
|
|
%23 = OpLoad %7 %22
|
|
%24 = OpQuantizeToF16 %7 %23
|
|
%25 = OpAccessChain %21 %12 %20
|
|
OpStore %25 %24
|
|
%28 = OpAccessChain %27 %12 %26
|
|
%29 = OpLoad %8 %28
|
|
%30 = OpQuantizeToF16 %8 %29
|
|
%31 = OpAccessChain %27 %12 %26
|
|
OpStore %31 %30
|
|
%34 = OpAccessChain %33 %12 %32
|
|
%35 = OpLoad %9 %34
|
|
%36 = OpQuantizeToF16 %9 %35
|
|
%37 = OpAccessChain %33 %12 %32
|
|
OpStore %37 %36
|
|
OpReturn
|
|
OpFunctionEnd
|