0

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

4

1 回答 1

1

编译器应该为这些参数创建一个常量缓冲区。

如果您使用 SharpDX 的效果框架,您可以使用效果的参数来获取变量的句柄。

于 2013-05-25T15:00:06.947 回答