3#include <OsoMemoryProfiler/CogsMemoryProfile.h>
9 inline void* glTextureFakeAddress(
unsigned glName) {
return (
void*)((size_t(1 + 0) << 23) +
size_t(glName)); }
10 inline void* glBufferFakeAddress(
unsigned glName) {
return (
void*)((size_t(1 + 0) << 24) +
size_t(glName)); }
16 std::vector<size_t> sourceStop;
17 std::vector<std::string> sourceName;
33 COGSRENDERING_DLL_API
void RegisterGPUResource(
void* handle,
size_t size, MemBlockType type,
const OsoMPAttribute* attributes =
nullptr, uint32_t noOfAttributes = 0);
34 COGSRENDERING_DLL_API
void RegisterGPUResourceAttributes(
void* handle,
const OsoMPAttribute* attributes, uint32_t noOfAttributes);
35 COGSRENDERING_DLL_API
void UnregisterGPUResource(
void* handle);
45 static bool preprocessContent(
IIOHandler * handler,
const StringView & input, std::string & content);
46 static bool preprocessContent(
IIOHandler * handler,
const StringView & fileName, std::istream & stream, std::string & content);
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.