1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +01:00

[d3d11] Validate shader creation parameters

This commit is contained in:
Philip Rebohle 2024-10-23 14:17:11 +02:00 committed by Philip Rebohle
parent 800f71c4f5
commit f3fa2535e8

View File

@ -2022,6 +2022,9 @@ namespace dxvk {
size_t BytecodeLength,
ID3D11ClassLinkage* pClassLinkage,
const DxbcModuleInfo* pModuleInfo) {
if (!BytecodeLength || !pShaderBytecode)
return E_INVALIDARG;
if (pClassLinkage != nullptr)
Logger::warn("D3D11Device::CreateShaderModule: Class linkage not supported");