Ensure descriptor sizes are properly initialised in default pipe state

This commit is contained in:
baldurk
2024-06-03 12:13:03 +01:00
parent aecaa7e208
commit af67b951de
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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.
+2 -2
View File
@@ -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.
+2
View File
@@ -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;