Makeprojects
Loading...
Searching...
No Matches
makeprojects.hlsl_support Namespace Reference

Data and code to support HLSL targets. More...

Functions

 make_hlsl_command (command_dict, source_file)
 Create HLSL command line.

Variables

tuple HLSL_OPTIMIZATION
 Enumerations for HLSL Optimization.
tuple HLSL_MATRICES
 Enumerations for HLSL MatricesPacking.
tuple HLSL_FLOW_CONTROL
 Enumerations for HLSL FlowControl.
tuple HLSL_TARGET_PROFILES
 Enumerations for HLSL TargetProfile.
tuple HLSL_ENUMS
 Names, default, lookup tables for HLSL enums.
tuple HLSL_BOOLEANS
 Boolean list for HLSL, Name, Default, switches.
tuple HLSL_STRINGS
 String entries for HLSL.
tuple HLSL_STRING_LISTS
 String list entries for HLSL, switch, quote parameters.

Detailed Description

Data and code to support HLSL targets.

This module contains data, classes and functions to support building HLSL files

Function Documentation

◆ make_hlsl_command()

makeprojects.hlsl_support.make_hlsl_command ( command_dict,
source_file )

Create HLSL command line.

Parameters
command_dictDict with command overrides
source_fileFile to process
Returns
Command line, Description, Output list

Variable Documentation

◆ HLSL_BOOLEANS

tuple makeprojects.hlsl_support.HLSL_BOOLEANS
Initial value:
1= (
2 ("GenerateDebugInformation", (None, "/Zi", True)),
3 ("NoLogo", (True, "/nologo", True)),
4 ("DisableValidation", (None, "/Vd", True)),
5 ("TreatWarningsAsErrors", (None, "/WX", True)),
6 ("StripReflectionData", (None, "/Qstrip_reflect", True)),
7 ("StripDebugInformation", (None, "/Qstrip_debug", True)),
8 ("ForcePartialPrecision", (None, "/Gpp", True)),
9 ("DisablePreshaders", (None, "/Op", True)),
10 ("DisableEffectPerformanceMode", (None, "/Gdp", True)),
11 ("EnableStrictMode", (None, "/Ges", True)),
12 ("EnableBackwardsCompatibility", (None, "/Gec", True)),
13 ("ForceIEEEStrictness", (None, "/Gis", True)),
14 ("ShowIncludeProcess", (None, "/Vi", True)),
15 ("ColorCodeAssembly", (None, "/Cc", True)),
16 ("OutputInstructionNumbers", (None, "/Ni", True)),
17 ("LoadDX931", (None, "/LD", True)),
18 ("CompressDX10", (None, "/compress", True)),
19 ("DecompressDX10", (None, "/decompress", True)),
20 ("CompileChildFx4", (None, "/Gch", True))
21)

Boolean list for HLSL, Name, Default, switches.

◆ HLSL_ENUMS

tuple makeprojects.hlsl_support.HLSL_ENUMS
Initial value:
1= (
2 ("Optimization", (4, HLSL_OPTIMIZATION)),
3 ("MatricesPacking", (1, HLSL_MATRICES)),
4 ("FlowControl", (1, HLSL_FLOW_CONTROL)),
5 ("TargetProfile", (8, HLSL_TARGET_PROFILES))
6)

Names, default, lookup tables for HLSL enums.

◆ HLSL_FLOW_CONTROL

tuple makeprojects.hlsl_support.HLSL_FLOW_CONTROL
Initial value:
1= (
2 ("/Gfa", 0), ("Avoid", 0), ("/Gfp", 1), ("Prefer", 1)
3)

Enumerations for HLSL FlowControl.

◆ HLSL_MATRICES

tuple makeprojects.hlsl_support.HLSL_MATRICES
Initial value:
1= (
2 ("/Zpr", 0), ("Row", 0), ("/Zpc", 1), ("Column", 1)
3)

Enumerations for HLSL MatricesPacking.

◆ HLSL_OPTIMIZATION

tuple makeprojects.hlsl_support.HLSL_OPTIMIZATION
Initial value:
1= (
2 ("/Od", 0), ("/O0", 1), ("/O1", 2), ("/O2", 3), ("/O3", 4)
3)

Enumerations for HLSL Optimization.

◆ HLSL_STRING_LISTS

tuple makeprojects.hlsl_support.HLSL_STRING_LISTS
Initial value:
1= (
2 ("PreprocessorDefinitions", ("/D", False)),
3 ("AdditionalIncludeDirectories", ("/I ", True))
4)

String list entries for HLSL, switch, quote parameters.

◆ HLSL_STRINGS

tuple makeprojects.hlsl_support.HLSL_STRINGS
Initial value:
1= (
2 ("ObjectFileName", (
3 None, "/Fo", True, True)),
4 ("HeaderFileName", (
5 "%(RootDir)%(Directory)%(FileName).h", "/Fh", True, True)),
6 ("EntryPointName", (
7 None, "/E", False, False)),
8 ("VariableName", (
9 "g_%(FileName)", "/Vn", False, False))
10)

String entries for HLSL.

◆ HLSL_TARGET_PROFILES

tuple makeprojects.hlsl_support.HLSL_TARGET_PROFILES
Initial value:
1= (
2 ("/Tvs_1_1", 0), ("vs_1_1", 0),
3 ("/Tvs_2_0", 1), ("vs_2_0", 1),
4 ("/Tvs_2_a", 2), ("vs_2_a", 2),
5 ("/Tvs_2_sw", 3), ("vs_2_sw", 3),
6 ("/Tvs_3_0", 4), ("vs_3_0", 4),
7 ("/Tvs_3_sw", 5), ("vs_3_sw", 5),
8 ("/Tvs_4_0", 6), ("vs_4_0", 6),
9 ("/Tvs_4_1", 7), ("vs_4_1", 7),
10 ("/Tps_2_0", 8), ("ps_2_0", 8),
11 ("/Tps_2_a", 9), ("ps_2_a", 9),
12 ("/Tps_2_b", 10), ("ps_2_b", 10),
13 ("/Tps_2_sw", 11), ("ps_2_sw", 11),
14 ("/Tps_3_0", 12), ("ps_3_0", 12),
15 ("/Tps_3_sw", 13), ("ps_3_sw", 13),
16 ("/Tps_4_0", 14), ("ps_4_0", 14),
17 ("/Tps_4_1", 15), ("ps_4_1", 15),
18 ("/Ttx_1_0", 16), ("tx_1_0", 16),
19 ("/Tgs_4_0", 17), ("gs_4_0", 17),
20 ("/Tgs_4_1", 18), ("gs_4_1", 18),
21 ("/Tfx_2_0", 19), ("fx_2_0", 19),
22 ("/Tfx_4_0", 20), ("fx_4_0", 20),
23 ("/Tfx_4_1", 21), ("fx_4_1", 21)
24)

Enumerations for HLSL TargetProfile.