15 lines
321 B
HLSL
15 lines
321 B
HLSL
struct FontInfo {
|
|
float2 position; // 8 bytes alignment 0
|
|
float size; // 8 bytes alignment 8
|
|
uint isSdf; // 4 bytes 16
|
|
uint pad0; // 4 bytes
|
|
float2 pad2; // 8 bytes
|
|
};
|
|
|
|
StructuredBuffer<FontInfo> fontBuffer: register(t0, space0);
|
|
|
|
cbuffer Uniforms : register(b0, space1)
|
|
{
|
|
float2 Extents;
|
|
};
|