sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 638 forks source link

Create PSO Failed. #916

Closed LinkClinton closed 7 years ago

LinkClinton commented 7 years ago

It is ok for this code: float4 PSmain(PsInput input) : SV_TARGET { return input.color;

but bad for this:

float4 PSmain(PsInput input) : SV_TARGET { return cube_texture.Sample(Sampler, input.tex); }

HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments in CreateGraphicsPipelineState

LinkClinton commented 7 years ago

I have tried this code.

But I failed.

xoofx commented 7 years ago

Have you tried to create D3D12 device in debug and check the output VS debug window? (with unsafe debugging mode enabled)

Your issue report is unusable otherwise

LinkClinton commented 7 years ago

Oh! You are right. I get why I create it failed.

And when I compile a shader , is CompilationResult.HasErrors ok? I get messages that show error, but HasErrors is false.

Yeah,It is not a issue. Thx.