• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2// Test binding autoassignment and offset for SubpassInput objects
3
4layout(input_attachment_index = 1) SubpassInput<float4> subpass_f4 : register(t1);
5layout(input_attachment_index = 4) SubpassInputMS<float4> subpass_ms_f4;
6[[vk::input_attachment_index(7)]] SubpassInput subpass_2;
7
8float4 main() : SV_Target0
9{
10    float4 result00 = subpass_f4.SubpassLoad();
11    float4 result10 = subpass_ms_f4.SubpassLoad(3);
12    float4 result73 = subpass_2.SubpassLoad();
13
14    return 0;
15}
16