Move API-agnostic pipeline state wrapper into core interface

* There's no need for this to be in the UI, and moving it allows it to be used
  from script which is very useful.
This commit is contained in:
baldurk
2018-06-18 17:33:48 +01:00
parent 7ae6581a65
commit 14e3a3d360
48 changed files with 1057 additions and 1203 deletions
@@ -160,148 +160,3 @@ void RemoteHost::CheckStatus()
void RemoteHost::Launch()
{
}
////////////////////////////////////////////////////////////////////////////////
// CommonPipelineState.cpp stubs
////////////////////////////////////////////////////////////////////////////////
rdcstr CommonPipelineState::GetResourceLayout(ResourceId id)
{
return "";
}
rdcstr CommonPipelineState::Abbrev(ShaderStage stage)
{
return "";
}
rdcstr CommonPipelineState::OutputAbbrev()
{
return "";
}
const D3D11Pipe::Shader &CommonPipelineState::GetD3D11Stage(ShaderStage stage)
{
static D3D11Pipe::Shader dummy;
return dummy;
}
const D3D12Pipe::Shader &CommonPipelineState::GetD3D12Stage(ShaderStage stage)
{
static D3D12Pipe::Shader dummy;
return dummy;
}
const GLPipe::Shader &CommonPipelineState::GetGLStage(ShaderStage stage)
{
static GLPipe::Shader dummy;
return dummy;
}
const VKPipe::Shader &CommonPipelineState::GetVulkanStage(ShaderStage stage)
{
static VKPipe::Shader dummy;
return dummy;
}
rdcstr CommonPipelineState::GetShaderExtension()
{
return "";
}
Viewport CommonPipelineState::GetViewport(int index)
{
return Viewport();
}
Scissor CommonPipelineState::GetScissor(int index)
{
return Scissor();
}
const ShaderBindpointMapping &CommonPipelineState::GetBindpointMapping(ShaderStage stage)
{
static ShaderBindpointMapping dummy;
return dummy;
}
const ShaderReflection *CommonPipelineState::GetShaderReflection(ShaderStage stage)
{
return NULL;
}
ResourceId CommonPipelineState::GetComputePipelineObject()
{
return ResourceId();
}
ResourceId CommonPipelineState::GetGraphicsPipelineObject()
{
return ResourceId();
}
rdcstr CommonPipelineState::GetShaderEntryPoint(ShaderStage stage)
{
return "";
}
ResourceId CommonPipelineState::GetShader(ShaderStage stage)
{
return ResourceId();
}
rdcstr CommonPipelineState::GetShaderName(ShaderStage stage)
{
return "";
}
BoundVBuffer CommonPipelineState::GetIBuffer()
{
return BoundVBuffer();
}
bool CommonPipelineState::IsStripRestartEnabled()
{
return false;
}
uint32_t CommonPipelineState::GetStripRestartIndex()
{
return UINT32_MAX;
}
rdcarray<BoundVBuffer> CommonPipelineState::GetVBuffers()
{
return rdcarray<BoundVBuffer>();
}
rdcarray<VertexInputAttribute> CommonPipelineState::GetVertexInputs()
{
return rdcarray<VertexInputAttribute>();
}
BoundCBuffer CommonPipelineState::GetConstantBuffer(ShaderStage stage, uint32_t BufIdx,
uint32_t ArrayIdx)
{
return BoundCBuffer();
}
rdcarray<BoundResourceArray> CommonPipelineState::GetReadOnlyResources(ShaderStage stage)
{
return rdcarray<BoundResourceArray>();
}
rdcarray<BoundResourceArray> CommonPipelineState::GetReadWriteResources(ShaderStage stage)
{
return rdcarray<BoundResourceArray>();
}
BoundResource CommonPipelineState::GetDepthTarget()
{
return BoundResource();
}
rdcarray<BoundResource> CommonPipelineState::GetOutputTargets()
{
return rdcarray<BoundResource>();
}