mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-21 15:32:18 +00:00
32 lines
772 B
HLSL
32 lines
772 B
HLSL
#pragma once
|
|
|
|
#include "../imgui/imgui_common.h"
|
|
|
|
struct PushConstants
|
|
{
|
|
float2 BoundsMin;
|
|
float2 BoundsMax;
|
|
uint GradientTopLeft;
|
|
uint GradientTopRight;
|
|
uint GradientBottomRight;
|
|
uint GradientBottomLeft;
|
|
uint ShaderModifier;
|
|
uint Texture2DDescriptorIndex;
|
|
float2 DisplaySize;
|
|
float2 InverseDisplaySize;
|
|
float2 Origin;
|
|
float2 Scale;
|
|
float2 ProceduralOrigin;
|
|
float Outline;
|
|
};
|
|
|
|
Texture2D<float4> g_Texture2DDescriptorHeap[] : register(t0, space0);
|
|
SamplerState g_SamplerDescriptorHeap[] : register(s0, space1);
|
|
[[vk::push_constant]] ConstantBuffer<PushConstants> g_PushConstants : register(b0, space2);
|
|
|
|
struct Interpolators
|
|
{
|
|
float4 Position : SV_Position;
|
|
float2 UV : TEXCOORD;
|
|
float4 Color : COLOR;
|
|
};
|