1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-08 10:46:09 +01:00
dxvk/src/d3d9/d3d9_spec_constants.h

31 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include <cstdint>
namespace dxvk {
enum D3D9SpecConstantId : uint32_t {
2022-07-30 14:30:33 +02:00
AlphaCompareOp = 0, // Range: 0 -> 7 | Bits: 3
SamplerType = 1, // 2 bits for 16 samplers | Bits: 32
// ^ not used for vertex shaders
FogEnabled = 2, // Range: 0 -> 1 | Bits: 1
VertexFogMode = 3, // Range: 0 -> 3 | Bits: 2
PixelFogMode = 4, // Range: 0 -> 3 | Bits: 2
2022-07-30 14:30:33 +02:00
PointMode = 5, // Range: 0 -> 3 | Bits: 3
ProjectionType = 6, // 1 bit for 6 samplers | Bits: 6
2022-07-30 14:30:33 +02:00
// ^ not supported for vertex shaders
// PS 1.x only supports up to 6 samplers
2022-07-30 14:30:33 +02:00
VertexShaderBools = 7, // 16 bools | Bits: 16
PixelShaderBools = 8, // 16 bools | Bits: 16
Fetch4 = 9, // 1 bit for 16 samplers | Bits: 16
// ^ not supported for vertex shaders
2022-07-30 14:30:33 +02:00
SamplerDepthMode = 10, // 1 bit for 20 samplers | Bits: 20
// ^ vs + ps
SamplerNull = 11, // 1 bit for 20 samplers | Bits: 20
// ^ vs + ps
};
}