문제

In DirectX 11 input layout requires getting the shader signature, however i'm only using a single input for all my shaders and i'd like to reuse it.

Is it possible to create an input layout WITHOUT passing in a shader (i'm fine with losing the validation)? If not, is it safe to reuse the input layout across diferent shaders if i create it with a shader signature that is common to my other shaders?

도움이 되었습니까?

해결책

There is no possibility to create an input layout without passing in a shader, but it is safe to reuse the input layout with other shaders that have the same vertex attributes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top