| 389 | } |
| 390 | |
| 391 | string 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 | |
| 415 | size_t UniformBuffer::getSizeOfType(PropertyValue::Type type) |
| 416 | { |
nothing calls this directly
no outgoing calls
no test coverage detected