ShaderKeyword.IsValid

Declaration

public bool IsValid();

Returns

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

Description

Checks whether the global shader keyword exists.


Declaration

public bool IsValid(ComputeShader shader);

Parameters

shader The shader that declares the keyword.

Returns

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

Description

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


Declaration

public bool IsValid(Shader shader);

Parameters

shader The shader that declares the keyword.

Returns

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

Description

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


Did you find this page useful? Please give it a rating: