Gorgon
Show / Hide Table of Contents

Interface IGorgonConstantBufferInfo

Provides information on how to set up a constant buffer.

Inherited Members
IGorgonNamedObject.Name
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 Source

SizeInBytes

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.

| Edit this page View Source

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.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author