Question

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

Was it helpful?

Solution

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..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top