Hi guys,
What I'm trying to do :
Load a piece of shader byte code into my program, access the float values in the constant table, change those values, then output the modified shader. To do this I've been using the SetValue method http://sharpdx.org/documentation/api/m-sharpdx-direct3d9-constanttable-setvalue-4
The code runs fine but nothing seems to be happening to the constant table. I output the ConstantTable.Buffer to a file, but it's still the original data.
I've come to the conclusion that maybe it's not actually possible to change my shader byte code like this? Any help with this would be very much appreciated.
Or... If anyone knows a way to assemble a shader from a disassembled shader string, that also includes the constant table, I'd love to hear it.
Thanks