MCPcopy Create free account
hub / github.com/carbonengine/trinity / PrintTypeHLSL11

Function PrintTypeHLSL11

shadercompiler/OutputHLSL.cpp:123–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void PrintTypeHLSL11( CodeStream& os, Type type )
124{
125 switch( type.storageClass )
126 {
127 case OP_EXTERN:
128 os << "extern ";
129 break;
130 case OP_NOINTERPOLATION:
131 os << "nointerpolation ";
132 break;
133 case OP_PRECISE:
134 os << "precise ";
135 break;
136 case OP_SHARED:
137 os << "shared ";
138 break;
139 case OP_GROUPSHARED:
140 os << "groupshared ";
141 break;
142 case OP_STATIC:
143 os << "static ";
144 break;
145 case OP_UNIFORM:
146 os << "uniform ";
147 break;
148 case OP_VOLATILE:
149 os << "volatile ";
150 break;
151 }
152 switch( type.modifier )
153 {
154 case OP_CONST:
155 os << "const ";
156 break;
157 case OP_ROW_MAJOR:
158 os << "row_major ";
159 break;
160 case OP_COLUMN_MAJOR:
161 os << "column_major ";
162 break;
163 }
164 if( type.symbol )
165 {
166 os << type.symbol->name;
167 }
168 else
169 {
170 switch( type.builtInType )
171 {
172 case OP_FLOAT:
173 os << "float";
174 break;
175 case OP_INT:
176 os << "int";
177 break;
178 case OP_UINT:
179 os << "uint";
180 break;

Callers 1

OutputHLSL.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected