Version: 2023.1
public bool IsValid ();

返回

bool Returns true if the global shader keyword exists. Otherwise, returns false.

描述

Checks whether the global shader keyword exists.


public bool IsValid (ComputeShader shader);

参数

shader The shader that declares the keyword.

返回

bool Returns true if the shader keyword exists. Otherwise, returns false.

描述

Checks whether the shader keyword exists in the compute shader you pass in.


public bool IsValid (Shader shader);

参数

shader The shader that declares the keyword.

返回

bool Returns true if the shader keyword exists. Otherwise, returns false.

描述

Checks whether the shader keyword exists in the shader you pass in.