• Create Account

#ActualJeffreyp

Posted 30 June 2012 - 08:06 AM

It doesn't look like you are compiling it anywhere.

Check out D3DCompileFromFile.

I'm using visual studio 11. So i compile it from there : )
Also the buffer size isn't 0.

Am I missing something or maybe you don't know that shaders have to be compiled to byte code? What function are you calling to compile the shader into bytecode?

I found the problem. I did put the hlsl files instead of the cso files at
D3DReadFileToBlob


It is working now. Thanks : )

#1Jeffreyp

Posted 30 June 2012 - 08:05 AM

It doesn't look like you are compiling it anywhere.

Check out D3DCompileFromFile.

I'm using visual studio 11. So i compile it from there : )
Also the buffer size isn't 0.

Am I missing something or maybe you don't know that shaders have to be compiled to byte code? What function are you calling to compile the shader into bytecode?

I found the problem. I did put the hlsl files instead of the cso files at
[color=#000000][font=Consolas,]D3DReadFileToBlob[/font][/color]
[color=#000000][font=Consolas,]
[/font][/color]
It is working now. Thanks : )

PARTNERS