문제

I'm wondering if there is another way to access uniform Parameters in SharpDx besides the constantbuffer

 cbuffer Variables : register(b0){
 float4 cL;
 } 

I think the register(b0) tells the Datapointer which one to access. Anyways the Question is about another way like is it possible to get and set parameters like these

uniform float4 paraO;
uniform vector3 vecO;
uniform float para2;

I couldn't find a way to get or set their values within SharpDx or DirectX11

도움이 되었습니까?

해결책

The compiler should create a constant buffer for those parameters.

If you use SharpDX' effect framework, you can use the effect's parameters to get a handle to the variables..

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