Interface IGorgonConstantBufferInfo
Provides information on how to set up a constant buffer.
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public interface IGorgonConstantBufferInfo : IGorgonNamedObject
Remarks
This provides an immutable view of the constant buffer information so that it cannot be modified after the buffer is created.
Properties
| Edit this page View SourceSizeInBytes
Property to return the number of bytes to allocate for the buffer.
Declaration
int SizeInBytes { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
important
A Constant buffer, must set the size to be a multiple of 16. Constant buffer alignment rules require that they be sized to the nearest 16 bytes.
If the buffer is not sized to a multiple of 16, Gorgon will attempt to adjust the size to fit the alignment requirement.
Usage
Property to return the intended usage flags for this texture.
Declaration
ResourceUsage Usage { get; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Remarks
This value is defaulted to Default.