Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
* GRAPHDECO research group, https://team.inria.fr/graphdeco
* All rights reserved.
*
* This software is free for non-commercial, research and evaluation use
* This software is free for non-commercial, research and evaluation use
* under the terms of the LICENSE.md file.
*
* For inquiries contact [email protected]
*/

#pragma once

#include <cstdint> // defines uint32_t, uint64_t, std::uintptr_t, etc.
#include <cstddef>
#include <iostream>
#include <vector>
#include "rasterizer.h"
Expand Down Expand Up @@ -88,11 +89,11 @@ namespace CudaRasterizer
static SampleState fromChunk(char*& chunk, size_t C);
};

template<typename T>
template<typename T>
size_t required(size_t P)
{
char* size = nullptr;
T::fromChunk(size, P);
return ((size_t)size) + 128;
}
};
};