Version: 2018.1

Graphics

class in UnityEngine

Switch to Manual

Description

Интерфейс, предоставляющий прямой доступ к функциям рисования Unity.

Это высокоуровневый доступ к функциям оптимизированного рисования мешей Unity.

Static Variables

activeColorBufferАктивный в настоящий момент буфер цвета (Read Only).
activeColorGamutReturns the currently active color gamut.
activeDepthBufferАктивный в настоящий момент буфер глубины (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.

Static Functions

BlitКопирует текстуру-источник в текстуру, предназначенную для рендеринга.
BlitMultiTapКопирует текстуру-источник в конечную текстуру для многоэтапного шейдера.
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.
CreateGPUFenceCreates a GPUFence 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.
DrawMeshРисует меш.
DrawMeshInstancedDraw the same mesh multiple times using GPU instancing.
DrawMeshInstancedIndirectDraw the same mesh multiple times using GPU instancing.
DrawMeshNowНемедленно рисует меш.
DrawProceduralРисует полностью процедурную геометрию на GPU.
DrawProceduralIndirectРисует полностью процедурную геометрию на GPU.
DrawTextureРисует текстуру в координатах экрана.
ExecuteCommandBufferExecute a command buffer.
ExecuteCommandBufferAsyncExecutes a command buffer on an async compute queue with the queue selected based on the ComputeQueueType parameter passed.It is required that all of the commands within the command buffer be of a type suitable for execution on the async compute queues. If the buffer contains any commands that are not appropriate then an error will be logged and displayed in the editor window. Specifically the following commands are permitted in a CommandBuffer intended for async execution:CommandBuffer.BeginSampleCommandBuffer.CopyCounterValueCommandBuffer.CopyTextureCommandBuffer.CreateGPUFenceCommandBuffer.DispatchComputeCommandBuffer.EndSampleCommandBuffer.IssuePluginEventCommandBuffer.SetComputeBufferParamCommandBuffer.SetComputeFloatParamCommandBuffer.SetComputeFloatParamsCommandBuffer.SetComputeTextureParamCommandBuffer.SetComputeVectorParamCommandBuffer.WaitOnGPUFenceAll of the commands within the buffer are guaranteed to be executed on the same queue. If the target platform does not support async compute queues then the work is dispatched on the graphics queue.
SetRandomWriteTargetSet random write target for Shader Model 4.5 level pixel shaders.
SetRenderTargetУстанавливает текущую цель рендера (цель рендера - то, куда производится рендеринг).
WaitOnGPUFenceInstructs the GPU's processing of the graphics queue to wait until the given GPUFence is passed.