1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[dxvk] Remap spec constant ranges

Keeping the numbers low will make debugging shaders easier.
glslang seems to have an upper limit on spec constant IDs
in place.
This commit is contained in:
Philip Rebohle 2018-09-01 20:41:25 +02:00
parent 825200b2a2
commit 2b3d9aaf5c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -21,11 +21,13 @@ namespace dxvk {
* implementation at pipeline compilation time.
*/
enum class DxvkSpecConstantId : uint32_t {
RasterizerSampleCount = 0x10000,
/// Special constant ranges that do not count
/// towards the spec constant min/max values
ColorComponentMappings = 0x20000,
ColorComponentMappings = MaxNumResourceSlots,
// Specialization constants for pipeline state
SpecConstantRangeStart = ColorComponentMappings + MaxNumRenderTargets * 4,
RasterizerSampleCount = SpecConstantRangeStart + 0,
/// Lowest and highest known spec constant IDs
SpecConstantIdMin = RasterizerSampleCount,