Keep vec1.x l-value in HLSL

Changes in hlsl.shapeConv.frag are just renumbering,
duplicated load (80) has disappeared for whatever reason.
This commit is contained in:
Pavel Asyutchenko 2024-04-19 22:54:52 +02:00 committed by arcady-lunarg
parent d4d821272b
commit e46c1b725c
5 changed files with 149 additions and 68 deletions

View file

@ -0,0 +1,72 @@
hlsl.swizzle.vec1.comp
Shader version: 500
local_size = (1, 1, 1)
0:? Sequence
0:2 Function Definition: @main( ( temp void)
0:2 Function Parameters:
0:? Sequence
0:4 move second child to first child ( temp float)
0:4 direct index ( temp float)
0:4 'f1' ( temp 1-component vector of float)
0:4 Constant:
0:4 0 (const int)
0:4 Constant:
0:4 0.500000
0:2 Function Definition: main( ( temp void)
0:2 Function Parameters:
0:? Sequence
0:2 Function Call: @main( ( temp void)
0:? Linker Objects
Linked compute stage:
Shader version: 500
local_size = (1, 1, 1)
0:? Sequence
0:2 Function Definition: @main( ( temp void)
0:2 Function Parameters:
0:? Sequence
0:4 move second child to first child ( temp float)
0:4 direct index ( temp float)
0:4 'f1' ( temp 1-component vector of float)
0:4 Constant:
0:4 0 (const int)
0:4 Constant:
0:4 0.500000
0:2 Function Definition: main( ( temp void)
0:2 Function Parameters:
0:? Sequence
0:2 Function Call: @main( ( temp void)
0:? Linker Objects
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 13
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main"
ExecutionMode 4 LocalSize 1 1 1
Source HLSL 500
Name 4 "main"
Name 6 "@main("
Name 10 "f1"
2: TypeVoid
3: TypeFunction 2
8: TypeFloat 32
9: TypePointer Function 8(float)
11: 8(float) Constant 1056964608
4(main): 2 Function None 3
5: Label
12: 2 FunctionCall 6(@main()
Return
FunctionEnd
6(@main(): 2 Function None 3
7: Label
10(f1): 9(ptr) Variable Function
Store 10(f1) 11
Return
FunctionEnd