mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Ensure descriptor sizes are properly initialised in default pipe state
This commit is contained in:
@@ -537,13 +537,13 @@ struct State
|
||||
|
||||
:type: int
|
||||
)");
|
||||
uint32_t descriptorCount;
|
||||
uint32_t descriptorCount = 0;
|
||||
|
||||
DOCUMENT(R"(The byte size of a descriptor in the virtual descriptor storage.
|
||||
|
||||
:type: int
|
||||
)");
|
||||
uint32_t descriptorByteSize;
|
||||
uint32_t descriptorByteSize = 0;
|
||||
|
||||
DOCUMENT(R"(The stream-out pipeline stage.
|
||||
|
||||
|
||||
@@ -649,13 +649,13 @@ struct State
|
||||
|
||||
:type: int
|
||||
)");
|
||||
uint32_t descriptorCount;
|
||||
uint32_t descriptorCount = 0;
|
||||
|
||||
DOCUMENT(R"(The byte size of a descriptor in the virtual descriptor storage.
|
||||
|
||||
:type: int
|
||||
)");
|
||||
uint32_t descriptorByteSize;
|
||||
uint32_t descriptorByteSize = 0;
|
||||
|
||||
DOCUMENT(R"(Texture completeness issues of descriptors in the descriptor store.
|
||||
|
||||
|
||||
@@ -236,6 +236,8 @@ public:
|
||||
void SetPipelineStates(D3D11Pipe::State *d3d11, D3D12Pipe::State *d3d12, GLPipe::State *gl,
|
||||
VKPipe::State *vk)
|
||||
{
|
||||
d3d11->descriptorCount = 0;
|
||||
d3d11->descriptorByteSize = 0;
|
||||
d3d11->outputMerger.renderTargets.resize(1);
|
||||
d3d11->outputMerger.renderTargets[0].resource = m_TextureID;
|
||||
d3d11->outputMerger.renderTargets[0].format = m_TexDetails.format;
|
||||
|
||||
Reference in New Issue
Block a user