This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAMDT-DDS.h
executable file
·68 lines (60 loc) · 1.62 KB
/
AMDT-DDS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//==============================================================================
// Copyright (c) 2009-2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief TODO
//==============================================================================
#pragma once
#ifndef DDS_H
#define DDS_H
namespace DDS
{
typedef enum
{
Err_Ok = 0,
Err_Unknown,
} DDS_Error;
typedef enum
{
UnknownType = 0,
Texture1D,
Texture2D,
Texture3D,
TextureCubeMap,
} DDS_Type;
typedef enum
{
UnknownFormat,
RGBA_32F,
RGBA_8,
RG_8,
RG_S8, // Signed 8 bit per channel.
R_8,
D_32F,
R_32F,
D24_S8,
L8_A8
} DDS_Format;
DDS_Error SaveDDSToFile(UINT32 nWidth,
UINT32 nHeight,
UINT32 nDepth,
UINT32 nSubResourceCount,
UINT32 nMipMapCount,
DDS_Type eType,
DDS_Format eFormat,
void* pData,
size_t nSize,
const TCHAR* pszFileName);
DDS_Error SaveDDSToMemory(UINT32 nWidth,
UINT32 nHeight,
UINT32 nDepth,
UINT32 nSubResourceCount,
UINT32 nMipMapCount,
DDS_Type eType,
DDS_Format eFormat,
void* pData,
size_t nSize,
void** ppDDSData,
size_t* pnDDSSize);
} // namespace DDS
#endif // DDS_H