X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SlimDXc_Jun2010%28VC%2B%2B2008%29%2Fsource%2Fdirect3d10%2FResource10.h;fp=SlimDXc_Jun2010%28VC%2B%2B2008%29%2Fsource%2Fdirect3d10%2FResource10.h;h=0000000000000000000000000000000000000000;hb=d3453b257c2faf4db202d38666a872929ff220cd;hp=a677864b3a7715e10c1add2296558ee3770bdb9a;hpb=1c2eac207d4963c6bc170b3f7fbe0feeffcd17e0;p=dtxmania%2Fdtxmania.git
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d10/Resource10.h b/SlimDXc_Jun2010(VC++2008)/source/direct3d10/Resource10.h
deleted file mode 100644
index a677864b..00000000
--- a/SlimDXc_Jun2010(VC++2008)/source/direct3d10/Resource10.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
-* Copyright (c) 2007-2010 SlimDX Group
-*
-* Permission is hereby granted, free of charge, to any person obtaining a copy
-* of this software and associated documentation files (the "Software"), to deal
-* in the Software without restriction, including without limitation the rights
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-* copies of the Software, and to permit persons to whom the Software is
-* furnished to do so, subject to the following conditions:
-*
-* The above copyright notice and this permission notice shall be included in
-* all copies or substantial portions of the Software.
-*
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-* THE SOFTWARE.
-*/
-#pragma once
-
-#include "../ComObject.h"
-
-#include "../dxgi/Enums.h"
-
-#include "DeviceChild10.h"
-#include "Enums.h"
-#include "../dxgi/SwapChainDxgi.h"
-#include "../dxgi/SurfaceDxgi.h"
-
-#include "TextureLoadInformation10.h"
-
-namespace SlimDX
-{
- namespace Direct3D10
- {
- ///
- /// A resource object.
- ///
- /// ID3D10Resource
- public ref class Resource abstract : public DeviceChild
- {
- COMOBJECT_BASE(ID3D10Resource);
-
- internal:
- static int GetMipSize( int mipSlice, int baseSliceSize );
-
- static ID3D10Resource* ConstructFromFile( SlimDX::Direct3D10::Device^ device, System::String^ fileName, D3DX10_IMAGE_LOAD_INFO* info );
- static ID3D10Resource* ConstructFromMemory( SlimDX::Direct3D10::Device^ device, array^ memory, D3DX10_IMAGE_LOAD_INFO* info );
- static ID3D10Resource* ConstructFromStream( SlimDX::Direct3D10::Device^ device, System::IO::Stream^ stream, int sizeInBytes, D3DX10_IMAGE_LOAD_INFO* info );
-
- static Resource^ FromPointer( ID3D10Resource* pointer );
-
- protected:
- Resource() { }
-
- public:
- ///
- /// Returns a DXGI Surface for this resource.
- ///
- /// The buffer interface, or null on failure.
- SlimDX::DXGI::Surface^ AsSurface();
-
- ///
- /// Gets a swap chain back buffer.
- ///
- /// The type of the buffer.
- /// The swap chain to get the buffer from.
- /// The index of the desired buffer.
- /// The buffer interface, or null on failure.
- generic< class T > where T : Resource, ref class
- static T FromSwapChain( SlimDX::DXGI::SwapChain^ swapChain, int index );
-
- static Resource^ FromPointer( System::IntPtr pointer );
-
- ///
- /// Gets or sets the resource's eviction priority.
- ///
- property DXGI::ResourcePriority EvictionPriority
- {
- DXGI::ResourcePriority get();
- void set(DXGI::ResourcePriority value);
- }
-
- ///
- /// Gets the resource's dimension (type).
- ///
- property ResourceDimension Dimension
- {
- ResourceDimension get();
- }
-
- static Result LoadTextureFromTexture(Resource^ source, Resource^ destination, TextureLoadInformation loadInformation);
- static Result FilterTexture(Resource^ texture, int sourceLevel, FilterFlags mipFilter);
-
- ///
- /// Calculates a subresource index.
- ///
- /// The index of the desired mip slice.
- /// The index of the desired array slice.
- /// The total number of mip levels.
- /// The subresource index (equivalent to mipSlice + (arraySlice * mipLevels)).
- static int CalculateSubresourceIndex( int mipSlice, int arraySlice, int mipLevels );
-
- literal int MaximumMipLevels = D3D10_REQ_MIP_LEVELS;
- literal int ResourceSizeInMegabytes = D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES;
- literal int MaximumTexture1DArraySize = D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION;
- literal int MaximumTexture2DArraySize = D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION;
- literal int MaximumTexture1DSize = D3D10_REQ_TEXTURE1D_U_DIMENSION;
- literal int MaximumTexture2DSize = D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION;
- literal int MaximumTexture3DSize = D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION;
- literal int MaximumTextureCubeSize = D3D10_REQ_TEXTURECUBE_DIMENSION;
- };
- }
-};
\ No newline at end of file