Super duper simple D3D11 pipe state returned, just for testing

This commit is contained in:
baldurk
2016-02-07 18:38:20 +01:00
parent 2962764bac
commit 1af4b74fe9
2 changed files with 12 additions and 1 deletions
+9
View File
@@ -579,6 +579,15 @@ ShaderReflection *VulkanReplay::GetShader(ResourceId id)
void VulkanReplay::SavePipelineState()
{
VULKANNOTIMP("SavePipelineState");
create_array_uninit(m_D3D11PipelineState.m_OM.RenderTargets, 1);
ResourceId id;
VkImage fakeBBIm = VK_NULL_HANDLE;
VkDeviceMemory fakeBBMem = VK_NULL_HANDLE;
m_pDriver->GetFakeBB(id, fakeBBIm, fakeBBMem);
m_D3D11PipelineState.m_OM.RenderTargets[0].Resource = id;
}
void VulkanReplay::FillCBufferVariables(ResourceId shader, uint32_t cbufSlot, vector<ShaderVariable> &outvars, const vector<byte> &data)
+3 -1
View File
@@ -80,7 +80,7 @@ class VulkanReplay : public IReplayDriver
vector<DebugMessage> GetDebugMessages();
void SavePipelineState();
D3D11PipelineState GetD3D11PipelineState() { return D3D11PipelineState(); }
D3D11PipelineState GetD3D11PipelineState() { return m_D3D11PipelineState; }
GLPipelineState GetGLPipelineState() { return GLPipelineState(); }
void FreeTargetResource(ResourceId id);
@@ -185,6 +185,8 @@ class VulkanReplay : public IReplayDriver
VkImageMemoryBarrier stenciltrans;
};
D3D11PipelineState m_D3D11PipelineState;
map<uint64_t, OutputWindow> m_OutputWindows;
uint64_t m_OutputWinID;
uint64_t m_ActiveWinID;