Skip to main content
GameDev.net gamedev.net
🔒 Locked

Binary shaders [dx9]

Started by spooky_paul Dec 2, 2008 at 3:39 AM 0 replies 1.3k views
Original Post
spooky_paul
spooky_paul
Hi, I've been trying to load binary shaders compiled with fxc.exe using the ps_2_0 and respectively vs_2_0 profiles. I am loading the files into char *buffers for each of the shaders and then passing the buffers to CreatePixelShader() and CreateVertexShader() like so:

result = app.getDevice()->CreateVertexShader((DWORD*)&bufferVSH, &vertexShader);
result = app.getDevice()->CreatePixelShader((DWORD*)&bufferPSH, &pixelShader);
but both methods return failed. What could I be doing wrong? Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.