Skip to content

N4ce extensions: curves.hlsl - #1089

Merged
Erfan-Ahmadi merged 9 commits into
masterfrom
n4ce_extensions
Aug 28, 2026
Merged

N4ce extensions: curves.hlsl#1089
Erfan-Ahmadi merged 9 commits into
masterfrom
n4ce_extensions

Conversation

@Przemog1

Copy link
Copy Markdown
Contributor

No description provided.

@Przemog1 Przemog1 changed the title N4ce extensions N4ce extensions: curves.hlsl Aug 25, 2026
Comment on lines +670 to +675
namespace en
{
namespace nabla2d
{
namespace curves
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, you brought other stuff you weren't supposed to.
these weren't in nbl::ext

namespace curves
{

namespace impl

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should expose these, don't put in impl

Comment on lines +460 to +485
// TODO: should it stay in this header?
#include <nbl/builtin/hlsl/concepts.hlsl>
// declare concept
#define NBL_CONCEPT_NAME BezierAdder
#define NBL_CONCEPT_TPLT_PRM_KINDS (typename)(typename)(int32_t)(int32_t)
#define NBL_CONCEPT_TPLT_PRM_NAMES (U)(T)(Dims)(Components)
// not the greatest syntax but works
#define NBL_CONCEPT_PARAM_0 (a,U)
#define NBL_CONCEPT_PARAM_1 (uv,vector<uint16_t,Dims>)
#define NBL_CONCEPT_PARAM_2 (layer,uint16_t)
#define NBL_CONCEPT_PARAM_3 (data,vector<T,Components>)
// start concept
NBL_CONCEPT_BEGIN(4)
// need to be defined AFTER the cocnept begins
#define a NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_0
#define uv NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_1
#define layer NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_2
#define data NBL_CONCEPT_PARAM_T NBL_CONCEPT_PARAM_3
NBL_CONCEPT_END(
((NBL_CONCEPT_REQ_EXPR)(a.template set<T,Dims>(uv,layer,data)))
);
#undef data
#undef layer
#undef uv
#undef a
#include <nbl/builtin/hlsl/concepts/__end.hlsl>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's data, uv, layer?
remove if unrelated and half-done

@Erfan-Ahmadi
Erfan-Ahmadi merged commit 899b374 into master Aug 28, 2026
26 checks passed
@Erfan-Ahmadi
Erfan-Ahmadi deleted the n4ce_extensions branch August 28, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants