Version: 2020.3
言語: 日本語

ShaderUtil

class in UnityEditor

マニュアルに切り替える

説明

シェーダーに関するユーティリティクラスです

Static 変数

allowAsyncCompilationWhen true, asynchronous Shader compilation is allowed at the current call site.
anythingCompilingWhen true, the Editor is compiling some Shaders asynchronously at the point of query.
hardwareSupportsRectRenderTexture現在のハードウェアが RenderTexture をサポートしているかどうか

Static 関数

ClearCachedDataClears all internally-cached data that was generated for the given shader, such as errors and compilation info.
ClearShaderMessagesClear compile time messages for the given shader.
CompilePassRequest the Editor to compile the Shader Variant needed for the specific pass of the given Material.
CreateShaderAssetCreates a new Shader object from the provided source code string. You can use this method alongside the ScriptedImporter to create custom shader generation tools in the Editor.
GetAllShaderInfoReturns an array of ShaderInfo of all available shaders. That includes built-in shaders.
GetCallableShaderCountReturns the number of callable Shaders defined whitin a given RayTracingShader.
GetCallableShaderNameReturns the name of a user-defined callable Shader from within a RayTracingShader.
GetCallableShaderParamSizeReturns the parameter size of a user-defined callable Shader from within a RayTracingShader.
GetComputeShaderMessageCountReturns the number of errors and warnings generated by the Unity Shader Compiler for the given ComputeShader.
GetComputeShaderMessagesReturns each error and warning generated by the Unity Shader Compiler for the given ComputeShader.
GetMissShaderCountReturns the number of miss Shaders defined whitin a given RayTracingShader.
GetMissShaderNameReturns the name of a user-defined miss Shader from within a RayTracingShader.
GetMissShaderRayPayloadSizeReturns the ray payload size of a user-defined miss Shader from within a RayTracingShader.
GetPropertyCountシェーダーのプロパティー数を取得します
GetPropertyDescriptionプロパティーの説明部分を取得します
GetPropertyNameプロパティー名を取得します
GetPropertyTypeプロパティーのタイプを取得します
GetRangeLimitsRange プロパティーの値と範囲を取得します
GetRayGenerationShaderCountReturns the number of ray generation Shaders defined whitin a given RayTracingShader.
GetRayGenerationShaderNameReturns the name of a user-defined ray generation Shader from within a RayTracingShader.
GetRayTracingShaderMessageCountReturns the number of errors and warnings generated by the Shader Compiler for the given RayTracingShader.
GetRayTracingShaderMessagesReturns each error and warning generated by the Shader Compiler for the given RayTracingShader.
GetShaderDataGet the shader data for a specific shader.
GetShaderMessageCountReturns the number of errors and warnings generated by the Unity Shader Compiler for the given Shader.
GetShaderMessagesReturns each error and warning generated by the Unity Shader Compiler for the given Shader.
GetShaderPlatformKeywordsForBuildTargetGets the platform keywords for a shader, given a shader compiler platform, build target, and optional graphics tier. These platform keywords are necessary to properly compile a shader for a given target.
GetTexDimシェーダープロパティーのテクスチャの次元を取得
HasProceduralInstancingDetermines whether the specified Shader contains a valid Procedural Instancing variant.
IsPassCompiledChecks if the Shader variant for the given pass in the Material has already been compiled.
IsShaderPropertyHiddenインスペクターなどに表示するときプロパティーが非表示状態かどうかを取得します
IsShaderPropertyNonModifiableTexurePropertyIs the shader propery at index propertyIdx of Shader s a NonModifiableTextureProperty?
RegisterShaderRegister a user created shader.
RestoreAsyncCompilationRestores the previous Shader compilation mode in this CommandBuffer scope.
SetAsyncCompilationAdds shader compilation mode command in the CommandBuffer.
ShaderHasErrorReturns true if the given Shader generated any errors. Ignores warnings.
UpdateShaderAssetReplaces the existing source code in the specified shader with the source code in the supplied string.