-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the counting sort logic into general utility
- Loading branch information
Showing
3 changed files
with
155 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (C) 2018-2024 - DevSH Graphics Programming Sp. z O.O. | ||
// This file is part of the "Nabla Engine". | ||
// For conditions of distribution and use, see copyright notice in nabla.h | ||
|
||
#ifndef _NBL_BUILTIN_HLSL_SORT_COMMON_INCLUDED_ | ||
#define _NBL_BUILTIN_HLSL_SORT_COMMON_INCLUDED_ | ||
|
||
namespace nbl | ||
{ | ||
namespace hlsl | ||
{ | ||
namespace sort | ||
{ | ||
|
||
struct CountingPushData | ||
{ | ||
uint64_t inputKeyAddress; | ||
uint64_t inputValueAddress; | ||
uint64_t scratchAddress; | ||
uint64_t outputKeyAddress; | ||
uint64_t outputValueAddress; | ||
uint32_t dataElementCount; | ||
uint32_t minimum; | ||
uint32_t elementsPerWT; | ||
}; | ||
|
||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters