View Single Post
Old 08 June 2016, 12:55   #3
crazy46guy
 
Posts: n/a
I have a complicated shader (attached) that won't compile. Here's a section from the winuaelog (attached):

44-116 [0 000=000]: Direct3D: Pixel shader 2.0+ support detected, shader filters enabled.
44-123 [0 000=000]: Device name: 'NVIDIA GeForce GTX 660' a0012000d1aa6.a1
44-140 [0 000=000]: D3D9Ex: 00000056 00020800 E0020000 000007A0 ALPHA DYNAMIC SCANLINE
44-140 [0 000=000]: D3D9Ex: PS=3.0 VS=3.0 1434*1018*0p VS=0 B=1I 32-bit 0 (16384x16384)
44-141 [0 000=000]: D3D9Ex: Attempting to load 'C:\Emulate\Other Systems\Amiga\Bin\plugins\filtershaders\direct3d\_winuae.fx'
44-158 [0 000=000]: D3D9Ex: pixelshader filter 'C:\Emulate\Other Systems\Amiga\Bin\plugins\filtershaders\direct3d\_winuae.fx':-1 enabled
44-158 [0 000=000]: D3D9Ex: Attempting to load 'C:\Emulate\Other Systems\Amiga\Bin\plugins\filtershaders\direct3d\5xBRZ.fx'
45-395 [0 000=000]: D3D9Ex: CompileEffect failed: 88760B59 S=1 F=0876 C=0B59 (2905) () C:\Emulate\Other Systems\Amiga\Bin\plugins\filtershaders\direct3d\5xBRZ.fx(279,9): error X4505: maximum temp register index exceeded

I have DirectX 11 on my machine, but the log shows WinUAE is using DirectX 9. HLSL PS 3.0 (DirectX 9) has only 32 temp registers, but HLSL PS 4.0 or above (DirectX 10+) has 4096 temp registers.

Hopefully my shader will compile with HLSL 4.0 or above. Can WinUAE use DirectX 10+ ?
Attached Files
File Type: zip HLSL.zip (15.5 KB, 57 views)
 
 
Page generated in 0.04879 seconds with 10 queries