Some changes

This commit is contained in:
Dynamitos
2025-04-10 16:42:37 +02:00
parent 40debf8580
commit d14c1217de
10 changed files with 44 additions and 27 deletions
+18 -18
View File
@@ -1,23 +1,5 @@
import Common;
struct GlyphInstanceData
{
float x;
float y;
float z;
float width;
float height;
uint glyphIndex;
};
struct TextData
{
StructuredBuffer<GlyphInstanceData> glyphs;
SamplerState glyphSampler;
Texture2D<float> glyphTextures[];
};
ParameterBlock<TextData> pText;
struct VertexInput
{
uint vertexId : SV_VertexID;
@@ -31,6 +13,24 @@ struct VertexOutput
uint glyphIndex : GLYPHINDEX;
};
struct GlyphInstanceData
{
float x;
float y;
float z;
float width;
float height;
uint glyphIndex;
};
struct TextData
{
StructuredBuffer<GlyphInstanceData> glyphs;
SamplerState glyphSampler;
Texture2D<float> glyphTextures[];
};
ParameterBlock<TextData> pText;
[shader("vertex")]
VertexOutput vertexMain(VertexInput input)
{