ドキュメント

Unity Engine

Unity Engine

VariantsUploadedToGpuLastFrame.UploadData

Represents a shader variant that was uploaded to the GPU driver.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public readonly struct VariantsUploadedToGpuLastFrame.UploadData

Remarks

This struct provides information about a shader variant that was uploaded to the GPU driver during the last frame. You can use this information to add this variant to a ShaderVariantCollection or to a GraphicsStateCollection, in order to warm up the shader before it's used and reduce frame stutters.

Fields

Value

Description

keywordsThe keywords identifying the uploaded shader variant.
passIdentifierThe pass identifier for the uploaded shader variant.
shaderThe shader the uploaded shader variant belongs to.
stagesThe shader stages of the uploaded shader variant.
uploadTimeInMillisecondsThe time in milliseconds spent uploading the shader variant to the GPU driver.