Ported DirectX12GameEngine.Graphics project
このコミットが含まれているのは:
1 親
36ef5b38b7
コミット
f74dc2374a
33ファイル変更
+2412
-8
検索条件に一致するファイルはありません
@@ -0,0 +1,33 @@
|
||||
namespace DirectX12GameEngine.Graphics
|
||||
{
|
||||
public struct ImageDescription
|
||||
{
|
||||
public TextureDimension Dimension;
|
||||
|
||||
public int Width;
|
||||
|
||||
public int Height;
|
||||
|
||||
public int Depth;
|
||||
|
||||
public int ArraySize;
|
||||
|
||||
public int MipLevels;
|
||||
|
||||
public PixelFormat Format;
|
||||
|
||||
public static ImageDescription New2D(int width, int height, PixelFormat format, int mipCount = 1, int arraySize = 1)
|
||||
{
|
||||
return new ImageDescription
|
||||
{
|
||||
Dimension = TextureDimension.Texture2D,
|
||||
Width = width,
|
||||
Height = height,
|
||||
Depth = 1,
|
||||
ArraySize = arraySize,
|
||||
Format = format,
|
||||
MipLevels = mipCount,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする