You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/nbl/video/IGPUAccelerationStructure.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -638,6 +638,9 @@ class IGPUTopLevelAccelerationStructure : public asset::ITopLevelAccelerationStr
638
638
// I don't do an actual union because the preceeding members don't play nicely with alignment of `core::matrix3x4SIMD` and Vulkan requires this struct to be packed
// it may seem weird storing both a smart pointer and a raw pointer, but the reason is to be able to drop a refcount while not loosing the key for lookup
// scratch + input size also accounting for worst case padding due to alignment
1114
+
uint64_t buildSize;
1115
+
};
1116
+
using SConvReqBLASMap = core::unordered_map<IGPUBottomLevelAccelerationStructure*,SConvReqAccelerationStructure<asset::ICPUBottomLevelAccelerationStructure>>;
using SConvReqBLAS = SConvReqAccelerationStructure<asset::ICPUBottomLevelAccelerationStructure>;
1122
-
core::vector<SConvReqBLAS> m_blasConversions[2];
1123
-
using SConvReqTLAS = SConvReqAccelerationStructure<asset::ICPUTopLevelAccelerationStructure>;
1124
-
core::vector<SConvReqTLAS> m_tlasConversions[2];
1127
+
using SConvReqTLASMap = core::unordered_map<IGPUTopLevelAccelerationStructure*,SConvReqTLAS>;
1128
+
SConvReqTLASMap m_tlasConversions[2];
1125
1129
1126
-
// 0 for device builds, 1 for host builds
1130
+
//array index 0 for device builds, 1 for host builds
1127
1131
uint64_t m_minASBuildScratchSize[2] = {0,0};
1128
1132
uint64_t m_maxASBuildScratchSize[2] = {0,0};
1129
-
// TODO: make the compaction count the size
1130
-
// We do all compactions on the Device for simplicity
1131
-
uint8_t m_willCompactSomeAS : 1 = false;
1132
-
// This tracks non-root BLASes which are needed for a subsequent TLAS build. Note that even things which are NOT in the staging cache are tracked here to make sure they don't finish their lifetimes early.
1133
-
structBLASUsedInTLASBuild
1133
+
uint64_t m_compactedASMaxMemory = 0;
1134
+
//
1135
+
structSDeferredTLASWrite
1134
1136
{
1135
-
// This is the BLAS meant to be used for the instance, note that compaction of a BLAS overwrites the initial values at the end of `reserve`
0 commit comments