forked from Misaki/GhostEngine
Refactor folder structure
This commit is contained in:
721
src/ThridParty/Ghost.Nvtt/Api.cs
Normal file
721
src/ThridParty/Ghost.Nvtt/Api.cs
Normal file
@@ -0,0 +1,721 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public static unsafe partial class Api
|
||||
{
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttIsCudaSupported();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttUseCurrentDevice();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCPUInputBuffer* nvttCreateCPUInputBuffer([NativeTypeName("const NvttRefImage *")] NvttRefImage* images, NvttValueType value_type, int numImages, int tile_w, int tile_h, float WeightR, float WeightG, float WeightB, float WeightA, NvttTimingContext* tc, [NativeTypeName("unsigned int *")] uint* num_tiles);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyCPUInputBuffer(NvttCPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttCPUInputBufferNumTiles([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCPUInputBufferTileSize([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, int* tile_w, int* tile_h);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttValueType nvttCPUInputBufferType([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttGPUInputBuffer* nvttCreateGPUInputBuffer([NativeTypeName("const NvttRefImage *")] NvttRefImage* images, NvttValueType value_type, int numImages, int tile_w, int tile_h, float WeightR, float WeightG, float WeightB, float WeightA, NvttTimingContext* tc, [NativeTypeName("unsigned int *")] uint* num_tiles);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyGPUInputBuffer(NvttGPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttGPUInputBufferNumTiles([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttGPUInputBufferTileSize([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, int* tile_w, int* tile_h);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttValueType nvttGPUInputBufferType([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttEncodeCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, void* output, [NativeTypeName("const NvttEncodeSettings *")] NvttEncodeSettings* settings);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttEncodeGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, [NativeTypeName("const NvttEncodeSettings *")] NvttEncodeSettings* settings);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC1CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean fast_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC1GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, NvttBoolean fast_mode, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC1ACPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean fast_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC1AGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC2CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean fast_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC2GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC3CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean fast_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC3GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC3NCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, int qualityLevel, void* output, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC3RGBMCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC4CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC4GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC4SCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC4SGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeATI2CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeATI2GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC5CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC5GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC5SCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC5SGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC6HCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, NvttBoolean is_signed, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC6HGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, NvttBoolean is_signed, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC7CPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, NvttBoolean slow_mode, NvttBoolean imageHasAlpha, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeBC7GPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, NvttBoolean imageHasAlpha, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeASTCCPU([NativeTypeName("const NvttCPUInputBuffer *")] NvttCPUInputBuffer* input, int qualityLevel, NvttBoolean imageHasAlpha, void* output, NvttBoolean useGpu, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttEncodeASTCGPU([NativeTypeName("const NvttGPUInputBuffer *")] NvttGPUInputBuffer* input, int qualityLevel, NvttBoolean imageHasAlpha, void* output, NvttBoolean to_device_mem, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCompressionOptions* nvttCreateCompressionOptions();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyCompressionOptions(NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttResetCompressionOptions(NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsFormat(NvttCompressionOptions* compressionOptions, NvttFormat format);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsQuality(NvttCompressionOptions* compressionOptions, NvttQuality quality);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsColorWeights(NvttCompressionOptions* compressionOptions, float red, float green, float blue, float alpha);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsPixelFormat(NvttCompressionOptions* compressionOptions, [NativeTypeName("unsigned int")] uint bitcount, [NativeTypeName("unsigned int")] uint rmask, [NativeTypeName("unsigned int")] uint gmask, [NativeTypeName("unsigned int")] uint bmask, [NativeTypeName("unsigned int")] uint amask);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsPixelType(NvttCompressionOptions* compressionOptions, NvttPixelType pixelType);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsPitchAlignment(NvttCompressionOptions* compressionOptions, int pitchAlignment);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetCompressionOptionsQuantization(NvttCompressionOptions* compressionOptions, NvttBoolean colorDithering, NvttBoolean alphaDithering, NvttBoolean binaryAlpha, int alphaThreshold);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("unsigned int")]
|
||||
public static extern uint nvttGetCompressionOptionsD3D9Format([NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttOutputOptions* nvttCreateOutputOptions();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyOutputOptions(NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttResetOutputOptions(NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsFileName(NvttOutputOptions* outputOptions, [NativeTypeName("const char *")] sbyte* fileName);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsFileHandle(NvttOutputOptions* outputOptions, void* fp);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsOutputHandler(NvttOutputOptions* outputOptions, [NativeTypeName("nvttBeginImageHandler")] delegate* unmanaged[Cdecl]<int, int, int, int, int, int, void> beginImageHandler, [NativeTypeName("nvttOutputHandler")] delegate* unmanaged[Cdecl]<void*, int, NvttBoolean> outputHandler, [NativeTypeName("nvttEndImageHandler")] IntPtr endImageHandler);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsErrorHandler(NvttOutputOptions* outputOptions, [NativeTypeName("nvttErrorHandler")] delegate* unmanaged[Cdecl]<NvttError, void> errorHandler);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsOutputHeader(NvttOutputOptions* outputOptions, NvttBoolean b);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsContainer(NvttOutputOptions* outputOptions, NvttContainer container);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsUserVersion(NvttOutputOptions* outputOptions, int version);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetOutputOptionsSrgbFlag(NvttOutputOptions* outputOptions, NvttBoolean b);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttContext* nvttCreateContext();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyContext(NvttContext* context);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetContextCudaAcceleration(NvttContext* context, NvttBoolean enable);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextIsCudaAccelerationEnabled([NativeTypeName("const NvttContext *")] NvttContext* context);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextOutputHeader([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttSurface *")] NvttSurface* img, int mipmapCount, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextCompress([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttSurface *")] NvttSurface* img, int face, int mipmap, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttContextEstimateSize([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttSurface *")] NvttSurface* img, int mipmapCount, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttContextQuantize([NativeTypeName("const NvttContext *")] NvttContext* context, NvttSurface* tex, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextOutputHeaderCube([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* img, int mipmapCount, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextCompressCube([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* img, int mipmap, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttContextEstimateSizeCube([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* img, int mipmapCount, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextOutputHeaderData([NativeTypeName("const NvttContext *")] NvttContext* context, NvttTextureType type, int w, int h, int d, int mipmapCount, NvttBoolean isNormalMap, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextCompressData([NativeTypeName("const NvttContext *")] NvttContext* context, int w, int h, int d, int face, int mipmap, [NativeTypeName("const float *")] float* rgba, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttContextEstimateSizeData([NativeTypeName("const NvttContext *")] NvttContext* context, int w, int h, int d, int mipmapCount, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttContextCompressBatch([NativeTypeName("const NvttContext *")] NvttContext* context, [NativeTypeName("const NvttBatchList *")] NvttBatchList* lst, [NativeTypeName("const NvttCompressionOptions *")] NvttCompressionOptions* compressionOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttContextEnableTiming(NvttContext* context, NvttBoolean enable, int detailLevel);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttTimingContext* nvttContextGetTimingContext(NvttContext* context);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttCreateSurface();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroySurface(NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttSurfaceClone([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetSurfaceWrapMode(NvttSurface* surface, NvttWrapMode mode);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetSurfaceAlphaMode(NvttSurface* surface, NvttAlphaMode alphaMode);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSetSurfaceNormalMap(NvttSurface* surface, NvttBoolean isNormalMap);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceIsNull([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceWidth([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceHeight([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceDepth([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttTextureType nvttSurfaceType([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttWrapMode nvttSurfaceWrapMode([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttAlphaMode nvttSurfaceAlphaMode([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceIsNormalMap([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceCountMipmaps([NativeTypeName("const NvttSurface *")] NvttSurface* surface, int min_size);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttSurfaceAlphaTestCoverage([NativeTypeName("const NvttSurface *")] NvttSurface* surface, float alphaRef, int alpha_channel);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttSurfaceAverage([NativeTypeName("const NvttSurface *")] NvttSurface* surface, int channel, int alpha_channel, float gamma);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float* nvttSurfaceData(NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float* nvttSurfaceChannel(NvttSurface* surface, int i);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceHistogram([NativeTypeName("const NvttSurface *")] NvttSurface* surface, int channel, float rangeMin, float rangeMax, int binCount, int* binPtr, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceRange([NativeTypeName("const NvttSurface *")] NvttSurface* surface, int channel, float* rangeMin, float* rangeMax, int alpha_channel, float alpha_ref, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceLoad(NvttSurface* surface, [NativeTypeName("const char *")] sbyte* filename, NvttBoolean* hasAlpha, NvttBoolean expectSigned, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceLoadFromMemory(NvttSurface* surface, [NativeTypeName("const void *")] void* data, [NativeTypeName("unsigned long long")] ulong sizeInBytes, NvttBoolean* hasAlpha, NvttBoolean expectSigned, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSave([NativeTypeName("const NvttSurface *")] NvttSurface* surface, [NativeTypeName("const char *")] sbyte* fileName, NvttBoolean hasAlpha, NvttBoolean hdr, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetImage(NvttSurface* surface, int w, int h, int d, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetImageData(NvttSurface* surface, NvttInputFormat format, int w, int h, int d, [NativeTypeName("const void *")] void* data, NvttBoolean unsignedToSigned, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetImageRGBA(NvttSurface* surface, NvttInputFormat format, int w, int h, int d, [NativeTypeName("const void *")] void* r, [NativeTypeName("const void *")] void* g, [NativeTypeName("const void *")] void* b, [NativeTypeName("const void *")] void* a, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetImage2D(NvttSurface* surface, NvttFormat format, int w, int h, [NativeTypeName("const void *")] void* data, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetImage3D(NvttSurface* surface, NvttFormat format, int w, int h, int d, [NativeTypeName("const void *")] void* data, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceResize(NvttSurface* surface, int w, int h, int d, NvttResizeFilter filter, float filterWidth, [NativeTypeName("const float *")] float* @params, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceResizeMax(NvttSurface* surface, int maxExtent, NvttRoundMode mode, NvttResizeFilter filter, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceResizeMaxParams(NvttSurface* surface, int maxExtent, NvttRoundMode mode, NvttResizeFilter filter, float filterWidth, [NativeTypeName("const float *")] float* @params, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceResizeMakeSquare(NvttSurface* surface, int maxExtent, NvttRoundMode mode, NvttResizeFilter filter, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceBuildNextMipmap(NvttSurface* surface, NvttMipmapFilter filter, float filterWidth, [NativeTypeName("const float *")] float* @params, int min_size, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceBuildNextMipmapDefaults(NvttSurface* surface, NvttMipmapFilter filter, int min_size, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceBuildNextMipmapSolidColor(NvttSurface* surface, [NativeTypeName("const float *const")] float* color_components, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceCanvasSize(NvttSurface* surface, int w, int h, int d, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceCanMakeNextMipmap(NvttSurface* surface, int min_size);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLinear(NvttSurface* surface, float gamma, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToGamma(NvttSurface* surface, float gamma, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLinearChannel(NvttSurface* surface, int channel, float gamma, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToGammaChannel(NvttSurface* surface, int channel, float gamma, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToSrgb(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToSrgbUnclamped(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLinearFromSrgb(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLinearFromSrgbUnclamped(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToXenonSrgb(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLinearFromXenonSrgb(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceTransform(NvttSurface* surface, [NativeTypeName("const float[4]")] float* w0, [NativeTypeName("const float[4]")] float* w1, [NativeTypeName("const float[4]")] float* w2, [NativeTypeName("const float[4]")] float* w3, [NativeTypeName("const float[4]")] float* offset, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceSwizzle(NvttSurface* surface, int r, int g, int b, int a, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceScaleBias(NvttSurface* surface, int channel, float scale, float bias, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceClamp(NvttSurface* surface, int channel, float low, float high, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceBlend(NvttSurface* surface, float r, float g, float b, float a, float t, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfacePremultiplyAlpha(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceDemultiplyAlpha(NvttSurface* surface, float epsilon, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToGreyScale(NvttSurface* surface, float redScale, float greenScale, float blueScale, float alphaScale, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceSetBorder(NvttSurface* surface, float r, float g, float b, float a, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFill(NvttSurface* surface, float r, float g, float b, float a, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceScaleAlphaToCoverage(NvttSurface* surface, float coverage, float alphaRef, int alpha_channel, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToRGBM(NvttSurface* surface, float range, float threshold, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFromRGBM(NvttSurface* surface, float range, float threshold, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLM(NvttSurface* surface, float range, float threshold, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToRGBE(NvttSurface* surface, int mantissaBits, int exponentBits, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFromRGBE(NvttSurface* surface, int mantissaBits, int exponentBits, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToYCoCg(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceBlockScaleCoCg(NvttSurface* surface, int bits, float threshold, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFromYCoCg(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLUVW(NvttSurface* surface, float range, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFromLUVW(NvttSurface* surface, float range, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceAbs(NvttSurface* surface, int channel, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceConvolve(NvttSurface* surface, int channel, int kernelSize, float* kernelData, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToLogScale(NvttSurface* surface, int channel, float @base, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFromLogScale(NvttSurface* surface, int channel, float @base, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceSetAtlasBorder(NvttSurface* surface, int w, int h, float r, float g, float b, float a, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToneMap(NvttSurface* surface, NvttToneMapper tm, float* parameters, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceBinarize(NvttSurface* surface, int channel, float threshold, NvttBoolean dither, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceQuantize(NvttSurface* surface, int channel, int bits, NvttBoolean exactEndPoints, NvttBoolean dither, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToNormalMap(NvttSurface* surface, float sm, float medium, float big, float large, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceNormalizeNormalMap(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceTransformNormals(NvttSurface* surface, NvttNormalTransform xform, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceReconstructNormals(NvttSurface* surface, NvttNormalTransform xform, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToCleanNormalMap(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfacePackNormals(NvttSurface* surface, float scale, float bias, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceExpandNormals(NvttSurface* surface, float scale, float bias, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttSurfaceCreateToksvigMap([NativeTypeName("const NvttSurface *")] NvttSurface* surface, float power, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttSurfaceCreateCleanMap([NativeTypeName("const NvttSurface *")] NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFlipX(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFlipY(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceFlipZ(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttSurfaceCreateSubImage([NativeTypeName("const NvttSurface *")] NvttSurface* surface, int x0, int x1, int y0, int y1, int z0, int z1, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceCopyChannel(NvttSurface* surface, [NativeTypeName("const NvttSurface *")] NvttSurface* srcImage, int srcChannel, int dstChannel, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceAddChannel(NvttSurface* surface, [NativeTypeName("const NvttSurface *")] NvttSurface* srcImage, int srcChannel, int dstChannel, float scale, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceCopy(NvttSurface* surface, [NativeTypeName("const NvttSurface *")] NvttSurface* srcImage, int xsrc, int ysrc, int zsrc, int xsize, int ysize, int zsize, int xdst, int ydst, int zdst, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToGPU(NvttSurface* surface, NvttBoolean performCopy, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttSurfaceToCPU(NvttSurface* surface, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("const float *")]
|
||||
public static extern float* nvttSurfaceGPUData([NativeTypeName("const NvttSurface *")] NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float* nvttSurfaceGPUDataMutable(NvttSurface* surface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurfaceSet* nvttCreateSurfaceSet();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroySurfaceSet(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttResetSurfaceSet(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttTextureType nvttSurfaceSetGetTextureType(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceSetGetFaceCount(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceSetGetMipmapCount(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceSetGetWidth(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceSetGetHeight(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttSurfaceSetGetDepth(NvttSurfaceSet* surfaceSet);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttSurfaceSetGetSurface(NvttSurfaceSet* surfaceSet, int faceId, int mipId, NvttBoolean expectSigned);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetLoadDDS(NvttSurfaceSet* surfaceSet, [NativeTypeName("const char *")] sbyte* fileName, NvttBoolean forcenormal);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetLoadDDSFromMemory(NvttSurfaceSet* surfaceSet, [NativeTypeName("const void *")] void* data, [NativeTypeName("unsigned long long")] ulong sizeInBytes, NvttBoolean forcenormal);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSurfaceSetSaveImage(NvttSurfaceSet* surfaceSet, [NativeTypeName("const char *")] sbyte* fileName, int faceId, int mipId);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCubeSurface* nvttCreateCubeSurface();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyCubeSurface(NvttCubeSurface* cubeSurface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttCubeSurfaceIsNull([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttCubeSurfaceEdgeLength([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttCubeSurfaceCountMipmaps([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttCubeSurfaceLoad(NvttCubeSurface* cubeSurface, [NativeTypeName("const char *")] sbyte* fileName, int mipmap);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttCubeSurfaceLoadFromMemory(NvttCubeSurface* cubeSurface, [NativeTypeName("const void *")] void* data, [NativeTypeName("unsigned long long")] ulong sizeInBytes, int mipmap);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttCubeSurfaceSave(NvttCubeSurface* cubeSurface, [NativeTypeName("const char *")] sbyte* fileName);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttCubeSurfaceFace(NvttCubeSurface* cubeSurface, int face);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCubeSurfaceFold(NvttCubeSurface* cubeSurface, [NativeTypeName("const NvttSurface *")] NvttSurface* img, NvttCubeLayout layout);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttCubeSurfaceUnfold([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface, NvttCubeLayout layout);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttCubeSurfaceAverage(NvttCubeSurface* cubeSurface, int channel);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCubeSurfaceRange([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface, int channel, float* minimum_ptr, float* maximum_ptr);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCubeSurfaceClamp(NvttCubeSurface* cubeSurface, int channel, float low, float high);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCubeSurface* nvttCubeSurfaceIrradianceFilter([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface, int size, [NativeTypeName("NvttEdgeFixup")] EdgeFixup fixupMethod);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCubeSurface* nvttCubeSurfaceCosinePowerFilter([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface, int size, float cosinePower, [NativeTypeName("NvttEdgeFixup")] EdgeFixup fixupMethod);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttCubeSurface* nvttCubeSurfaceFastResample([NativeTypeName("const NvttCubeSurface *")] NvttCubeSurface* cubeSurface, int size, [NativeTypeName("NvttEdgeFixup")] EdgeFixup fixupMethod);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCubeSurfaceToLinear(NvttCubeSurface* cubeSurface, float gamma);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttCubeSurfaceToGamma(NvttCubeSurface* cubeSurface, float gamma);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBatchList* nvttCreateBatchList();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyBatchList(NvttBatchList* batchList);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttBatchListClear(NvttBatchList* batchList);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttBatchListAppend(NvttBatchList* batchList, [NativeTypeName("const NvttSurface *")] NvttSurface* pImg, int face, int mipmap, [NativeTypeName("const NvttOutputOptions *")] NvttOutputOptions* outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("unsigned int")]
|
||||
public static extern uint nvttBatchListGetSize([NativeTypeName("const NvttBatchList *")] NvttBatchList* batchList);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttBatchListGetItem([NativeTypeName("const NvttBatchList *")] NvttBatchList* batchList, [NativeTypeName("unsigned int")] uint i, [NativeTypeName("const NvttSurface **")] NvttSurface** pImg, int* face, int* mipmap, [NativeTypeName("const NvttOutputOptions **")] NvttOutputOptions** outputOptions);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("const char *")]
|
||||
public static extern sbyte* nvttErrorString(NvttError e);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("unsigned int")]
|
||||
public static extern uint nvttVersion();
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttBoolean nvttSetMessageCallback([NativeTypeName("nvttMessageCallback")] delegate* unmanaged[Cdecl]<NvttSeverity, NvttError, sbyte*, void*, void> callback, [NativeTypeName("const void *")] void* userData);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttRmsError([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttRmsAlphaError([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttRmsCIELabError([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttAngularError([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttDiff([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, float scale, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern float nvttRmsToneMappedError([NativeTypeName("const NvttSurface *")] NvttSurface* reference, [NativeTypeName("const NvttSurface *")] NvttSurface* img, float exposure, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttHistogram([NativeTypeName("const NvttSurface *")] NvttSurface* img, int width, int height, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttSurface* nvttHistogramRange([NativeTypeName("const NvttSurface *")] NvttSurface* img, float minRange, float maxRange, int width, int height, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttGetTargetExtent(int* width, int* height, int* depth, int maxExtent, NvttRoundMode roundMode, NvttTextureType textureType, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttCountMipmaps(int w, int h, int d, NvttTimingContext* tc);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern NvttTimingContext* nvttCreateTimingContext(int detailLevel);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttDestroyTimingContext(NvttTimingContext* timingContext);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttTimingContextSetDetailLevel(NvttTimingContext* timingContext, int detailLevel);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int nvttTimingContextGetRecordCount(NvttTimingContext* timingContext);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttTimingContextGetRecord(NvttTimingContext* timingContext, int i, [NativeTypeName("char *")] sbyte* description, double* seconds);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[return: NativeTypeName("size_t")]
|
||||
public static extern nuint nvttTimingContextGetRecordSafe(NvttTimingContext* timingContext, int i, [NativeTypeName("char *")] sbyte* outDescription, [NativeTypeName("size_t")] nuint outDescriptionSize, double* seconds);
|
||||
|
||||
[DllImport("nvtt", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void nvttTimingContextPrintRecords(NvttTimingContext* timingContext);
|
||||
|
||||
[NativeTypeName("#define NVTT_VERSION 30203")]
|
||||
public const int NVTT_VERSION = 30203;
|
||||
|
||||
[NativeTypeName("#define NVTT_EncodeSettings_Version_1 1")]
|
||||
public const int NVTT_EncodeSettings_Version_1 = 1;
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/EdgeFixup.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/EdgeFixup.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum EdgeFixup
|
||||
{
|
||||
NVTT_EdgeFixup_None,
|
||||
NVTT_EdgeFixup_Stretch,
|
||||
NVTT_EdgeFixup_Warp,
|
||||
NVTT_EdgeFixup_Average,
|
||||
}
|
||||
}
|
||||
28
src/ThridParty/Ghost.Nvtt/Ghost.Nvtt.csproj
Normal file
28
src/ThridParty/Ghost.Nvtt/Ghost.Nvtt.csproj
Normal file
@@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<IsAotCompatible>True</IsAotCompatible>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<IsAotCompatible>True</IsAotCompatible>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="runtime\win-x64\native\nvtt.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="runtime\win-x64\native\nvtt.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
23
src/ThridParty/Ghost.Nvtt/NativeAnnotationAttribute.cs
Normal file
23
src/ThridParty/Ghost.Nvtt/NativeAnnotationAttribute.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
/// <summary>Defines the annotation found in a native declaration.</summary>
|
||||
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)]
|
||||
[Conditional("DEBUG")]
|
||||
internal sealed partial class NativeAnnotationAttribute : Attribute
|
||||
{
|
||||
private readonly string _annotation;
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="NativeAnnotationAttribute" /> class.</summary>
|
||||
/// <param name="annotation">The annotation that was used in the native declaration.</param>
|
||||
public NativeAnnotationAttribute(string annotation)
|
||||
{
|
||||
_annotation = annotation;
|
||||
}
|
||||
|
||||
/// <summary>Gets the annotation that was used in the native declaration.</summary>
|
||||
public string Annotation => _annotation;
|
||||
}
|
||||
}
|
||||
23
src/ThridParty/Ghost.Nvtt/NativeTypeNameAttribute.cs
Normal file
23
src/ThridParty/Ghost.Nvtt/NativeTypeNameAttribute.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
/// <summary>Defines the type of a member as it was used in the native signature.</summary>
|
||||
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)]
|
||||
[Conditional("DEBUG")]
|
||||
internal sealed partial class NativeTypeNameAttribute : Attribute
|
||||
{
|
||||
private readonly string _name;
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="NativeTypeNameAttribute" /> class.</summary>
|
||||
/// <param name="name">The name of the type that was used in the native signature.</param>
|
||||
public NativeTypeNameAttribute(string name)
|
||||
{
|
||||
_name = name;
|
||||
}
|
||||
|
||||
/// <summary>Gets the name of the type that was used in the native signature.</summary>
|
||||
public string Name => _name;
|
||||
}
|
||||
}
|
||||
9
src/ThridParty/Ghost.Nvtt/NvttAlphaMode.cs
Normal file
9
src/ThridParty/Ghost.Nvtt/NvttAlphaMode.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttAlphaMode
|
||||
{
|
||||
NVTT_AlphaMode_None,
|
||||
NVTT_AlphaMode_Transparency,
|
||||
NVTT_AlphaMode_Premultiplied,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttBatchList.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttBatchList.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttBatchList
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/ThridParty/Ghost.Nvtt/NvttBoolean.cs
Normal file
8
src/ThridParty/Ghost.Nvtt/NvttBoolean.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttBoolean
|
||||
{
|
||||
NVTT_False,
|
||||
NVTT_True,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttCPUInputBuffer.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttCPUInputBuffer.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttCPUInputBuffer
|
||||
{
|
||||
}
|
||||
}
|
||||
13
src/ThridParty/Ghost.Nvtt/NvttChannelOrder.cs
Normal file
13
src/ThridParty/Ghost.Nvtt/NvttChannelOrder.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttChannelOrder
|
||||
{
|
||||
NVTT_ChannelOrder_Red = 0,
|
||||
NVTT_ChannelOrder_Green = 1,
|
||||
NVTT_ChannelOrder_Blue = 2,
|
||||
NVTT_ChannelOrder_Alpha = 3,
|
||||
NVTT_ChannelOrder_Zero = 4,
|
||||
NVTT_ChannelOrder_One = 5,
|
||||
NVTT_ChannelOrder_MaxEnum = 0x7FFFFFFF,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttCompressionOptions.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttCompressionOptions.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttCompressionOptions
|
||||
{
|
||||
}
|
||||
}
|
||||
8
src/ThridParty/Ghost.Nvtt/NvttContainer.cs
Normal file
8
src/ThridParty/Ghost.Nvtt/NvttContainer.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttContainer
|
||||
{
|
||||
NVTT_Container_DDS,
|
||||
NVTT_Container_DDS10,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttContext.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttContext.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttContext
|
||||
{
|
||||
}
|
||||
}
|
||||
11
src/ThridParty/Ghost.Nvtt/NvttCubeLayout.cs
Normal file
11
src/ThridParty/Ghost.Nvtt/NvttCubeLayout.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttCubeLayout
|
||||
{
|
||||
NVTT_CubeLayout_VerticalCross,
|
||||
NVTT_CubeLayout_HorizontalCross,
|
||||
NVTT_CubeLayout_Column,
|
||||
NVTT_CubeLayout_Row,
|
||||
NVTT_CubeLayout_LatitudeLongitude,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttCubeSurface.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttCubeSurface.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttCubeSurface
|
||||
{
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/NvttEncodeFlags.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/NvttEncodeFlags.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttEncodeFlags
|
||||
{
|
||||
NVTT_EncodeFlags_None = 0,
|
||||
NVTT_EncodeFlags_UseGPU = 1 << 0,
|
||||
NVTT_EncodeFlags_OutputToGPUMem = 1 << 1,
|
||||
NVTT_EncodeFlags_Opaque = 1 << 2,
|
||||
}
|
||||
}
|
||||
19
src/ThridParty/Ghost.Nvtt/NvttEncodeSettings.cs
Normal file
19
src/ThridParty/Ghost.Nvtt/NvttEncodeSettings.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public unsafe partial struct NvttEncodeSettings
|
||||
{
|
||||
[NativeTypeName("uint32_t")]
|
||||
public uint sType;
|
||||
|
||||
public NvttFormat format;
|
||||
|
||||
public NvttQuality quality;
|
||||
|
||||
public NvttPixelType rgb_pixel_type;
|
||||
|
||||
public NvttTimingContext* timing_context;
|
||||
|
||||
[NativeTypeName("uint32_t")]
|
||||
public uint encode_flags;
|
||||
}
|
||||
}
|
||||
19
src/ThridParty/Ghost.Nvtt/NvttError.cs
Normal file
19
src/ThridParty/Ghost.Nvtt/NvttError.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttError
|
||||
{
|
||||
NVTT_Error_None,
|
||||
NVTT_Error_Unknown = NVTT_Error_None,
|
||||
NVTT_Error_InvalidInput,
|
||||
NVTT_Error_UnsupportedFeature,
|
||||
NVTT_Error_CudaError,
|
||||
NVTT_Error_FileOpen,
|
||||
NVTT_Error_FileWrite,
|
||||
NVTT_Error_UnsupportedOutputFormat,
|
||||
NVTT_Error_Messaging,
|
||||
NVTT_Error_OutOfHostMemory,
|
||||
NVTT_Error_OutOfDeviceMemory,
|
||||
NVTT_Error_OutputWrite,
|
||||
NVTT_Error_Count,
|
||||
}
|
||||
}
|
||||
44
src/ThridParty/Ghost.Nvtt/NvttFormat.cs
Normal file
44
src/ThridParty/Ghost.Nvtt/NvttFormat.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttFormat
|
||||
{
|
||||
NVTT_Format_RGB,
|
||||
NVTT_Format_RGBA = NVTT_Format_RGB,
|
||||
NVTT_Format_DXT1,
|
||||
NVTT_Format_DXT1a,
|
||||
NVTT_Format_DXT3,
|
||||
NVTT_Format_DXT5,
|
||||
NVTT_Format_DXT5n,
|
||||
NVTT_Format_BC1 = NVTT_Format_DXT1,
|
||||
NVTT_Format_BC1a = NVTT_Format_DXT1a,
|
||||
NVTT_Format_BC2 = NVTT_Format_DXT3,
|
||||
NVTT_Format_BC3 = NVTT_Format_DXT5,
|
||||
NVTT_Format_BC3n = NVTT_Format_DXT5n,
|
||||
NVTT_Format_BC4,
|
||||
NVTT_Format_BC4S,
|
||||
NVTT_Format_ATI2,
|
||||
NVTT_Format_BC5,
|
||||
NVTT_Format_BC5S,
|
||||
NVTT_Format_DXT1n,
|
||||
NVTT_Format_CTX1,
|
||||
NVTT_Format_BC6U,
|
||||
NVTT_Format_BC6S,
|
||||
NVTT_Format_BC7,
|
||||
NVTT_Format_BC3_RGBM,
|
||||
NVTT_Format_ASTC_LDR_4x4,
|
||||
NVTT_Format_ASTC_LDR_5x4,
|
||||
NVTT_Format_ASTC_LDR_5x5,
|
||||
NVTT_Format_ASTC_LDR_6x5,
|
||||
NVTT_Format_ASTC_LDR_6x6,
|
||||
NVTT_Format_ASTC_LDR_8x5,
|
||||
NVTT_Format_ASTC_LDR_8x6,
|
||||
NVTT_Format_ASTC_LDR_8x8,
|
||||
NVTT_Format_ASTC_LDR_10x5,
|
||||
NVTT_Format_ASTC_LDR_10x6,
|
||||
NVTT_Format_ASTC_LDR_10x8,
|
||||
NVTT_Format_ASTC_LDR_10x10,
|
||||
NVTT_Format_ASTC_LDR_12x10,
|
||||
NVTT_Format_ASTC_LDR_12x12,
|
||||
NVTT_Format_Count,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttGPUInputBuffer.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttGPUInputBuffer.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttGPUInputBuffer
|
||||
{
|
||||
}
|
||||
}
|
||||
11
src/ThridParty/Ghost.Nvtt/NvttInputFormat.cs
Normal file
11
src/ThridParty/Ghost.Nvtt/NvttInputFormat.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttInputFormat
|
||||
{
|
||||
NVTT_InputFormat_BGRA_8UB,
|
||||
NVTT_InputFormat_BGRA_8SB,
|
||||
NVTT_InputFormat_RGBA_16F,
|
||||
NVTT_InputFormat_RGBA_32F,
|
||||
NVTT_InputFormat_R_32F,
|
||||
}
|
||||
}
|
||||
12
src/ThridParty/Ghost.Nvtt/NvttMipmapFilter.cs
Normal file
12
src/ThridParty/Ghost.Nvtt/NvttMipmapFilter.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttMipmapFilter
|
||||
{
|
||||
NVTT_MipmapFilter_Box,
|
||||
NVTT_MipmapFilter_Triangle,
|
||||
NVTT_MipmapFilter_Kaiser,
|
||||
NVTT_MipmapFilter_Mitchell,
|
||||
NVTT_MipmapFilter_Min,
|
||||
NVTT_MipmapFilter_Max,
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/NvttNormalTransform.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/NvttNormalTransform.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttNormalTransform
|
||||
{
|
||||
NVTT_NormalTransform_Orthographic,
|
||||
NVTT_NormalTransform_Stereographic,
|
||||
NVTT_NormalTransform_Paraboloid,
|
||||
NVTT_NormalTransform_Quartic,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttOutputOptions.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttOutputOptions.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttOutputOptions
|
||||
{
|
||||
}
|
||||
}
|
||||
13
src/ThridParty/Ghost.Nvtt/NvttPixelType.cs
Normal file
13
src/ThridParty/Ghost.Nvtt/NvttPixelType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttPixelType
|
||||
{
|
||||
NVTT_PixelType_UnsignedNorm = 0,
|
||||
NVTT_PixelType_SignedNorm = 1,
|
||||
NVTT_PixelType_UnsignedInt = 2,
|
||||
NVTT_PixelType_SignedInt = 3,
|
||||
NVTT_PixelType_Float = 4,
|
||||
NVTT_PixelType_UnsignedFloat = 5,
|
||||
NVTT_PixelType_SharedExp = 6,
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/NvttQuality.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/NvttQuality.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttQuality
|
||||
{
|
||||
NVTT_Quality_Fastest,
|
||||
NVTT_Quality_Normal,
|
||||
NVTT_Quality_Production,
|
||||
NVTT_Quality_Highest,
|
||||
}
|
||||
}
|
||||
29
src/ThridParty/Ghost.Nvtt/NvttRefImage.cs
Normal file
29
src/ThridParty/Ghost.Nvtt/NvttRefImage.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public unsafe partial struct NvttRefImage
|
||||
{
|
||||
[NativeTypeName("const void *")]
|
||||
public void* data;
|
||||
|
||||
public int width;
|
||||
|
||||
public int height;
|
||||
|
||||
public int depth;
|
||||
|
||||
public int num_channels;
|
||||
|
||||
[NativeTypeName("NvttChannelOrder[4]")]
|
||||
public _channel_swizzle_e__FixedBuffer channel_swizzle;
|
||||
|
||||
public NvttBoolean channel_interleave;
|
||||
|
||||
[InlineArray(4)]
|
||||
public partial struct _channel_swizzle_e__FixedBuffer
|
||||
{
|
||||
public NvttChannelOrder e0;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
src/ThridParty/Ghost.Nvtt/NvttResizeFilter.cs
Normal file
12
src/ThridParty/Ghost.Nvtt/NvttResizeFilter.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttResizeFilter
|
||||
{
|
||||
NVTT_ResizeFilter_Box,
|
||||
NVTT_ResizeFilter_Triangle,
|
||||
NVTT_ResizeFilter_Kaiser,
|
||||
NVTT_ResizeFilter_Mitchell,
|
||||
NVTT_ResizeFilter_Min,
|
||||
NVTT_ResizeFilter_Max,
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/NvttRoundMode.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/NvttRoundMode.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttRoundMode
|
||||
{
|
||||
NVTT_RoundMode_None,
|
||||
NVTT_RoundMode_ToNextPowerOfTwo,
|
||||
NVTT_RoundMode_ToNearestPowerOfTwo,
|
||||
NVTT_RoundMode_ToPreviousPowerOfTwo,
|
||||
}
|
||||
}
|
||||
10
src/ThridParty/Ghost.Nvtt/NvttSeverity.cs
Normal file
10
src/ThridParty/Ghost.Nvtt/NvttSeverity.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttSeverity
|
||||
{
|
||||
NVTT_Severity_Info,
|
||||
NVTT_Severity_Warning,
|
||||
NVTT_Severity_Error,
|
||||
NVTT_Severity_Count,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttSurface.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttSurface.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttSurface
|
||||
{
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttSurfaceSet.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttSurfaceSet.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttSurfaceSet
|
||||
{
|
||||
}
|
||||
}
|
||||
9
src/ThridParty/Ghost.Nvtt/NvttTextureType.cs
Normal file
9
src/ThridParty/Ghost.Nvtt/NvttTextureType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttTextureType
|
||||
{
|
||||
NVTT_TextureType_2D,
|
||||
NVTT_TextureType_Cube,
|
||||
NVTT_TextureType_3D,
|
||||
}
|
||||
}
|
||||
6
src/ThridParty/Ghost.Nvtt/NvttTimingContext.cs
Normal file
6
src/ThridParty/Ghost.Nvtt/NvttTimingContext.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public partial struct NvttTimingContext
|
||||
{
|
||||
}
|
||||
}
|
||||
11
src/ThridParty/Ghost.Nvtt/NvttToneMapper.cs
Normal file
11
src/ThridParty/Ghost.Nvtt/NvttToneMapper.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttToneMapper
|
||||
{
|
||||
NVTT_ToneMapper_Linear,
|
||||
NVTT_ToneMapper_Reinhard,
|
||||
NVTT_ToneMapper_Reindhart = NVTT_ToneMapper_Reinhard,
|
||||
NVTT_ToneMapper_Halo,
|
||||
NVTT_ToneMapper_Lightmap,
|
||||
}
|
||||
}
|
||||
9
src/ThridParty/Ghost.Nvtt/NvttValueType.cs
Normal file
9
src/ThridParty/Ghost.Nvtt/NvttValueType.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttValueType
|
||||
{
|
||||
NVTT_ValueType_UINT8,
|
||||
NVTT_ValueType_SINT8,
|
||||
NVTT_ValueType_FLOAT32,
|
||||
}
|
||||
}
|
||||
9
src/ThridParty/Ghost.Nvtt/NvttWrapMode.cs
Normal file
9
src/ThridParty/Ghost.Nvtt/NvttWrapMode.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Ghost.Nvtt
|
||||
{
|
||||
public enum NvttWrapMode
|
||||
{
|
||||
NVTT_WrapMode_Clamp,
|
||||
NVTT_WrapMode_Repeat,
|
||||
NVTT_WrapMode_Mirror,
|
||||
}
|
||||
}
|
||||
BIN
src/ThridParty/Ghost.Nvtt/runtime/win-x64/native/nvtt.dll
Normal file
BIN
src/ThridParty/Ghost.Nvtt/runtime/win-x64/native/nvtt.dll
Normal file
Binary file not shown.
Reference in New Issue
Block a user