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:
parent
825200b2a2
commit
2b3d9aaf5c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user