mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[d3d11] Validate shader creation parameters
This commit is contained in:
parent
800f71c4f5
commit
f3fa2535e8
@ -2022,6 +2022,9 @@ namespace dxvk {
|
|||||||
size_t BytecodeLength,
|
size_t BytecodeLength,
|
||||||
ID3D11ClassLinkage* pClassLinkage,
|
ID3D11ClassLinkage* pClassLinkage,
|
||||||
const DxbcModuleInfo* pModuleInfo) {
|
const DxbcModuleInfo* pModuleInfo) {
|
||||||
|
if (!BytecodeLength || !pShaderBytecode)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
if (pClassLinkage != nullptr)
|
if (pClassLinkage != nullptr)
|
||||||
Logger::warn("D3D11Device::CreateShaderModule: Class linkage not supported");
|
Logger::warn("D3D11Device::CreateShaderModule: Class linkage not supported");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user