mojoshader.h
branchtrunk
changeset 147 98043daf5027
parent 146 9a0d4707feb8
child 148 645003ec6623
equal deleted inserted replaced
146:9a0d4707feb8 147:98043daf5027
    52 /*
    52 /*
    53  * Data types for uniforms. See MOJOSHADER_uniform for more information.
    53  * Data types for uniforms. See MOJOSHADER_uniform for more information.
    54  */
    54  */
    55 typedef enum
    55 typedef enum
    56 {
    56 {
    57     MOJOSHADER_UNIFORM_FLOAT = 0,
    57     MOJOSHADER_UNIFORM_FLOAT,
    58     MOJOSHADER_UNIFORM_INT = 1,
    58     MOJOSHADER_UNIFORM_INT,
    59     MOJOSHADER_UNIFORM_BOOL = 2,
    59     MOJOSHADER_UNIFORM_BOOL,
    60     MOJOSHADER_UNIFORM_SAMPLER_2D = 3,
    60     MOJOSHADER_UNIFORM_SAMPLER_2D,
    61     MOJOSHADER_UNIFORM_SAMPLER_CUBE = 4,
    61     MOJOSHADER_UNIFORM_SAMPLER_CUBE,
    62     MOJOSHADER_UNIFORM_SAMPLER_3D = 5,
    62     MOJOSHADER_UNIFORM_SAMPLER_3D,
    63 } MOJOSHADER_uniformType;
    63 } MOJOSHADER_uniformType;
    64 
    64 
    65 /*
    65 /*
    66  * These are the uniforms to be set for a shader. "Uniforms" are what Direct3D
    66  * These are the uniforms to be set for a shader. "Uniforms" are what Direct3D
    67  *  calls "Constants" ... IDirect3DDevice::SetVertexShaderConstantF() would
    67  *  calls "Constants" ... IDirect3DDevice::SetVertexShaderConstantF() would
    79 /*
    79 /*
    80  * Data types for attributes. See MOJOSHADER_attribute for more information.
    80  * Data types for attributes. See MOJOSHADER_attribute for more information.
    81  */
    81  */
    82 typedef enum
    82 typedef enum
    83 {
    83 {
    84     MOJOSHADER_USAGE_POSITION = 0,
    84     MOJOSHADER_USAGE_POSITION,
    85     MOJOSHADER_USAGE_BLENDWEIGHT = 1,
    85     MOJOSHADER_USAGE_BLENDWEIGHT,
    86     MOJOSHADER_USAGE_BLENDINDICES = 2,
    86     MOJOSHADER_USAGE_BLENDINDICES,
    87     MOJOSHADER_USAGE_NORMAL = 3,
    87     MOJOSHADER_USAGE_NORMAL,
    88     MOJOSHADER_USAGE_POINTSIZE = 4,
    88     MOJOSHADER_USAGE_POINTSIZE,
    89     MOJOSHADER_USAGE_TEXCOORD = 5,
    89     MOJOSHADER_USAGE_TEXCOORD,
    90     MOJOSHADER_USAGE_TANGENT = 6,
    90     MOJOSHADER_USAGE_TANGENT,
    91     MOJOSHADER_USAGE_BINORMAL = 7,
    91     MOJOSHADER_USAGE_BINORMAL,
    92     MOJOSHADER_USAGE_TESSFACTOR = 8,
    92     MOJOSHADER_USAGE_TESSFACTOR,
    93     MOJOSHADER_USAGE_POSITIONT = 9,
    93     MOJOSHADER_USAGE_POSITIONT,
    94     MOJOSHADER_USAGE_COLOR = 10,
    94     MOJOSHADER_USAGE_COLOR,
    95     MOJOSHADER_USAGE_FOG = 11,
    95     MOJOSHADER_USAGE_FOG,
    96     MOJOSHADER_USAGE_DEPTH = 12,
    96     MOJOSHADER_USAGE_DEPTH,
    97     MOJOSHADER_USAGE_SAMPLE = 13,
    97     MOJOSHADER_USAGE_SAMPLE,
    98     MOJOSHADER_USAGE_TOTAL,  /* housekeeping value; not ever returned. */
    98     MOJOSHADER_USAGE_TOTAL,  /* housekeeping value; not ever returned. */
    99 } MOJOSHADER_usage;
    99 } MOJOSHADER_usage;
   100 
   100 
   101 /*
   101 /*
   102  * These are the attributes to be set for a shader. "Attributes" are what
   102  * These are the attributes to be set for a shader. "Attributes" are what