Commit 2805ffe4 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Use enum, cleanup shared fixed func stage info

parent 9f8d125c
......@@ -385,19 +385,19 @@ namespace dxvk {
uint32_t offset = 0;
for (uint32_t stage = 0; stage < caps::TextureStageCount; stage++) {
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + 0, offset);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + D3D9SharedPSStages_BumpEnvMat0, offset);
offset += sizeof(float) * 2;
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + 1, offset);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + D3D9SharedPSStages_BumpEnvMat1, offset);
offset += sizeof(float) * 2;
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + 2, offset);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + D3D9SharedPSStages_BumpEnvLScale, offset);
offset += sizeof(float);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + 3, offset);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + D3D9SharedPSStages_BumpEnvLOffset, offset);
offset += sizeof(float);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + 4, offset);
spvModule.memberDecorateOffset(structType, stage * D3D9SharedPSStages_Count + D3D9SharedPSStages_Constant, offset);
offset += sizeof(float) * 4;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment