Skip to main content

Struct ConstantBuffer

A constant buffer (or cbuffer), which is used to send values to shaders. Usually contains 4*n floats.

Assembly: FFXIVClientStructs.dll
Declaration
public struct ConstantBuffer

Fields

DefaultLoadSourcePointerFlags

View Source
Declaration
public const byte DefaultLoadSourcePointerFlags = 2

ByteSize

View Source
Declaration
public int ByteSize

Flags

View Source
Declaration
public int Flags

UnsafeSourcePointer

View Source
Declaration
public void* UnsafeSourcePointer

Methods

TryGetSourcePointer()

View Source
Declaration
public readonly void* TryGetSourcePointer()
Returns

System.Void*

TryGetBuffer()

View Source
Declaration
public readonly Span<float> TryGetBuffer()
Returns

System.Span<System.Single>

TryGetBuffer<TContents>()

View Source
Declaration
public readonly Span<TContents> TryGetBuffer<TContents>() where TContents : unmanaged
Returns

System.Span<<TContents>>

Type Parameters
  • TContents

LoadBuffer<TContents>(int, int, byte)

View Source
Declaration
public Span<TContents> LoadBuffer<TContents>(int offset, int length, byte flags = 2) where TContents : unmanaged
Returns

System.Span<<TContents>>

Parameters
TypeName
System.Int32offset
System.Int32length
System.Byteflags
Type Parameters
  • TContents

LoadSourcePointer(int, int, byte)

View Source
Declaration
[MemberFunction("E8 ?? ?? ?? ?? 49 8B 7E ?? 45 33 ED")]
public void* LoadSourcePointer(int byteOffset, int byteSize, byte flags = 2)
Returns

System.Void*

Parameters
TypeName
System.Int32byteOffset
System.Int32byteSize
System.Byteflags