File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ class IBottomLevelAccelerationStructure : public IAccelerationStructure
59
59
// build flags, we don't expose flags that don't make sense for certain levels
60
60
enum class BUILD_FLAGS : uint16_t
61
61
{
62
- ALLOW_UPDATE_BIT = base_build_flags_t ::ALLOW_UPDATE_BIT,
63
- ALLOW_COMPACTION_BIT = base_build_flags_t ::ALLOW_COMPACTION_BIT,
64
- PREFER_FAST_TRACE_BIT = base_build_flags_t ::PREFER_FAST_TRACE_BIT,
65
- PREFER_FAST_BUILD_BIT = base_build_flags_t ::PREFER_FAST_BUILD_BIT,
66
- LOW_MEMORY_BIT = base_build_flags_t ::LOW_MEMORY_BIT,
62
+ ALLOW_UPDATE_BIT = static_cast < uint16_t >( base_build_flags_t ::ALLOW_UPDATE_BIT) ,
63
+ ALLOW_COMPACTION_BIT = static_cast < uint16_t >( base_build_flags_t ::ALLOW_COMPACTION_BIT) ,
64
+ PREFER_FAST_TRACE_BIT = static_cast < uint16_t >( base_build_flags_t ::PREFER_FAST_TRACE_BIT) ,
65
+ PREFER_FAST_BUILD_BIT = static_cast < uint16_t >( base_build_flags_t ::PREFER_FAST_BUILD_BIT) ,
66
+ LOW_MEMORY_BIT = static_cast < uint16_t >( base_build_flags_t ::LOW_MEMORY_BIT) ,
67
67
// Synthetic flag we use to indicate that the build data are AABBs instead of triangles, we've taken away the per-geometry choice thanks to:
68
68
// https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkAccelerationStructureBuildGeometryInfoKHR-type-03792
69
69
GEOMETRY_TYPE_IS_AABB_BIT = 0x1u <<5u ,
You can’t perform that action at this time.
0 commit comments