Home | History | Annotate | Download | only in baseResults
      1 hlsl.samplecmp.dualmode.frag
      2 WARNING: AST will form illegal SPIR-V; need to transform to legalize
      3 Shader version: 500
      4 gl_FragCoord origin is upper left
      5 0:? Sequence
      6 0:7  Function Definition: @main( ( temp 4-component vector of float)
      7 0:7    Function Parameters: 
      8 0:?     Sequence
      9 0:10      texture ( temp float)
     10 0:10        Construct combined texture-sampler ( temp sampler1DShadow)
     11 0:10          'g_tTex' (layout( binding=3) uniform texture1DShadow)
     12 0:10          'g_sSampCmp' (layout( binding=1) uniform sampler)
     13 0:10        Construct vec2 ( temp 2-component vector of float)
     14 0:10          Constant:
     15 0:10            0.100000
     16 0:10          Constant:
     17 0:10            0.750000
     18 0:11      texture ( temp 4-component vector of float)
     19 0:11        Construct combined texture-sampler ( temp sampler1D)
     20 0:11          'g_tTex' (layout( binding=3) uniform texture1D)
     21 0:11          'g_sSamp' (layout( binding=0) uniform sampler)
     22 0:11        Constant:
     23 0:11          0.100000
     24 0:13      Branch: Return with expression
     25 0:13        Constant:
     26 0:13          0.000000
     27 0:13          0.000000
     28 0:13          0.000000
     29 0:13          0.000000
     30 0:7  Function Definition: main( ( temp void)
     31 0:7    Function Parameters: 
     32 0:?     Sequence
     33 0:7      move second child to first child ( temp 4-component vector of float)
     34 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     35 0:7        Function Call: @main( ( temp 4-component vector of float)
     36 0:?   Linker Objects
     37 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
     38 0:?     'g_sSampCmp' (layout( binding=1) uniform sampler)
     39 0:?     'g_tTex' (layout( binding=3) uniform texture1DShadow)
     40 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     41 0:?     'g_tTex' (layout( binding=3) uniform texture1D)
     42 
     43 
     44 Linked fragment stage:
     45 
     46 
     47 Shader version: 500
     48 gl_FragCoord origin is upper left
     49 0:? Sequence
     50 0:7  Function Definition: @main( ( temp 4-component vector of float)
     51 0:7    Function Parameters: 
     52 0:?     Sequence
     53 0:10      texture ( temp float)
     54 0:10        Construct combined texture-sampler ( temp sampler1DShadow)
     55 0:10          'g_tTex' (layout( binding=3) uniform texture1DShadow)
     56 0:10          'g_sSampCmp' (layout( binding=1) uniform sampler)
     57 0:10        Construct vec2 ( temp 2-component vector of float)
     58 0:10          Constant:
     59 0:10            0.100000
     60 0:10          Constant:
     61 0:10            0.750000
     62 0:11      texture ( temp 4-component vector of float)
     63 0:11        Construct combined texture-sampler ( temp sampler1D)
     64 0:11          'g_tTex' (layout( binding=3) uniform texture1D)
     65 0:11          'g_sSamp' (layout( binding=0) uniform sampler)
     66 0:11        Constant:
     67 0:11          0.100000
     68 0:13      Branch: Return with expression
     69 0:13        Constant:
     70 0:13          0.000000
     71 0:13          0.000000
     72 0:13          0.000000
     73 0:13          0.000000
     74 0:7  Function Definition: main( ( temp void)
     75 0:7    Function Parameters: 
     76 0:?     Sequence
     77 0:7      move second child to first child ( temp 4-component vector of float)
     78 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     79 0:7        Function Call: @main( ( temp 4-component vector of float)
     80 0:?   Linker Objects
     81 0:?     'g_sSamp' (layout( binding=0) uniform sampler)
     82 0:?     'g_sSampCmp' (layout( binding=1) uniform sampler)
     83 0:?     'g_tTex' (layout( binding=3) uniform texture1DShadow)
     84 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
     85 0:?     'g_tTex' (layout( binding=3) uniform texture1D)
     86 
     87 // Module Version 10000
     88 // Generated by (magic number): 80007
     89 // Id's are bound by 43
     90 
     91                               Capability Shader
     92                               Capability Sampled1D
     93                1:             ExtInstImport  "GLSL.std.450"
     94                               MemoryModel Logical GLSL450
     95                               EntryPoint Fragment 4  "main" 41
     96                               ExecutionMode 4 OriginUpperLeft
     97                               Source HLSL 500
     98                               Name 4  "main"
     99                               Name 9  "@main("
    100                               Name 13  "g_tTex"
    101                               Name 17  "g_sSampCmp"
    102                               Name 29  "g_tTex"
    103                               Name 31  "g_sSamp"
    104                               Name 41  "@entryPointOutput"
    105                               Decorate 13(g_tTex) DescriptorSet 0
    106                               Decorate 13(g_tTex) Binding 3
    107                               Decorate 17(g_sSampCmp) DescriptorSet 0
    108                               Decorate 17(g_sSampCmp) Binding 1
    109                               Decorate 29(g_tTex) DescriptorSet 0
    110                               Decorate 29(g_tTex) Binding 3
    111                               Decorate 31(g_sSamp) DescriptorSet 0
    112                               Decorate 31(g_sSamp) Binding 0
    113                               Decorate 41(@entryPointOutput) Location 0
    114                2:             TypeVoid
    115                3:             TypeFunction 2
    116                6:             TypeFloat 32
    117                7:             TypeVector 6(float) 4
    118                8:             TypeFunction 7(fvec4)
    119               11:             TypeImage 6(float) 1D depth sampled format:Unknown
    120               12:             TypePointer UniformConstant 11
    121       13(g_tTex):     12(ptr) Variable UniformConstant
    122               15:             TypeSampler
    123               16:             TypePointer UniformConstant 15
    124   17(g_sSampCmp):     16(ptr) Variable UniformConstant
    125               19:             TypeSampledImage 11
    126               21:    6(float) Constant 1036831949
    127               22:    6(float) Constant 1061158912
    128               23:             TypeVector 6(float) 2
    129               27:             TypeImage 6(float) 1D sampled format:Unknown
    130               28:             TypePointer UniformConstant 27
    131       29(g_tTex):     28(ptr) Variable UniformConstant
    132      31(g_sSamp):     16(ptr) Variable UniformConstant
    133               33:             TypeSampledImage 27
    134               36:    6(float) Constant 0
    135               37:    7(fvec4) ConstantComposite 36 36 36 36
    136               40:             TypePointer Output 7(fvec4)
    137 41(@entryPointOutput):     40(ptr) Variable Output
    138          4(main):           2 Function None 3
    139                5:             Label
    140               42:    7(fvec4) FunctionCall 9(@main()
    141                               Store 41(@entryPointOutput) 42
    142                               Return
    143                               FunctionEnd
    144        9(@main():    7(fvec4) Function None 8
    145               10:             Label
    146               14:          11 Load 13(g_tTex)
    147               18:          15 Load 17(g_sSampCmp)
    148               20:          19 SampledImage 14 18
    149               24:   23(fvec2) CompositeConstruct 21 22
    150               25:    6(float) CompositeExtract 24 1
    151               26:    6(float) ImageSampleDrefImplicitLod 20 24 25
    152               30:          27 Load 29(g_tTex)
    153               32:          15 Load 31(g_sSamp)
    154               34:          33 SampledImage 30 32
    155               35:    7(fvec4) ImageSampleImplicitLod 34 21
    156                               ReturnValue 37
    157                               FunctionEnd
    158