MCPcopy Create free account
hub / github.com/Autodesk/Aurora / getHLSLStringFromType

Method getHLSLStringFromType

Libraries/Aurora/Source/UniformBuffer.cpp:391–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391string UniformBuffer::getHLSLStringFromType(PropertyValue::Type type)
392{
393 switch (type)
394 {
395 case PropertyValue::Type::Bool:
396 return "int";
397 case PropertyValue::Type::Int:
398 return "int";
399 case PropertyValue::Type::Float:
400 return "float";
401 case PropertyValue::Type::Float2:
402 return "float2";
403 case PropertyValue::Type::Float3:
404 return "float3";
405 case PropertyValue::Type::Float4:
406 return "float4";
407 case PropertyValue::Type::Matrix4:
408 return "float4x4";
409 default:
410 AU_FAIL("Unsupported type for uniform block:%x", type);
411 return 0;
412 }
413}
414
415size_t UniformBuffer::getSizeOfType(PropertyValue::Type type)
416{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected