17 lines
399 B
C
17 lines
399 B
C
|
|
#pragma once
|
||
|
|
#include <d3d12.h>
|
||
|
|
#include <string>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
struct NanoVDBData {
|
||
|
|
ID3D12Resource* gpuBuffer;
|
||
|
|
void* cpuData;
|
||
|
|
uint64_t byteSize;
|
||
|
|
uint64_t elementCount;
|
||
|
|
double worldBBox[6];
|
||
|
|
};
|
||
|
|
|
||
|
|
bool LoadNanoVDB(const char* filePath, NanoVDBData& outData, ID3D12GraphicsCommandList* cmdList, ID3D12CommandAllocator* cmdAlloc = nullptr);
|
||
|
|
void FreeNanoVDB(NanoVDBData& data);
|
||
|
|
|