Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia Introduction to the DirectX 9 Shader Models - Nvidia

30.04.2014 Views

We lose two instructions • Lit • Dst – These complex lighting setup instructions disappear from the spec... • They remain in vs 1.0 and 1.1, but they’re not in vs 2.0 • But we add macros: – sincos (8 slots) // cos in x, sin in y – crs (2 slots) // Cross Product

Changes to the VS numbers • 256 instructions of stored program (was 128) • 256 constants (was minimum of 96) • Address register is now vector (was scalar) • New registers – 64 iteration control registers (as 16 vectors) – 1 scalar loop register (only readable within the loop) – 16 1-bit Boolean registers • Max number of instructions executed per shader is now tentatively 1024 (max was always 128 before jumps)

Changes <strong>to</strong> <strong>the</strong> VS numbers<br />

• 256 instructions of s<strong>to</strong>red program (was 128)<br />

• 256 constants (was minimum of 96)<br />

• Address register is now vec<strong>to</strong>r (was scalar)<br />

• New registers<br />

– 64 iteration control registers (as 16 vec<strong>to</strong>rs)<br />

– 1 scalar loop register (only readable within <strong>the</strong> loop)<br />

– 16 1-bit Boolean registers<br />

• Max number of instructions executed per shader<br />

is now tentatively 1024 (max was always 128<br />

before jumps)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!