Shader.this

Create a shader of the specified type.

If the shader is already created, nothing will happen if it is of the same type, or it is destroyed and (re)created if it is of a different type.

  1. this(ShaderType t)
    struct Shader
  2. void create(ShaderType t)

Meta