https://github.com/shader-slang/slang
Raw File
Tip revision: 163d3068e332703cc499446fff37230a7c68e8f2 authored by Tim Foley on 21 April 2018, 00:54:39 UTC
Better diagnostics when compilation is aborted (#517)
Tip revision: 163d306
memory_pool.h
#ifndef SLANG_MEMORY_POOL_H
#define SLANG_MEMORY_POOL_H

#include "../core/basic.h"

namespace Slang
{
    struct MemoryPoolSegment;

    struct MemoryPool : public RefObject
    {
        MemoryPoolSegment* curSegment = nullptr;
        ~MemoryPool();
        void* alloc(size_t size);
        void* allocZero(size_t size);
    };
}

#endif
back to top