Files
WickedEngine/WickedEngine/wiGPUSortLib.h
Turánszki János 74cb74d3c9 version 0.60 (#367)
- namespace refactor (example: wiGraphics:: -> wi::graphics)
  - provided namespace compatibility macro for old user code: WICKEDENGINE_BACKWARDS_COMPATIBILITY_0_59
- resource manager will return `Resource` instead of `shared_ptr<Resource>` objects
- MAD shader optimizations
- implemented alpha to coverage with alpha tested materials when MSAA is enabled
- alpha testing fix with transparent shadow maps
- TLAS and scene buffers will be recreated less frequently when things get added/removed from the scene
2021-12-03 21:22:27 +01:00

24 lines
944 B
C++

#pragma once
#include "CommonInclude.h"
#include "wiGraphicsDevice.h"
namespace wi::gpusortlib
{
// Perform bitonic sort on a GPU dataset
// maxCount - Maximum size of the dataset. GPU count can be smaller (see: counterBuffer_read param)
// comparisonBuffer_read - Buffer containing values to compare by (Read Only)
// counterBuffer_read - Buffer containing count of values to sort (Read Only)
// counterReadOffset - Byte offset into the counter buffer to read the count value (Read Only)
// indexBuffer_write - The index list which to sort. Contains index values which can index the sortBase_read buffer. This will be modified (Read + Write)
void Sort(
uint32_t maxCount,
const wi::graphics::GPUBuffer& comparisonBuffer_read,
const wi::graphics::GPUBuffer& counterBuffer_read,
uint32_t counterReadOffset,
const wi::graphics::GPUBuffer& indexBuffer_write,
wi::graphics::CommandList cmd
);
void Initialize();
};