Function VisualServerSingleton.materialGetShader

Returns the shader of a certain material's shader. Returns an empty RID if the material doesn't have a shader.

RID materialGetShader (
  const(RID) shader_material
) nothrow @nogc const;