Version: 2021.2
언어: 한국어

SystemInfo.GetGraphicsFormat

매뉴얼로 전환

파라미터

format The DefaultFormat format to look up.

설명

Returns the platform-specific GraphicsFormat that is associated with the DefaultFormat.

You can create a RenderTexture with DefaultFormat.DepthStencil by setting the resulting GraphicsFormat to RenderTexture.depthStencilFormat, RenderTextureDescriptor.depthStencilFormat or by using one of the constructors.

To create a RenderTexture that you can use as a shadow map, set the ShadowSamplingMode using RenderTextureDescriptor.shadowSamplingMode. If you only set the depth or stencil format and not the ShadowSamplingMode then you will not have a valid shadow map.

See Also: GraphicsFormat enum and DefaultFormat.