Ogre Version: 13.3
Operating System:
Render System: DX9
Hi,
I'm trying to make the game exported by the SHMUP Creator not crash on Steamdeck. I have to say I don't have Steamdeck right now, I only received logs from people who tried.
From what I understand, my shaders don't compile, but I'm not sure to understand why and what I can do.
For example, from Ogre.log:
Code: Select all
00:37:30: Error: ScriptCompiler - invalid parameters in (38): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (39): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (40): Named constants have not been initialised, perhaps a compile error
00:37:30: Program 'onlyTextureNoColor_vs' is not supported: Cannot assemble D3D9 high-level shader onlyTextureNoColor_vs Errors:
<anonymous>:45:20: E5005: Function "tex2D" is not defined.
But my shader only has a tex2D in the fragment shader so I'm lost:
Code: Select all
struct VIn
{
float4 p : POSITION;
float2 uv : TEXCOORD0;
};
struct VOut
{
float4 p : SV_POSITION;
float2 uv : TEXCOORD0;
};
struct PIn
{
float4 p : SV_POSITION;
float2 uv : TEXCOORD0;
};
struct POut
{
half4 c : COLOR;
};
VOut onlyTextureNoColor_vs(VIn IN,
uniform float4x4 wvpMat
)
{
VOut OUT;
OUT.p = mul(wvpMat, IN.p);
OUT.uv = IN.uv;
return OUT;
}
POut onlyTextureNoColor_ps(
PIn IN,
uniform float alpha,
uniform sampler2D tex : TEXUNIT0
)
{
POut OUT;
half4 diffuseTex = tex2D(tex, IN.uv) * alpha;
OUT.c = diffuseTex;
return OUT;
}
I also have a lot of missing shader features, like fwidth or fmod, and I don't know how to do without them. Also, Ogre own shadow shaders don't compile.
Code: Select all
00:37:30: Parsing script ShadowVolumeExtude.program
00:37:30: Program 'Ogre/ShadowBlendVP' is not supported: Cannot assemble D3D9 high-level shader Ogre/ShadowBlendVP Errors:
<anonymous>:60:69: E5005: Function "tex2Dlod" is not defined.
00:37:30: Error: ScriptCompiler - invalid parameters in (10): Named constants have not been initialised, perhaps a compile error
00:37:30: Program 'Ogre/ShadowBlendFP' is not supported: Cannot assemble D3D9 high-level shader Ogre/ShadowBlendFP Errors:
<anonymous>:60:69: E5005: Function "tex2Dlod" is not defined.
00:37:30: Error: ScriptCompiler - invalid parameters in (27): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (28): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (29): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (30): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (31): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (32): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (33): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (34): Named constants have not been initialised, perhaps a compile error
00:37:30: Program 'animatedParticle_fp' is not supported: Cannot assemble D3D9 high-level shader animatedParticle_fp Errors:
<anonymous>:6:14: E5005: Function "fwidth" is not defined.
00:37:30: Error: ScriptCompiler - invalid parameters in (44): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (45): Named constants have not been initialised, perhaps a compile error
00:37:30: Error: ScriptCompiler - invalid parameters in (46): Named constants have not been initialised, perhaps a compile error
00:37:30: Parsing script bullets.program
00:37:30: Program 'bullet_vs' is not supported: Cannot assemble D3D9 high-level shader bullet_vs Errors:
<anonymous>:49:18: E5005: Function "fmod" is not defined.
If someone has some guidance about what I could do
S.