Epok Engine

EPOK RUNTIME

epok::compact_mesh_gpu_safe

Function template · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function template

Unrelated faces in one spatial chunk can span more than the GPU limit even though every submitted triangle fits.

Belongs to
epok
Header
polygon.hpp
Overloads
1

Declaration

template
Declaration
template<class Quad> inline bool compact_mesh_gpu_safe(const CompactProjectedVertex* vertices,size_t count, const Quad* quads,size_t faces,int32_t near,int32_t far)

Unrelated faces in one spatial chunk can span more than the GPU limit even though every submitted triangle fits.

ParameterTypeMeaning
verticesconst CompactProjectedVertex *Not documented; consult the linked header.
countsize_tNot documented; consult the linked header.
quadsconst Quad *Not documented; consult the linked header.
facessize_tNot documented; consult the linked header.
nearint32_tNot documented; consult the linked header.
farint32_tNot documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "polygon.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Quad

// Assume these named values have been initialized with valid data:
// const CompactProjectedVertex * vertices
// size_t count
// const Quad * quads
// size_t faces
// int32_t near
// int32_t far

auto result = epok::compact_mesh_gpu_safe<Quad>(vertices, count, quads, faces, near, far);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/polygon.hpp:48

Related members