Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    201
  • comments
    88
  • views
    101087

Vertexshader

Sign in to follow this  
Metron

107 views

Yesterday evening I've finished my implementation of the ShaderConstantTable which stores the constants for a shader (either vertex- or pixelshader). I've also implemented the constant passing to the hardware via the appropriate D3DX interfaces. And it all comes along as expected.

Nevertheless, I had to do a little hack into my ConstantTable to test the passing. I've yet to think about a good way how to pass the parameter from the main application fown to the ConstantTable.

The ConstantTable is stored within my shader class. You can access the table through a get* function. Now, the shader can be loaded by the renderdesc class which in fact is my xml mirror of the D3DX effect file format. I don't really want to pass every parameter through the renderdesc to the constanttable to the renderkernel.

Perhaps I should just have a set of predefined vars (such as time, world, view, proj, worldview, worldviewproj, etc).
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!