Urho.ConstantBuffer Class

Hardware constant buffer.

See Also: ConstantBuffer

Syntax

public class ConstantBuffer : UrhoObject

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.ConstantBuffer are listed below.

See Also: UrhoObject

Public Constructors

Constructs a new instance of Urho.ConstantBuffer which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.ConstantBuffer, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.ConstantBuffer linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
DirtyBoolean. Return whether has unapplied data.
[read-only]
SizeUInt32. Return size.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

Apply()
Apply to GPU.
Release()
Release the buffer.
SetParameter(UInt32, UInt32, Void*)
Set a generic parameter and mark buffer dirty.
SetSize(UInt32) : Boolean
Set size and create GPU-side buffer. Return true on success.
SetVector3ArrayParameter(UInt32, UInt32, Void*)
Set a Vector3 array parameter and mark buffer dirty.