mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 21:55:30 +03:00
Keep holes in descriptors for unsupported bindings
This commit is contained in:
parent
81d82008c7
commit
a92c26531e
@ -762,6 +762,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
return GetStorageBufferBinding(ctx, desc, constantBuffers[i][desc.cbuf_index], storageBufferViews[storageBufferIdx++]);
|
return GetStorageBufferBinding(ctx, desc, constantBuffers[i][desc.cbuf_index], storageBufferViews[storageBufferIdx++]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
bindingIdx += stageDescInfo.uniformTexelBufferDescCount;
|
||||||
|
bindingIdx += stageDescInfo.storageTexelBufferDescCount;
|
||||||
|
|
||||||
writeImageDescs(vk::DescriptorType::eCombinedImageSampler, stage.info.texture_descriptors, stageDescInfo.combinedImageSamplerDescCount,
|
writeImageDescs(vk::DescriptorType::eCombinedImageSampler, stage.info.texture_descriptors, stageDescInfo.combinedImageSamplerDescCount,
|
||||||
[&](const Shader::TextureDescriptor &desc, size_t arrayIdx) {
|
[&](const Shader::TextureDescriptor &desc, size_t arrayIdx) {
|
||||||
BindlessHandle handle{ReadBindlessHandle(ctx, constantBuffers[i], desc, arrayIdx)};
|
BindlessHandle handle{ReadBindlessHandle(ctx, constantBuffers[i], desc, arrayIdx)};
|
||||||
@ -769,6 +772,8 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
sampledImages[combinedImageSamplerIdx++] = binding.second;
|
sampledImages[combinedImageSamplerIdx++] = binding.second;
|
||||||
return binding.first;
|
return binding.first;
|
||||||
}, ctx.gpu.traits.quirks.needsIndividualTextureBindingWrites);
|
}, ctx.gpu.traits.quirks.needsIndividualTextureBindingWrites);
|
||||||
|
|
||||||
|
bindingIdx += stageDescInfo.storageImageDescCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Since we don't implement all descriptor types the number of writes might not match what's expected
|
// Since we don't implement all descriptor types the number of writes might not match what's expected
|
||||||
|
Loading…
Reference in New Issue
Block a user