Exemplo n.º 1
0
 public static Texture New2D(GraphicsDevice device, int width, int height, PixelFormat format, TextureFlags textureFlags = TextureFlags.ShaderResource, short mipLevels = 1, short arraySize = 1, int sampleCount = 1, int sampleQuality = 0, GraphicsHeapType heapType = GraphicsHeapType.Default)
 {
     return(New(device, TextureDescription.New2D(width, height, format, textureFlags, mipLevels, arraySize, sampleCount, sampleQuality, heapType)));
 }
Exemplo n.º 2
0
 public static Texture New(GraphicsDevice device, TextureDescription description)
 {
     return(new Texture(device).InitializeFrom(description));
 }
Exemplo n.º 3
0
 public Texture(GraphicsDevice device, TextureDescription description) : base(device, CreateResource(device, description))
 {
     InitializeFromDescription(description);
 }
Exemplo n.º 4
0
 public static Texture Create(GraphicsDevice device, TextureDescription description)
 {
     return(new Texture(device, description));
 }
Exemplo n.º 5
0
 protected void InitializeFromDescription(TextureDescription description)
 {
     Description = description;
 }