bumping nzsl version; ci skip
This commit is contained in:
@@ -3,25 +3,15 @@ module;
|
||||
|
||||
struct FragOut
|
||||
{
|
||||
[location(0)] value: f32,
|
||||
[location(1)] value2: f32
|
||||
}
|
||||
|
||||
fn Half(inout color: vec3[f32], out value: f32, in inValue: f32, inValue2: f32)
|
||||
{
|
||||
color *= 2.0;
|
||||
value = 10.0;
|
||||
[location(0)] color: vec4[i32]
|
||||
}
|
||||
|
||||
[entry(frag)]
|
||||
fn main() -> FragOut
|
||||
{
|
||||
let output: FragOut;
|
||||
let mainColor = vec3[f32](1.0, 1.0, 1.0);
|
||||
let inValue = 2.0;
|
||||
let inValue2 = 1.0;
|
||||
Half(inout mainColor, out output.value2, in inValue, inValue2);
|
||||
output.value = mainColor.x;
|
||||
|
||||
return output;
|
||||
let base: i32 = 4;
|
||||
let value: i32 = base << 3;
|
||||
let output: FragOut;
|
||||
output.color = vec4[i32](value, value, value, value);
|
||||
return output;
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,88 +1,50 @@
|
||||
Version 1.0
|
||||
Generator: 2560130
|
||||
Bound: 51
|
||||
Bound: 29
|
||||
Schema: 0
|
||||
OpCapability Capability(Shader)
|
||||
OpMemoryModel AddressingModel(Logical) MemoryModel(GLSL450)
|
||||
OpEntryPoint ExecutionModel(Fragment) %20 "main" %11 %12
|
||||
OpExecutionMode %20 ExecutionMode(OriginUpperLeft)
|
||||
OpEntryPoint ExecutionModel(Fragment) %13 "main" %6
|
||||
OpExecutionMode %13 ExecutionMode(OriginUpperLeft)
|
||||
OpSource SourceLanguage(NZSL) 4198400
|
||||
OpSourceExtension "Version: 1.1"
|
||||
OpName %13 "FragOut"
|
||||
OpMemberName %13 0 "value"
|
||||
OpMemberName %13 1 "value2"
|
||||
OpName %11 "value"
|
||||
OpName %12 "value2"
|
||||
OpName %19 "Half"
|
||||
OpName %20 "main"
|
||||
OpDecorate %11 Decoration(Location) 0
|
||||
OpDecorate %12 Decoration(Location) 1
|
||||
OpMemberDecorate %13 0 Decoration(Offset) 0
|
||||
OpMemberDecorate %13 1 Decoration(Offset) 4
|
||||
OpName %7 "FragOut"
|
||||
OpMemberName %7 0 "color"
|
||||
OpName %6 "color"
|
||||
OpName %13 "main"
|
||||
OpDecorate %6 Decoration(Location) 0
|
||||
OpMemberDecorate %7 0 Decoration(Offset) 0
|
||||
%1 = OpTypeVoid
|
||||
%2 = OpTypeFloat 32
|
||||
%3 = OpTypeVector %2 3
|
||||
%4 = OpTypePointer StorageClass(Function) %3
|
||||
%5 = OpTypePointer StorageClass(Function) %2
|
||||
%6 = OpTypeFunction %1 %4 %5 %5 %5
|
||||
%7 = OpConstant %2 f32(2)
|
||||
%8 = OpConstant %2 f32(10)
|
||||
%9 = OpTypeFunction %1
|
||||
%10 = OpTypePointer StorageClass(Output) %2
|
||||
%13 = OpTypeStruct %2 %2
|
||||
%14 = OpTypePointer StorageClass(Function) %13
|
||||
%15 = OpConstant %2 f32(1)
|
||||
%16 = OpTypeInt 32 1
|
||||
%17 = OpConstant %16 i32(1)
|
||||
%18 = OpConstant %16 i32(0)
|
||||
%11 = OpVariable %10 StorageClass(Output)
|
||||
%12 = OpVariable %10 StorageClass(Output)
|
||||
%19 = OpFunction %1 FunctionControl(0) %6
|
||||
%21 = OpFunctionParameter %4
|
||||
%22 = OpFunctionParameter %5
|
||||
%23 = OpFunctionParameter %5
|
||||
%24 = OpFunctionParameter %5
|
||||
%25 = OpLabel
|
||||
%26 = OpLoad %3 %21
|
||||
%27 = OpVectorTimesScalar %3 %26 %7
|
||||
OpStore %21 %27
|
||||
OpStore %22 %8
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%20 = OpFunction %1 FunctionControl(0) %9
|
||||
%28 = OpLabel
|
||||
%29 = OpVariable %14 StorageClass(Function)
|
||||
%30 = OpVariable %4 StorageClass(Function)
|
||||
%31 = OpVariable %5 StorageClass(Function)
|
||||
%32 = OpVariable %5 StorageClass(Function)
|
||||
%33 = OpVariable %4 StorageClass(Function)
|
||||
%34 = OpVariable %5 StorageClass(Function)
|
||||
%35 = OpVariable %5 StorageClass(Function)
|
||||
%36 = OpVariable %5 StorageClass(Function)
|
||||
%37 = OpCompositeConstruct %3 %15 %15 %15
|
||||
OpStore %30 %37
|
||||
OpStore %31 %7
|
||||
OpStore %32 %15
|
||||
%38 = OpLoad %3 %30
|
||||
OpStore %33 %38
|
||||
%39 = OpLoad %2 %31
|
||||
OpStore %35 %39
|
||||
%40 = OpLoad %2 %32
|
||||
OpStore %36 %40
|
||||
%41 = OpFunctionCall %1 %19 %33 %34 %35 %36
|
||||
%42 = OpLoad %3 %33
|
||||
OpStore %30 %42
|
||||
%43 = OpLoad %2 %34
|
||||
%44 = OpAccessChain %5 %29 %17
|
||||
OpStore %44 %43
|
||||
%45 = OpLoad %3 %30
|
||||
%46 = OpCompositeExtract %2 %45 0
|
||||
%47 = OpAccessChain %5 %29 %18
|
||||
OpStore %47 %46
|
||||
%48 = OpLoad %13 %29
|
||||
%49 = OpCompositeExtract %2 %48 0
|
||||
OpStore %11 %49
|
||||
%50 = OpCompositeExtract %2 %48 1
|
||||
OpStore %12 %50
|
||||
%2 = OpTypeFunction %1
|
||||
%3 = OpTypeInt 32 1
|
||||
%4 = OpTypeVector %3 4
|
||||
%5 = OpTypePointer StorageClass(Output) %4
|
||||
%7 = OpTypeStruct %4
|
||||
%8 = OpConstant %3 i32(4)
|
||||
%9 = OpTypePointer StorageClass(Function) %3
|
||||
%10 = OpConstant %3 i32(3)
|
||||
%11 = OpTypePointer StorageClass(Function) %7
|
||||
%12 = OpConstant %3 i32(0)
|
||||
%26 = OpTypePointer StorageClass(Function) %4
|
||||
%6 = OpVariable %5 StorageClass(Output)
|
||||
%13 = OpFunction %1 FunctionControl(0) %2
|
||||
%14 = OpLabel
|
||||
%15 = OpVariable %9 StorageClass(Function)
|
||||
%16 = OpVariable %9 StorageClass(Function)
|
||||
%17 = OpVariable %11 StorageClass(Function)
|
||||
OpStore %15 %8
|
||||
%18 = OpLoad %3 %15
|
||||
%19 = OpShiftLeftLogical %3 %18 %10
|
||||
OpStore %16 %19
|
||||
%20 = OpLoad %3 %16
|
||||
%21 = OpLoad %3 %16
|
||||
%22 = OpLoad %3 %16
|
||||
%23 = OpLoad %3 %16
|
||||
%24 = OpCompositeConstruct %4 %20 %21 %22 %23
|
||||
%25 = OpAccessChain %26 %17 %12
|
||||
OpStore %25 %24
|
||||
%27 = OpLoad %7 %17
|
||||
%28 = OpCompositeExtract %4 %27 0
|
||||
OpStore %6 %28
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user