Fix descriptor initialisation order

They need to be setup before the pipeline is created to avoid passing in garbage data.
This commit is contained in:
Billy Laws 2022-09-17 13:14:05 +01:00
parent 4652cc5a0a
commit 9223d7f524

View File

@ -45,8 +45,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
private: private:
std::vector<CachedMappedBufferView> storageBufferViews; std::vector<CachedMappedBufferView> storageBufferViews;
std::array<ShaderStage, engine::ShaderStageCount> shaderStages; std::array<ShaderStage, engine::ShaderStageCount> shaderStages;
cache::GraphicsPipelineCache::CompiledPipeline compiledPipeline;
DescriptorInfo descriptorInfo; DescriptorInfo descriptorInfo;
cache::GraphicsPipelineCache::CompiledPipeline compiledPipeline;
std::array<Pipeline *, 4> transitionCache{}; std::array<Pipeline *, 4> transitionCache{};
size_t transitionCacheNextIdx{}; size_t transitionCacheNextIdx{};