Skip to content

X3DSharedConstantBufferDef

Uncategorized - no domain claims this class yet. Categorize

Class Documentation

Edit documentation

A shared constant buffer: one GPU constant buffer that the client creates from the constants list and that shaders find by name. See X3DSharedData for registration and filtering.

The client lays out the constants in list order with the HLSL 16-byte packing rules. Constants that PlatformMask or ShaderModel filter out take no space. The buffer size is the end of the last constant, rounded up to 16 bytes. The buffer is always a dynamic buffer that the CPU writes.

Properties

OpenglConstantBuffer

Bool = false
Edit documentation

Purpose not yet identified. The client does not read it when it creates the buffer.

frequency

U8 = 0
Edit documentation

Purpose not yet identified. The client does not read it when it creates the buffer.

type

U32 = 0
Edit documentation

The client stores it with the buffer, as 1 for value 0, 2 for value 1 and 0 for any other value. It does not change the GPU buffer. What reads it is not yet identified.

Referenced by 2 classes · 2 properties