Debian Codegraph @

clang/test/ParserHLSL/hlsl_resource_handle_attrs.hlsl

raw
1 // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -ast-dump -o - %s | FileCheck %s
2
3 // CHECK: ClassTemplateSpecializationDecl {{.*}} class RWBuffer definition instantiated_from 0x{{.+}} implicit_instantiation
4 // CHECK: TemplateArgument type 'float'
5 // CHECK: BuiltinType {{.*}} 'float'
6 // CHECK: FieldDecl {{.*}} implicit{{.*}} __handle '__hlsl_resource_t
7 // CHECK-SAME{LITERAL}: [[hlsl::resource_class(UAV)]]
8 // CHECK-SAME{LITERAL}: [[hlsl::contained_type(float)]]
9 RWBuffer<float> Buffer1;
10
11 // CHECK: ClassTemplateSpecializationDecl {{.*}} class RasterizerOrderedBuffer definition instantiated_from 0x{{.+}} implicit_instantiation
12 // CHECK: TemplateArgument type 'vector<float, 4>'
13 // CHECK: ExtVectorType {{.*}} 'vector<float, 4>' 4
14 // CHECK: BuiltinType {{.*}} 'float'
15 // CHECK: FieldDecl {{.*}} implicit{{.*}} __handle '__hlsl_resource_t
16 // CHECK-SAME{LITERAL}: [[hlsl::resource_class(UAV)]
17 // CHECK-SAME{LITERAL}: [[hlsl::is_rov]]
18 // CHECK-SAME{LITERAL}: [[hlsl::contained_type(vector<float, 4>)]]
19 RasterizerOrderedBuffer<vector<float, 4> > BufferArray3[4];