Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

GraphicsState

struct in UnityEngine.Experimental.Rendering

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A graphics state identifies a specific rendering configuration.

Modern graphics APIs (i.e. Metal, D3D12, Vulkan) use both the active shader variant and rendering configuration to create the accurate GPU representation of a shader.

Properties

attachmentsArray of color attachments used in this rendering configuration.
depthAttachmentIndexThe index of the attachment to be used as the depth/stencil buffer for this rendering configuration.
depthBiasThe global depth bias value for this rendering configuration.
forceCullModeThe forced cull mode in this rendering configuration.
invertCullingFlag indicating if backface culling is inverted in this rendering configuration.
invertProjectionFlag indicating if the projection matrix is inverted in this rendering configuration.
multiviewCountThe number of VR views used in this rendering configuration.
negativeScaleFlag indicating if the mesh has inverted scale in this rendering configuration.
renderStateThe render state used in this rendering configuration.
sampleCountThe number of samples per pixel in this rendering configuration.
shadingRateIndexIndex of attachment used as shading rate image.
slopeDepthBiasThe global slope depth bias value for this rendering configuration.
subPassesArray containing information of each subpass.
subPassIndexIndex of the active subpass in this rendering configuration.
topologyThe topology of the Mesh, e.g: Triangles, Lines, Quads, Points, etc. used in this rendering configuration.
vertexAttributesArray containing information of vertex attributes.
wireframeIs wireframe mode enabled for this rendering configuration.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961