Question by
Raul_MadGoat · Nov 17, 2017 at 11:12 AM ·
c#shadersmaterialshlsl
Setting hlsl buffer<> value from c# code?
Hello,
I've been working on porting a 3rd party image effect hlsl shader to Unity and I have a buffer to set for the shader to work correctly.
Buffer<int2> _bSamplePattern : register(t2);
My question is, is there any way to set the Buffer<int2>
of the instanced material in the c# code or I have to rewrite the buffer thing into something else?
Thanks,
Raul
MadGoat Studio
Comment