2023-10-12 03:51:52 -07:00
|
|
|
[require]
|
|
|
|
shader model >= 5.0
|
|
|
|
shader model < 6.0
|
|
|
|
|
2023-11-01 14:16:47 -07:00
|
|
|
[pixel shader fail]
|
2023-10-12 03:51:52 -07:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 teChnique = {0, 0, 0, 0};
|
|
|
|
return teChnique;
|
|
|
|
}
|
|
|
|
|
2023-11-02 07:37:01 -07:00
|
|
|
[pixel shader fail]
|
2023-11-02 07:26:38 -07:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 fxgroup = {0, 0, 0, 0};
|
|
|
|
return fxgroup;
|
|
|
|
}
|
|
|
|
|
2023-10-12 03:51:52 -07:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 teChnique10 = {0, 0, 0, 0};
|
|
|
|
return teChnique10;
|
|
|
|
}
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 teChnique11 = {0, 0, 0, 0};
|
|
|
|
return teChnique11;
|
|
|
|
}
|
|
|
|
|
2023-11-02 07:26:38 -07:00
|
|
|
[pixel shader]
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
float4 fxGroup = {0, 0, 0, 0};
|
|
|
|
return fxGroup;
|
|
|
|
}
|
|
|
|
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-10-12 03:51:52 -07:00
|
|
|
technique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique10
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
% Effects without techniques are allowed for fx_5_0
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-10-12 03:51:52 -07:00
|
|
|
float4 f;
|
|
|
|
|
|
|
|
% fx_2_0 keyword is allowed with fx_5_0 profiles
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-10-12 03:51:52 -07:00
|
|
|
technique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-11-05 08:28:40 -08:00
|
|
|
[effect fail]
|
2023-10-12 03:51:52 -07:00
|
|
|
technique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
tEchnique10
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-11-05 08:28:40 -08:00
|
|
|
[effect fail]
|
2023-10-12 03:51:52 -07:00
|
|
|
technique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
tEchnique11
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[effect fail]
|
|
|
|
float4 technique;
|
|
|
|
|
|
|
|
[effect fail]
|
|
|
|
float4 technIque;
|
|
|
|
|
|
|
|
[effect fail]
|
|
|
|
float4 technique10;
|
|
|
|
|
|
|
|
[effect fail]
|
|
|
|
float4 technique11;
|
|
|
|
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-10-12 03:51:52 -07:00
|
|
|
float4 technIque10;
|
|
|
|
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-10-12 03:51:52 -07:00
|
|
|
float4 technIque11;
|
2023-11-01 11:44:39 -07:00
|
|
|
|
|
|
|
% Regular shaders with technique blocks
|
2023-11-05 10:27:00 -08:00
|
|
|
[vertex shader]
|
2023-11-01 11:44:39 -07:00
|
|
|
float4 main() : sv_position
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
technique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique10
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2023-11-02 07:26:38 -07:00
|
|
|
fxgroup group
|
|
|
|
{
|
|
|
|
technique10 {}
|
|
|
|
}
|
|
|
|
|
2023-11-05 10:27:00 -08:00
|
|
|
[pixel shader]
|
2023-11-01 11:44:39 -07:00
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
tEchnique
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique10
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
technique11
|
|
|
|
{
|
|
|
|
}
|
2023-11-02 07:26:38 -07:00
|
|
|
|
|
|
|
fxgroup group
|
|
|
|
{
|
|
|
|
technique10 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Groups syntax
|
|
|
|
|
|
|
|
% Name has to be specified, it belongs to global scope
|
|
|
|
[effect fail]
|
|
|
|
fxgroup
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
% Group can't be empty
|
|
|
|
[effect fail]
|
|
|
|
fxgroup group
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[effect fail]
|
|
|
|
float4 group;
|
|
|
|
|
|
|
|
fxgroup group
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
% Groups can only contain a list of techniques
|
|
|
|
[effect fail]
|
|
|
|
fxgroup group
|
|
|
|
{
|
|
|
|
float4 v;
|
|
|
|
|
|
|
|
technique11 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Group provides scope for techniques
|
2024-01-12 05:26:39 -08:00
|
|
|
[effect]
|
2023-11-02 07:26:38 -07:00
|
|
|
fxgroup group1
|
|
|
|
{
|
|
|
|
technique11 tech0 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fxgroup group2
|
|
|
|
{
|
|
|
|
technique11 tech0 {}
|
|
|
|
}
|