www.xbdev.net
xbdev - software development
Friday May 1, 2026
Home | Contact | Support | ShaderX.. Making our graphics card work for us..
>>
     
 

ShaderX..

Making our graphics card work for us..

 

Shaders - Simple 2

by bkenwright@xbdev.net



Minimal working shader assembly program (vertex shader assembly).

// code_1.vsh
vs.1.0

m4x4             oPos,    v0,    c0    // v0-Input coordinates

mov              oD0,      v5             // v5-Input diffuse colour



// code_2.vsh
vs.1.0

m4x4 oPos, v0, c0

mov oD0, c4 // c4 is set to a constant colour


The simple example uses the vertex register (v5) and the constant registers (c4) to control the output color.


Resources & Links


Details for the registers/layout shader assembly



 
Advert (Support Website)

 
 Visitor:
Copyright (c) 2002-2026 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.