@@ -68,14 +68,14 @@ NBL_CONSTEXPR_STATIC_INLINE uint16_t mipmapPrecisionBits = )===" + std::string("
68
68
69
69
NBL_CONSTEXPR_STATIC_INLINE uint32_t maxDrawIndirectCount = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.maxDrawIndirectCount) + R"===( ;
70
70
71
- NBL_CONSTEXPR_STATIC_INLINE uint32_t maxSamplerLodBiasBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.maxSamplerLodBias)) + R"===( ;
71
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t maxSamplerLodBiasBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.maxSamplerLodBias)) + R"===( ;
72
72
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxSamplerAnisotropyLog2 = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxSamplerAnisotropyLog2) + R"===( ;
73
73
74
74
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxViewports = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxViewports) + R"===( ;
75
75
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxViewportDimsX = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxViewportDims[0 ]) + R"===( ;
76
76
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxViewportDimsY = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxViewportDims[1 ]) + R"===( ;
77
- NBL_CONSTEXPR_STATIC_INLINE uint32_t viewportBoundsRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.viewportBoundsRange[0 ])) + R"===( ;
78
- NBL_CONSTEXPR_STATIC_INLINE uint32_t viewportBoundsRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.viewportBoundsRange[1 ])) + R"===( ;
77
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t viewportBoundsRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.viewportBoundsRange[0 ])) + R"===( ;
78
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t viewportBoundsRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.viewportBoundsRange[1 ])) + R"===( ;
79
79
NBL_CONSTEXPR_STATIC_INLINE uint32_t viewportSubPixelBits = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.viewportSubPixelBits) + R"===( ;
80
80
81
81
NBL_CONSTEXPR_STATIC_INLINE uint16_t minMemoryMapAlignment = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.minMemoryMapAlignment) + R"===( ;
@@ -88,8 +88,8 @@ NBL_CONSTEXPR_STATIC_INLINE uint16_t maxTexelOffset = )===" + std::string("(uint
88
88
NBL_CONSTEXPR_STATIC_INLINE int16_t minTexelGatherOffset = )===" + std::string(" (int16_t)" ) + CJITIncludeLoader::to_string(limits.minTexelGatherOffset) + R"===( ;
89
89
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxTexelGatherOffset = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxTexelGatherOffset) + R"===( ;
90
90
91
- NBL_CONSTEXPR_STATIC_INLINE uint32_t minInterpolationOffsetBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.minInterpolationOffset)) + R"===( ;
92
- NBL_CONSTEXPR_STATIC_INLINE uint32_t maxInterpolationOffsetBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.maxInterpolationOffset)) + R"===( ;
91
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t minInterpolationOffsetBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.minInterpolationOffset)) + R"===( ;
92
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t maxInterpolationOffsetBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.maxInterpolationOffset)) + R"===( ;
93
93
NBL_CONSTEXPR_STATIC_INLINE uint16_t subPixelInterpolationOffsetBits = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.subPixelInterpolationOffsetBits) + R"===( ;
94
94
95
95
NBL_CONSTEXPR_STATIC_INLINE uint32_t maxFramebufferWidth = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.maxFramebufferWidth) + R"===( ;
@@ -100,20 +100,20 @@ NBL_CONSTEXPR_STATIC_INLINE uint16_t maxColorAttachments = )===" + std::string("
100
100
101
101
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxSampleMaskWords = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxSampleMaskWords) + R"===( ;
102
102
103
- NBL_CONSTEXPR_STATIC_INLINE uint32_t timestampPeriodInNanoSecondsBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.timestampPeriodInNanoSeconds)) + R"===( ;
103
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t timestampPeriodInNanoSecondsBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.timestampPeriodInNanoSeconds)) + R"===( ;
104
104
105
105
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxClipDistances = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxClipDistances) + R"===( ;
106
106
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxCullDistances = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxCullDistances) + R"===( ;
107
107
NBL_CONSTEXPR_STATIC_INLINE uint16_t maxCombinedClipAndCullDistances = )===" + std::string(" (uint16_t)" ) + CJITIncludeLoader::to_string(limits.maxCombinedClipAndCullDistances) + R"===( ;
108
108
109
109
NBL_CONSTEXPR_STATIC_INLINE uint32_t discreteQueuePriorities = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.discreteQueuePriorities) + R"===( ;
110
110
111
- NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.pointSizeRange[0 ])) + R"===( ;
112
- NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.pointSizeRange[1 ])) + R"===( ;
113
- NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.lineWidthRange[0 ])) + R"===( ;
114
- NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.lineWidthRange[1 ])) + R"===( ;
115
- NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.pointSizeGranularity)) + R"===( ;
116
- NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.lineWidthGranularity)) + R"===( ;
111
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.pointSizeRange[0 ])) + R"===( ;
112
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.pointSizeRange[1 ])) + R"===( ;
113
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.lineWidthRange[0 ])) + R"===( ;
114
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.lineWidthRange[1 ])) + R"===( ;
115
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t pointSizeGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.pointSizeGranularity)) + R"===( ;
116
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t lineWidthGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.lineWidthGranularity)) + R"===( ;
117
117
118
118
NBL_CONSTEXPR_STATIC_INLINE bool strictLines = )===" + std::string(" (bool)" ) + CJITIncludeLoader::to_string(limits.strictLines) + R"===( ;
119
119
@@ -256,9 +256,9 @@ NBL_CONSTEXPR_STATIC_INLINE bool displayTiming = )===" + std::string("(bool)") +
256
256
257
257
NBL_CONSTEXPR_STATIC_INLINE uint32_t maxDiscardRectangles = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.maxDiscardRectangles) + R"===( ;
258
258
259
- NBL_CONSTEXPR_STATIC_INLINE uint32_t primitiveOverestimationSizeBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.primitiveOverestimationSize)) + R"===( ;
260
- NBL_CONSTEXPR_STATIC_INLINE uint32_t maxExtraPrimitiveOverestimationSizeBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.maxExtraPrimitiveOverestimationSize)) + R"===( ;
261
- NBL_CONSTEXPR_STATIC_INLINE uint32_t extraPrimitiveOverestimationSizeGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.extraPrimitiveOverestimationSizeGranularity)) + R"===( ;
259
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t primitiveOverestimationSizeBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.primitiveOverestimationSize)) + R"===( ;
260
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t maxExtraPrimitiveOverestimationSizeBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.maxExtraPrimitiveOverestimationSize)) + R"===( ;
261
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t extraPrimitiveOverestimationSizeGranularityBitPattern = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.extraPrimitiveOverestimationSizeGranularity)) + R"===( ;
262
262
NBL_CONSTEXPR_STATIC_INLINE bool primitiveUnderestimation = )===" + std::string(" (bool)" ) + CJITIncludeLoader::to_string(limits.primitiveUnderestimation) + R"===( ;
263
263
NBL_CONSTEXPR_STATIC_INLINE bool conservativePointAndLineRasterization = )===" + std::string(" (bool)" ) + CJITIncludeLoader::to_string(limits.conservativePointAndLineRasterization) + R"===( ;
264
264
NBL_CONSTEXPR_STATIC_INLINE bool degenerateTrianglesRasterized = )===" + std::string(" (bool)" ) + CJITIncludeLoader::to_string(limits.degenerateTrianglesRasterized) + R"===( ;
@@ -275,8 +275,8 @@ NBL_CONSTEXPR_STATIC_INLINE uint16_t sampleLocationSubPixelBits = )===" + std::s
275
275
NBL_CONSTEXPR_STATIC_INLINE uint64_t sampleLocationSampleCountsBitPattern = )===" + std::string(" (uint64_t)" ) + CJITIncludeLoader::to_string(limits.sampleLocationSampleCounts) + R"===( ;
276
276
NBL_CONSTEXPR_STATIC_INLINE uint32_t maxSampleLocationGridSizeX = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.maxSampleLocationGridSize.x) + R"===( ;
277
277
NBL_CONSTEXPR_STATIC_INLINE uint32_t maxSampleLocationGridSizeY = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(limits.maxSampleLocationGridSize.y) + R"===( ;
278
- NBL_CONSTEXPR_STATIC_INLINE uint32_t sampleLocationCoordinateRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.sampleLocationCoordinateRange[0 ])) + R"===( ;
279
- NBL_CONSTEXPR_STATIC_INLINE uint32_t sampleLocationCoordinateRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(* reinterpret_cast < const uint32_t *>(& limits.sampleLocationCoordinateRange[1 ])) + R"===( ;
278
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t sampleLocationCoordinateRangeBitPatternMin = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.sampleLocationCoordinateRange[0 ])) + R"===( ;
279
+ NBL_CONSTEXPR_STATIC_INLINE uint32_t sampleLocationCoordinateRangeBitPatternMax = )===" + std::string(" (uint32_t)" ) + CJITIncludeLoader::to_string(std::bit_cast< uint32_t >( limits.sampleLocationCoordinateRange[1 ])) + R"===( ;
280
280
281
281
NBL_CONSTEXPR_STATIC_INLINE uint64_t maxAccelerationStructureGeometryCount = )===" + std::string(" (uint64_t)" ) + CJITIncludeLoader::to_string(limits.maxAccelerationStructureGeometryCount) + R"===( ;
282
282
NBL_CONSTEXPR_STATIC_INLINE uint64_t maxAccelerationStructureInstanceCount = )===" + std::string(" (uint64_t)" ) + CJITIncludeLoader::to_string(limits.maxAccelerationStructureInstanceCount) + R"===( ;
0 commit comments