I'm doing some directX and for some reason the device->CreatePixelShader gives me an access violation errorI have initialised PS in the ID3DBlob and the pShader as a ID3D11PixelShader which tells me that it NULL after I debug it seems that there is nothing wrong there, any help? Many thanks
I was referring to where the Dx files to install are located, not where to install them. LOL The reason it's saying Dx12 is you're running W10, which may be the actual cause of the problem if you're not using a compatibility mode for that game, since it came out well before W10/Dx12. DirectX function 'CreatePixelShader for (null)' failed with EINVALIDARG('An invalid parameter was passed to the returning function.' GPU: 'ATI Mobility Radeon HD 550v', Driver: Unknown wht shud i do now?
Przemek HendelPrzemek Hendel
2 Answers
That pixel shader won't have compiled using vs_5_0 as a profile. Check your HRESULTs!
Adam MilesAdam Miles
A good mechanism for religiously checking
HRESULT
return values is to use a macro around all such calls that checks the result for success and throws on error. I outline a simple strategy for doing this in Chapter 1 of my free book 'The Direct3D Graphics Pipeline'.legalizelegalize