Class UnorderedAccessBufferInfo
Unordered Access Buffer: RWStructuredBuffer, RWTexture1D, RWTexture1DArray, RWTexture2D, RWTexture3D, RWByteAddressBuffer, RWBuffer, AppendStructuredBuffer, ConsumeStructuredBuffer.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class UnorderedAccessBufferInfo : GraphicsResourceInfo
Constructors
UnorderedAccessBufferInfo(UnorderedAccessBufferType, string, string, int, string)
Initializes a new instance of the UnorderedAccessBufferInfo class.
Declaration
public UnorderedAccessBufferInfo(UnorderedAccessBufferInfo.UnorderedAccessBufferType uaType, string name, string structType, int slot, string tag)
Parameters
Type | Name | Description |
---|---|---|
UnorderedAccessBufferInfo.UnorderedAccessBufferType | uaType | Unordered Access Buffer type. |
string | name | Unordered Access Buffer name. |
string | structType | Structure type. |
int | slot | Unordered Access Buffer slot. |
string | tag | Unordered Access semantic tag. |
UnorderedAccessBufferInfo(string, string, string, string, string)
Initializes a new instance of the UnorderedAccessBufferInfo class.
Declaration
public UnorderedAccessBufferInfo(string s_uaType, string name, string structType, string slot, string tag)
Parameters
Type | Name | Description |
---|---|---|
string | s_uaType | Unordered Access Buffer type. |
string | name | Unordered Access Buffer name. |
string | structType | Structure type. |
string | slot | Unordered Access Buffer slot. |
string | tag | UA tag. |
Fields
FixedSize
Used on post-processing ports as the output texture size.
Declaration
public Vector2 FixedSize
Field Value
Type | Description |
---|---|
Vector2 |
PixelFormat
Used on post-processing ports as the output pixel format.
Declaration
public PixelFormat PixelFormat
Field Value
Type | Description |
---|---|
PixelFormat |
ReferencedInput
Used on post-processing ports as output-referenced input ports.
Declaration
public string ReferencedInput
Field Value
Type | Description |
---|---|
string |
ScaleFactor
Used on post-processing ports as an output scale factor.
Declaration
public float ScaleFactor
Field Value
Type | Description |
---|---|
float |
Semantic
The UA semantics.
Declaration
public UnorderedAccessBufferInfo.UnorderedAccessSemantic Semantic
Field Value
Type | Description |
---|---|
UnorderedAccessBufferInfo.UnorderedAccessSemantic |
StructType
Struct type inside the UnorderedAccessBuffer.
Declaration
public Type StructType
Field Value
Type | Description |
---|---|
Type |
StructTypeSize
Struct type size.
Declaration
public int StructTypeSize
Field Value
Type | Description |
---|---|
int |
Tag
Tag attribute parameter.
Declaration
public string Tag
Field Value
Type | Description |
---|---|
string |
UAType
Unordered Access Buffer type.
Declaration
public UnorderedAccessBufferInfo.UnorderedAccessBufferType UAType
Field Value
Type | Description |
---|---|
UnorderedAccessBufferInfo.UnorderedAccessBufferType |
sStructType
Structure of the string type inside the UnorderedAccessBuffer.
Declaration
public string sStructType
Field Value
Type | Description |
---|---|
string |
Methods
IsTexture()
Indicates whether the UA is a texture (RWTexture1D or RWTexture2D ...).
Declaration
public bool IsTexture()
Returns
Type | Description |
---|---|
bool | True if uaType is a texture type. |
Read(BinaryReader)
Reads an Unordered Access Buffer from a binary file.
Declaration
public static UnorderedAccessBufferInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
UnorderedAccessBufferInfo | The read unordered access buffer. |
Write(BinaryWriter)
Writes an Unordered Access Buffer into a binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |