mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Use new struct for specialization constant info
Stylistic reasons.
This commit is contained in:
parent
b2087b2e7e
commit
e086db5ce5
@ -2350,7 +2350,7 @@ namespace dxvk {
|
|||||||
uint32_t index,
|
uint32_t index,
|
||||||
uint32_t value) {
|
uint32_t value) {
|
||||||
auto& specConst = pipeline == VK_PIPELINE_BIND_POINT_GRAPHICS
|
auto& specConst = pipeline == VK_PIPELINE_BIND_POINT_GRAPHICS
|
||||||
? m_state.gp.state.scSpecConstants[index]
|
? m_state.gp.state.sc.specConstants[index]
|
||||||
: m_state.cp.state.scSpecConstants[index];
|
: m_state.cp.state.scSpecConstants[index];
|
||||||
|
|
||||||
if (specConst != value) {
|
if (specConst != value) {
|
||||||
|
@ -181,7 +181,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (uint32_t i = 0; i < MaxNumSpecConstants; i++)
|
for (uint32_t i = 0; i < MaxNumSpecConstants; i++)
|
||||||
specData.set(getSpecId(i), state.scSpecConstants[i], 0u);
|
specData.set(getSpecId(i), state.sc.specConstants[i], 0u);
|
||||||
|
|
||||||
VkSpecializationInfo specInfo = specData.getSpecInfo();
|
VkSpecializationInfo specInfo = specData.getSpecInfo();
|
||||||
|
|
||||||
|
@ -609,6 +609,16 @@ namespace dxvk {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Specialization constant state
|
||||||
|
*
|
||||||
|
* Stores the raw 32-bit spec constant values.
|
||||||
|
*/
|
||||||
|
struct DxvkScInfo {
|
||||||
|
uint32_t specConstants[DxvkLimits::MaxNumSpecConstants];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Packed graphics pipeline state
|
* \brief Packed graphics pipeline state
|
||||||
*
|
*
|
||||||
@ -671,9 +681,7 @@ namespace dxvk {
|
|||||||
DxvkMsInfo ms;
|
DxvkMsInfo ms;
|
||||||
DxvkDsInfo ds;
|
DxvkDsInfo ds;
|
||||||
DxvkOmInfo om;
|
DxvkOmInfo om;
|
||||||
|
DxvkScInfo sc;
|
||||||
uint32_t scSpecConstants[MaxNumSpecConstants];
|
|
||||||
|
|
||||||
DxvkDsStencilOp dsFront;
|
DxvkDsStencilOp dsFront;
|
||||||
DxvkDsStencilOp dsBack;
|
DxvkDsStencilOp dsBack;
|
||||||
DxvkOmAttachmentSwizzle omSwizzle [DxvkLimits::MaxNumRenderTargets];
|
DxvkOmAttachmentSwizzle omSwizzle [DxvkLimits::MaxNumRenderTargets];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user