Skip to content

Commit 8efede6

Browse files
committed
add beziers.hlsl to builtin shape hlsl functions
1 parent 5a1edda commit 8efede6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (C) 2018-2023 - DevSH Graphics Programming Sp. z O.O.
2+
// This file is part of the "Nabla Engine".
3+
// For conditions of distribution and use, see copyright notice in nabla.h
4+
namespace nbl
5+
{
6+
namespace hlsl
7+
{
8+
namespace shapes
9+
{
10+
struct CubicBezier
11+
{
12+
static CubicBezier construct()
13+
{
14+
}
15+
16+
float signedDistance(float2 p)
17+
{
18+
}
19+
};
20+
21+
struct QuadraticBezier
22+
{
23+
static QuadraticBezier construct()
24+
{
25+
}
26+
27+
float signedDistance(float2 p)
28+
{
29+
}
30+
};
31+
}
32+
}
33+
}

src/nbl/builtin/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ set(NBL_RESOURCES_TO_EMBED
136136
"nbl/builtin/hlsl/shapes/ellipse.hlsl"
137137
"nbl/builtin/hlsl/shapes/line.hlsl"
138138
"nbl/builtin/hlsl/shapes/rounded_line.hlsl"
139+
"nbl/builtin/hlsl/shapes/beziers.hlsl"
139140
# skinning
140141
"nbl/builtin/glsl/skinning/cache_descriptor_set.glsl"
141142
"nbl/builtin/glsl/skinning/cache_update.comp"

0 commit comments

Comments
 (0)