Table of Contents

Class InstanceAttributeMapping

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents the format of a per-instance defined input value to a vertex shader.

public class InstanceAttributeMapping : VertexAttributeMapping
Inheritance
InstanceAttributeMapping
Inherited Members

Properties

Divisor

Gets or sets a value specifying the number of instances that each attribute in the buffer represents during instanced rendering.

public int Divisor { get; set; }

Property Value

int

Remarks

If divisor is zero, the attribute advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the sets of vertices being rendered.

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.