ShadowShaderP.hlsl bug
by Tom Spilman · in Torque Game Engine Advanced · 01/21/2007 (5:03 pm) · 2 replies
I got the following error doing some unrelated shader debugging with the reference rasterizer:
Just wanted to be sure someone noticed it. ;)
Quote:(1): error X5608: Compiled shader code uses too many arithmetic instruction slots (104). Max. allowed by the target (ps_2_0) is 64.
(1): error X5609: Compiled shader code uses too many instruction slots (110). Max. allowed by the target (ps_2_0) is 96.
Fatal: (c:\projects\forestpack\engine\gfx\d3d\gfxd3dshader.cpp @ 207) Unable to compile pixel shader 'shaders/lightingSystem/ShadowShaderP.hlsl'
Just wanted to be sure someone noticed it. ;)
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
#2
01/21/2007 (6:31 pm)
Ok... my bad... the errors are bogus. From the DX docs...Quote:D3DXSHADER_SKIPOPTIMIZATION tells the compiler to skip optimization. Optimization may reorder instructions; this is good for making shaders fast, but also makes debugging more difficult. On the other hand, unoptimized shaders might exceed the maximum instruction limits if they are close to the limits without optimization.Which is why it was bitching to me... so ignore this thread. :)
Associate Tom Spilman
Sickhead Games