mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00

* Initial SDF font generation work. * Text now correctly displaying with proper spacing. * Fix untextured draws, implement custom rectangles. * Fix regular image display. * Slightly refactor ImGui rendering. * Implement outlines. * Implement bevel. * Create host device after loading the module if the installer wasn't run. * Move ImGui files to its own folder. * Fix outline sizes. * Fix default ImGui font and font scales. * Update font atlas files.
28 lines
654 B
HLSL
28 lines
654 B
HLSL
#pragma once
|
|
|
|
#include "../imgui/imgui_common.h"
|
|
|
|
struct PushConstants
|
|
{
|
|
float2 BoundsMin;
|
|
float2 BoundsMax;
|
|
uint GradientTop;
|
|
uint GradientBottom;
|
|
uint ShaderModifier;
|
|
uint Texture2DDescriptorIndex;
|
|
float2 InverseDisplaySize;
|
|
float2 Origin;
|
|
float2 Scale;
|
|
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;
|
|
};
|