I put my simple GLSL and HLSL code into AMD GPU ShaderAnalyzer.
I expect they will be equally in term of performance.
But what a surprise.....
HLSL EstCycle(Tri) GLSL EstCycle(Tri)
X1300 9 13
X1900 4.8 7
Who stole the 30% performance??
Both shader codes are almost the same.
Can You give me a hint?
Does it mean GLSL will be slower than HLSL?
Or just AMD GPU ShaderAnalyzer has problem with GLSL?
--------D3D ASM stastics-------------------------------------------------
Shader Version = 3.0
Instruction Count = 23
ALU Instructions = 9, Texture Instructions = 4, ALU:Texture Ratio = 2.25
Constant Register Count = 1
Temp Register Count = 3, Sampler Register Count = 3, Input Register Count = 6, Output Register Count = 1
Has PS2.0 Instructions
Uses Arbitrary Swizzle
I expect they will be equally in term of performance.
But what a surprise.....
HLSL EstCycle(Tri) GLSL EstCycle(Tri)
X1300 9 13
X1900 4.8 7
Who stole the 30% performance??
Both shader codes are almost the same.
Can You give me a hint?
Does it mean GLSL will be slower than HLSL?
Or just AMD GPU ShaderAnalyzer has problem with GLSL?
--------D3D ASM stastics-------------------------------------------------
Shader Version = 3.0
Instruction Count = 23
ALU Instructions = 9, Texture Instructions = 4, ALU:Texture Ratio = 2.25
Constant Register Count = 1
Temp Register Count = 3, Sampler Register Count = 3, Input Register Count = 6, Output Register Count = 1
Has PS2.0 Instructions
Uses Arbitrary Swizzle