DirectX programming-renderstate (learning materials)

Source: Internet
Author: User
Renderstate members

The following tables list the members exposed by the renderstate type.

Public Properties

Name Description
Alphablendenable Gets or sets a value to enable alpha-blended transparency. The default value is false.
Alphablendoperation Gets or sets the arithmetic operation applied to separate alpha blending. The default is blendfunction. Add.
Alphadestinationblend Gets or sets the separate alpha channel blending factor. This factor represents a destination value by which to multiply the alpha channel only. The default is blend. One.
Alphafunction Gets or sets the comparison function for the Alpha test. The default is comparefunction. Always.
Alphasourceblend Gets or sets the separate alpha channel blending factor. This factor represents a value by which to multiply the alpha channel only. The default is blend. One.
Alphatestenable Gets or sets a render state that enables a per-pixel Alpha test. The default value is false.
Blendfactor Gets or sets the color used for a constant-blend factor during alpha blending. The default is color. White.
Blendfunction Gets or sets a value to select the arithmetic operation to apply to the Source and Destination pixel components when alphablendenable is set to true. The default is blendfunction. Add.
Colorwritechannels Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is colorwritechannels. None.
Colorwritechannels1 Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is colorwritechannels. None.
Colorwritechannels2 Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is colorwritechannels. None.
Colorwritechannels3 Gets or sets a value that enables a per-channel write for the render target color buffer. The default value is colorwritechannels. None.
Counterclockwisestencildepthbufferfail Gets or sets the stencel operation to perform if the stencel test passes and the depth-buffer test fails for a counterclockwise triangle. The default is stenciloperation. Keep.
Counterclockwisestencilfail Gets or sets the stencel operation to perform if the stencel test fails for a counterclockwise triangle. The default is stenciloperation. Keep.
Counterclockwisestencilfunction Gets or sets the comparison function to use for counterclockwise stencel tests. The default is comparefunction. Always.
Counterclockwisestencilpass Gets or sets the stencel operation to perform if the stencel and Z-Tests pass for a counterclockwise triangle. The default is stenciloperation. Keep.
Cullmode Specifies how back-facing triangles are culled, if at all. The default value is cullmode. counterclockwise.
Depthbias Sets or retrieves the depth bias for polygons. The default value is 0.
Depthbufferenable Enables or disables depth buffering. The default is true.
Depthbufferfunction Gets or sets the comparison function for the depth-buffer test. The default is comparefunction. lessequal
Depthbufferwriteenable Enables or disables writing to the depth buffer. The default is true.
Destinationblend Gets or sets the color blending factor. this factor represents a value by which to multiply the destination pixel color before adding it to the source pixel to produce a color that is a blend of the two. the default is blend. zero.
Fillmode Represents the fill mode. The default is fillmode. Solid.
Fogcolor Gets or sets the fog color. The default value is color. transparentblack.
Fogdensity Gets or sets the fog density for pixel or vertex fog used in exponential fog modes. The default value is 1.0f.
Fogenable Enables or disables fog blending. The default is false.
Fogend Gets or sets the depth at which pixel or vertex fog effects end for linear fog mode. The default value is 1.0f.
Fogstart Gets or sets the depth at which pixel or vertex fog effects begin for linear fog mode. The default value is 0.0f.
Fogtablemode Gets or sets the fog formula to use for Pixel fog. The default is none.
Fogvertexmode Gets or sets the fog formula to use for vertex fog. The default is fogmode. None.
Multisampleantialias Enables or disables multisample antialiasing. The default is true.
Multisamplemask Gets or sets a bitmask controlling modification of the samples in a multisample render target. The default is 0xffffffffff.
Pointsize Gets or sets the size to use for point size computation in cases where point size is not specified for each vertex. the default value is the value a Driver returns. if a driver returns 0 or 1, the default value is 64, which allows software point size emulation.
Pointsizemax Gets or sets the maximum size of point primitives. The default is 64.0f.
Pointsizemin Gets or sets the minimum size of point primitives. The default is 1.0f.
Pointspriteenable Enables or disables full texture mapping on each point. The default is false.
Rangefogenable Gets or sets enabling of range-based vertex fog. The default value is false.
Referencealpha Specifies a reference Alpha value against which pixels are tested when Alpha testing is enabled. The default value is 0.
Referencestenpencil Specifies a reference value to use for the stenpencil test. The default is 0.
Scissortestenable Enables or disables scissor testing. The default is false.
Separatealphablendenabled Enables or disables the separate blend mode for the alpha channel. The default is false.
Slopescaledepthbias Gets or sets a value used to determine how much bias can be applied to coplanar primitives to reduce flimmering Z-fighting. The default is 0.
Sourceblend Gets or sets the color blending factor. this factor represents a value by which to multiply the source pixel color before adding it to the destination pixel to produce a color that is a blend of the two. the default is blend. one.
Stencildepthbufferfail Gets or sets the stencel operation to perform if the stencel test passes and the depth-test fails. The default is stenciloperation. Keep.
Stencilenable Gets or sets stencel enabling. The default is false.
Stencilfail Gets or sets the stencel operation to perform if the stencel test fails. The default is stenciloperation. Keep.
Stencilfunction Gets or sets the comparison function for the stencel test. The default is comparefunction. Always.
Stencilmask Gets or sets the mask applied to the reference value and each stencel buffer entry to determine the significant bits for the stencel test. The default mask is int32.maxvalue.
Stencilpass Gets or sets the stencel operation to perform if the stencel test passes. The default is stenciloperation. Keep.
Stencilwritemask Gets or sets the write mask applied to values written into the stencel buffer. The default mask is int32.maxvalue.
Twosidedstencilmode Enables or disables two-sided stenciling. The default is false.
Wrap0 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap1 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap10 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap11 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap12 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap13 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap14 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap15 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap2 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap3 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap4 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap5 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap6 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap7 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap8 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).
Wrap9 Gets or sets the texture-wrapping behavior for multiple sets of texture coordinates. The default value for this render state is texturewrapcoordinates. Zero (wrapping disabled in all directions ctions ).

Public Methods

Name Description
Equals (Inherited from object .)
Gethashcode (Inherited from object .)
GetType (Inherited from object .)
Referenceequals (Inherited from object .)
Tostring Retrieves a string representation of this object.

Protected Methods

Name Description
Finalize (Inherited from object .)
Memberwiseclone (Inherited from object .)

See also

Referencerenderstate class
Microsoft. xNa. Framework. Graphics namespace

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.