mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 05:52:11 +01:00
[d3d11] Imlpemented some state queries
This commit is contained in:
parent
50b7293b8f
commit
c246e03594
@ -777,7 +777,13 @@ namespace dxvk {
|
|||||||
ID3D11VertexShader** ppVertexShader,
|
ID3D11VertexShader** ppVertexShader,
|
||||||
ID3D11ClassInstance** ppClassInstances,
|
ID3D11ClassInstance** ppClassInstances,
|
||||||
UINT* pNumClassInstances) {
|
UINT* pNumClassInstances) {
|
||||||
Logger::err("D3D11DeviceContext::VSGetShader: Not implemented");
|
if (ppVertexShader != nullptr)
|
||||||
|
*ppVertexShader = m_state.vs.shader.ref();
|
||||||
|
|
||||||
|
if (pNumClassInstances != nullptr) {
|
||||||
|
Logger::err("D3D11: VSGetShader: Class instances not implemented");
|
||||||
|
*pNumClassInstances = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1055,7 +1061,13 @@ namespace dxvk {
|
|||||||
ID3D11PixelShader** ppPixelShader,
|
ID3D11PixelShader** ppPixelShader,
|
||||||
ID3D11ClassInstance** ppClassInstances,
|
ID3D11ClassInstance** ppClassInstances,
|
||||||
UINT* pNumClassInstances) {
|
UINT* pNumClassInstances) {
|
||||||
Logger::err("D3D11DeviceContext::PSGetShader: Not implemented");
|
if (ppPixelShader != nullptr)
|
||||||
|
*ppPixelShader = m_state.ps.shader.ref();
|
||||||
|
|
||||||
|
if (pNumClassInstances != nullptr) {
|
||||||
|
Logger::err("D3D11: PSGetShader: Class instances not implemented");
|
||||||
|
*pNumClassInstances = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1063,7 +1075,8 @@ namespace dxvk {
|
|||||||
UINT StartSlot,
|
UINT StartSlot,
|
||||||
UINT NumBuffers,
|
UINT NumBuffers,
|
||||||
ID3D11Buffer** ppConstantBuffers) {
|
ID3D11Buffer** ppConstantBuffers) {
|
||||||
Logger::err("D3D11DeviceContext::PSGetConstantBuffers: Not implemented");
|
for (uint32_t i = 0; i < NumBuffers; i++)
|
||||||
|
ppConstantBuffers[i] = m_state.ps.constantBuffers.at(StartSlot + i).ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1071,7 +1084,8 @@ namespace dxvk {
|
|||||||
UINT StartSlot,
|
UINT StartSlot,
|
||||||
UINT NumViews,
|
UINT NumViews,
|
||||||
ID3D11ShaderResourceView** ppShaderResourceViews) {
|
ID3D11ShaderResourceView** ppShaderResourceViews) {
|
||||||
Logger::err("D3D11DeviceContext::PSGetShaderResources: Not implemented");
|
for (uint32_t i = 0; i < NumViews; i++)
|
||||||
|
ppShaderResourceViews[i] = m_state.ps.shaderResources.at(StartSlot + i).ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1079,7 +1093,8 @@ namespace dxvk {
|
|||||||
UINT StartSlot,
|
UINT StartSlot,
|
||||||
UINT NumSamplers,
|
UINT NumSamplers,
|
||||||
ID3D11SamplerState** ppSamplers) {
|
ID3D11SamplerState** ppSamplers) {
|
||||||
Logger::err("D3D11DeviceContext::PSGetSamplers: Not implemented");
|
for (uint32_t i = 0; i < NumSamplers; i++)
|
||||||
|
ppSamplers[i] = m_state.ps.samplers.at(StartSlot + i).ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1296,14 +1311,25 @@ namespace dxvk {
|
|||||||
ID3D11BlendState** ppBlendState,
|
ID3D11BlendState** ppBlendState,
|
||||||
FLOAT BlendFactor[4],
|
FLOAT BlendFactor[4],
|
||||||
UINT* pSampleMask) {
|
UINT* pSampleMask) {
|
||||||
Logger::err("D3D11DeviceContext::OMGetBlendState: Not implemented");
|
if (ppBlendState != nullptr)
|
||||||
|
*ppBlendState = m_state.om.cbState.ref();
|
||||||
|
|
||||||
|
if (BlendFactor != nullptr)
|
||||||
|
std::memcpy(BlendFactor, m_state.om.blendFactor, sizeof(FLOAT) * 4);
|
||||||
|
|
||||||
|
if (pSampleMask != nullptr)
|
||||||
|
*pSampleMask = m_state.om.sampleMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void D3D11DeviceContext::OMGetDepthStencilState(
|
void D3D11DeviceContext::OMGetDepthStencilState(
|
||||||
ID3D11DepthStencilState** ppDepthStencilState,
|
ID3D11DepthStencilState** ppDepthStencilState,
|
||||||
UINT* pStencilRef) {
|
UINT* pStencilRef) {
|
||||||
Logger::err("D3D11DeviceContext::OMGetDepthStencilState: Not implemented");
|
if (ppDepthStencilState != nullptr)
|
||||||
|
*ppDepthStencilState = m_state.om.dsState.ref();
|
||||||
|
|
||||||
|
if (pStencilRef != nullptr)
|
||||||
|
*pStencilRef = m_state.om.stencilRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1357,7 +1383,8 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
void D3D11DeviceContext::RSGetState(ID3D11RasterizerState** ppRasterizerState) {
|
void D3D11DeviceContext::RSGetState(ID3D11RasterizerState** ppRasterizerState) {
|
||||||
*ppRasterizerState = m_state.rs.state.ref();
|
if (ppRasterizerState != nullptr)
|
||||||
|
*ppRasterizerState = m_state.rs.state.ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user