Xbox LIVE Indie Games
Sort Discussions: Previous Discussion Next Discussion
Page 1 of 1 (4 posts)

HLSL Render State names list

Last post 10/28/2014 2:38 PM by Tarh Ik. 3 replies.
  • 7/4/2008 10:15 AM

    HLSL Render State names list

    where to find "HLSL Render State names list"

    i know they are similar to names in XNA render state but some of them are different:

    XNA: DepthBufferWriteEnable vs HLSL: ZWriteEnable

    it would be great to have this list instead of trying many combination to gues the name...

  • 7/4/2008 8:33 PM In reply to

    Re: HLSL Render State names list

        State                       Where valid     # of indices Valid values
        ---------------------------+--------------+-------------+---------------------
        RasterizerState             Pass                       1  State Block
        DepthStencilState           Pass                       1  State Block
        BlendState                  Pass                       1  State Block
        RenderTargetView            Pass                       8  State Block
        DepthStencilView            Pass                       8  State Block
        GenerateMips                Pass                       1  Texture
        VertexShader                Pass                       1  NULL or Shader
        PixelShader                 Pass                       1  NULL or Shader
        GeometryShader              Pass                       1  NULL or Shader
        DS_StencilRef               Pass                       1  UINT
        AB_BlendFactor              Pass                       1  FLOAT4
        AB_SampleMask               Pass                       1  UINT
                                                                 
        FillMode                    Rasterizer                 1  FILL
        CullMode                    Rasterizer                 1  CULL
        FrontCounterClockwise       Rasterizer                 1  BOOL
        DepthBias                   Rasterizer                 1  UINT
        DepthBiasClamp              Rasterizer                 1  FLOAT
        SlopeScaledDepthBias        Rasterizer                 1  FLOAT
        DepthClipEnable             Rasterizer                 1  BOOL
        ScissorEnable               Rasterizer                 1  BOOL
        MultisampleEnable           Rasterizer                 1  BOOL
        AntialiasedLineEnable       Rasterizer                 1  BOOL
                                                                 
        DepthEnable                 DepthStencil               1  BOOL
        DepthWriteMask              DepthStencil               1  DEPTH_WRITE_MASK
        DepthFunc                   DepthStencil               1  CMP
        StencilEnable               DepthStencil               1  BOOL
        StencilReadMask             DepthStencil               1  BYTE
        StencilWriteMask            DepthStencil               1  BYTE
        FrontFaceStencilFail        DepthStencil               1  STENCILOP
        FrontFaceStencilDepthFail   DepthStencil               1  STENCILOP
        FrontFaceStencilPass        DepthStencil               1  STENCILOP
        FrontFaceStencilFunc        DepthStencil               1  CMP
        BackFaceStencilFail         DepthStencil               1  STENCILOP
        BackFaceStencilDepthFail    DepthStencil               1  STENCILOP
        BackFaceStencilPass         DepthStencil               1  STENCILOP
        BackFaceStencilFunc         DepthStencil               1  CMP
                                                                 
        AlphaToCoverageEnable       Blend                      1  BOOL
        BlendEnable                 Blend                      8  BOOL
        SrcBlend                    Blend                      8  BLEND
        DestBlend                   Blend                      8  BLEND
        BlendOp                     Blend                      8  BLENDOP
        SrcBlendAlpha               Blend                      8  BLEND
        DestBlendAlpha              Blend                      8  BLEND
        BlendOpAlpha                Blend                      8  BLENDOP
        RenderTargetWriteMask       Blend                      8  BYTE
                                                                 
        Filter                      Sampler                    1  FILTER
        AddressU                    Sampler                    1  TADDRESS
        AddressV                    Sampler                    1  TADDRESS
        AddressW                    Sampler                    1  TADDRESS
        MipLODBias                  Sampler                    1  FLOAT
        MaxAnisotropy               Sampler                    1  UINT
        ComparisonFunc              Sampler                    1  CMP
        BorderColor                 Sampler                    1  FLOAT4
        MinLOD                      Sampler                    1  FLOAT
        MaxLOD                      Sampler                    1  FLOAT
        Texture                     Sampler                    1  NULL or Texture

        RHS values
        ------------------------------
        BOOL:
            FALSE
            TRUE

        DEPTH_WRITE_MASK:
            ZERO
            ALL

        FILL:
            WIREFRAME
            SOLID

        FILTER:
            MIN_MAG_MIP_POINT
            MIN_MAG_POINT_MIP_LINEAR
            MIN_POINT_MAG_LINEAR_MIP_POINT
            MIN_POINT_MAG_MIP_LINEAR
            MIN_LINEAR_MAG_MIP_POINT
            MIN_LINEAR_MAG_POINT_MIP_LINEAR
            MIN_MAG_LINEAR_MIP_POINT
            MIN_MAG_MIP_LINEAR
            ANISOTROPIC
            COMPARISON_MIN_MAG_MIP_POINT
            COMPARISON_MIN_MAG_POINT_MIP_LINEAR
            COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
            COMPARISON_MIN_POINT_MAG_MIP_LINEAR
            COMPARISON_MIN_LINEAR_MAG_MIP_POINT
            COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
            COMPARISON_MIN_MAG_LINEAR_MIP_POINT
            COMPARISON_MIN_MAG_MIP_LINEAR
            COMPARISON_ANISOTROPIC
            TEXT_1BIT

        BLEND:
            ZERO
            ONE
            SRC_COLOR
            INV_SRC_COLOR
            SRC_ALPHA
            INV_SRC_ALPHA
            DEST_ALPHA
            INV_DEST_ALPHA
            DEST_COLOR
            INV_DEST_COLOR
            SRC_ALPHA_SAT
            BLEND_FACTOR
            INV_BLEND_FACTOR
            SRC1_COLOR
            INV_SRC1_COLOR
            SRC1_ALPHA
            INV_SRC1_ALPHA

        TADDRESS:
            CLAMP
            WRAP
            MIRROR
            BORDER
            MIRROR_ONCE

        CULL:
            NONE
            FRONT
            BACK

        CMP:
            NEVER
            LESS
            EQUAL
            LESS_EQUAL
            GREATER
            NOT_EQUAL
            GREATER_EQUAL
            ALWAYS

        STENCILOP:
            KEEP
            ZERO
            REPLACE
            INCR_SAT
            DECR_SAT
            INVERT
            INCR
            DECR

        BLENDOP:
            ADD
            SUBTRACT
            REV_SUBTRACT
            MIN
            MAX

  • 7/4/2008 9:18 PM In reply to

    Re: HLSL Render State names list

    John, this looks like the Direct3D 10 list. As the thread starter referees to XNA I am sure he/she asked for the Direct3D 9 list:

    Effect Format (Direct3D 9)

  • 10/28/2014 2:38 PM In reply to

    Re: HLSL Render State names list

    Thank you very much John Rap!!!!

         I've been looking for this information to update my shaders to DirectX11, and I have not been able to find an equivalent list in the MSDN network! I'm adding this post to my favorite links.

         Thanks again!!!

         Tarh Ik.
Page 1 of 1 (4 posts) Previous Discussion Next Discussion
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG