Determines whether drawing should be skipped for a given material and primitive combination.
This function checks if the material has a valid shader program for the specified primitive.
If no valid shader program is available (indicated by a UID of -1), drawing should be skipped
to avoid rendering errors.
Determines whether drawing should be skipped for a given material and primitive combination.
This function checks if the material has a valid shader program for the specified primitive. If no valid shader program is available (indicated by a UID of -1), drawing should be skipped to avoid rendering errors.