OSDN Git Service

フィルターを実装しはじめた。
[shooting3/shootinggame.git] / ShootingGame / DDSTextureLoader.h
1 //--------------------------------------------------------------------------------------
2 // File: DDSTextureLoader.h
3 //
4 // Function for loading a DDS texture and creating a Direct3D 11 runtime resource for it
5 //
6 // Note this function is useful as a light-weight runtime loader for DDS files. For
7 // a full-featured DDS file reader, writer, and texture processing pipeline see
8 // the 'Texconv' sample and the 'DirectXTex' library.
9 //
10 // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
11 // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
12 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
13 // PARTICULAR PURPOSE.
14 //
15 // Copyright (c) Microsoft Corporation. All rights reserved.
16 //--------------------------------------------------------------------------------------
17
18 #pragma once
19
20 void CreateDDSTextureFromMemory(
21     _In_ ID3D11Device* d3dDevice,
22     _In_reads_bytes_(ddsDataSize) const byte* ddsData,
23     _In_ size_t ddsDataSize,
24     _Out_opt_ ID3D11Resource** texture,
25     _Out_opt_ ID3D11ShaderResourceView** textureView,
26     _In_ size_t maxsize = 0
27     );