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

sampler2D vertex shader. work on older computers?

Started by zaneski13 Apr 16, 2012 at 5:36 PM 1 replies 2.6k views
Original Post
zaneski13
zaneski13
Ok, so I need to access a texture in my vertex shader, but I want the game to run on cards that only support shader model 2. Anyone know if acessing a texture in a vertex shader crashes on old cards? also is there a website that shows the limitations of shader models. like what they support and dont support? Thanks.
21st Century Moose
21st Century Moose
It may or may not crash, but it shouldn't be available on SM2 hardware.

Direct3D Shader Models don't quite map directly to GLSL versions by the way, but they are good enough for a general guideline nonetheless. The best reference for these is probably the DirectX SDK or the online version at MSDN - so long as you bear in mind that it's a Direct3D Shader Model and therefore GLSL is going to exhibit some subtle (or not-so-subtle) differences. For pure GLSL the best reference would be the specs at OpenGL.org.
Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls. 

Topic Locked

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

Sign in to reply to this topic.