Graphics

class in UnityEngine

Cambiar al Manual

Descripción

Raw interface to Unity's drawing functions.

This is the high-level shortcut into the optimized mesh drawing functionality of Unity.

Variables Estáticas

activeColorBufferCurrently active color buffer (Read Only).
activeColorGamutReturns the currently active color gamut.
activeDepthBufferCurrently active depth/stencil buffer (Read Only).
activeTierGraphics Tier classification for current device. Changing this value affects any subsequently loaded shaders. Initially this value is auto-detected from the hardware in use.
preserveFramebufferAlphaTrue when rendering over native UI is enabled in Player Settings (readonly).

Funciones Estáticas

BlitCopies source texture into destination render texture with a shader.
BlitMultiTapCopies source texture into destination, for multi-tap shader.
ClearRandomWriteTargetsClear random write targets for Shader Model 4.5 level pixel shaders.
ConvertTextureThis function provides an efficient way to convert between textures of different formats and dimensions. The destination texture format should be uncompressed and correspond to a supported RenderTextureFormat.
CopyTextureCopy texture contents.
CreateAsyncGraphicsFenceShortcut for calling Graphics.CreateGraphicsFence with GraphicsFenceType.AsyncQueueSynchronization as the first parameter.
CreateGraphicsFenceCreates a GraphicsFence which will be passed after the last Blit, Clear, Draw, Dispatch or Texture Copy command prior to this call has been completed on the GPU.
DrawMeshDraw a mesh.
DrawMeshInstancedDraw the same mesh multiple times using GPU instancing.
DrawMeshInstancedIndirectDraw the same mesh multiple times using GPU instancing.
DrawMeshInstancedProceduralDraw the same mesh multiple times using GPU instancing. This is similar to Graphics.DrawMeshInstancedIndirect, except when the instance count is known from script, it can be supplied directly using this method, rather than via a ComputeBuffer.
DrawMeshNowDraw a mesh immediately.
DrawProceduralDraws procedural geometry on the GPU.
DrawProceduralIndirectDraws procedural geometry on the GPU.
DrawProceduralIndirectNowDraws procedural geometry on the GPU.
DrawProceduralNowDraws procedural geometry on the GPU.
DrawTextureDraw a texture in screen coordinates.
ExecuteCommandBufferExecute a command buffer.
ExecuteCommandBufferAsyncExecutes a command buffer on an async compute queue with the queue selected based on the ComputeQueueType parameter passed.
SetRandomWriteTargetSet random write target for Shader Model 4.5 level pixel shaders.
SetRenderTargetSets current render target.
WaitOnAsyncGraphicsFenceInstructs the GPU's processing of the graphics queue to wait until the given GraphicsFence is passed.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961