1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[dxvk] Enable creating full pre-rasterization pipeline libraries

This commit is contained in:
Philip Rebohle 2023-01-09 16:08:49 +01:00 committed by Philip Rebohle
parent 17529101d5
commit 28ae85b7ab

View File

@ -304,9 +304,18 @@ namespace dxvk {
if (shaders.gs != nullptr)
vsKey.addShader(shaders.gs);
if (vsKey.canUsePipelineLibrary())
if (vsKey.canUsePipelineLibrary()) {
vsLibrary = findPipelineLibraryLocked(vsKey);
if (!vsLibrary) {
// If multiple shader stages are participating, create a
// pipeline library so that it can potentially be reused.
// Don't dispatch the pipeline library to a worker thread
// since it should be compiled on demand anyway.
vsLibrary = createPipelineLibraryLocked(vsKey);
}
}
if (vsLibrary) {
DxvkShaderPipelineLibraryKey fsKey;