Backlog/engine/ui/shaders/rect_shared.hlsli

21 lines
343 B
HLSL

struct Scene
{
float2 imagePosition;
float2 imageSize;
float2 anchorPoint;
float2 scale;
float alpha;
float borderWidth;
uint flags;
float4 baseColor;
float4 rounding;
float4 edgeColor;
};
StructuredBuffer<Scene> scene: register(t0, space0);
cbuffer Uniforms : register(b0, space1)
{
float2 Extents;
};