GRBackendTexture Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GRBackendTexture(Int32, Int32, GRD3DTextureResourceInfo) |
Creates a new Direct3D GRBackendTexture with the specified properties and texture. |
| GRBackendTexture(Int32, Int32, GRVkImageInfo) |
Creates a new Vulkan GRBackendTexture with the specified properties and image. |
| GRBackendTexture(Int32, Int32, Boolean, GRGlTextureInfo) |
Creates a new OpenGL GRBackendTexture with the specified properties and texture. |
| GRBackendTexture(Int32, Int32, Boolean, GRMtlTextureInfo) |
Creates a new Metal GRBackendTexture with the specified properties and texture. |
GRBackendTexture(Int32, Int32, GRD3DTextureResourceInfo)
Creates a new Direct3D GRBackendTexture with the specified properties and texture.
public GRBackendTexture(int width, int height, SkiaSharp.GRD3DTextureResourceInfo d3dTextureInfo);
Parameters
- width
- Int32
The width of the texture in pixels.
- height
- Int32
The height of the texture in pixels.
- d3dTextureInfo
- GRD3DTextureResourceInfo
The Direct3D texture resource information.
Applies to
GRBackendTexture(Int32, Int32, GRVkImageInfo)
Creates a new Vulkan GRBackendTexture with the specified properties and image.
public GRBackendTexture(int width, int height, SkiaSharp.GRVkImageInfo vkInfo);
Parameters
- width
- Int32
The width of the texture in pixels.
- height
- Int32
The height of the texture in pixels.
- vkInfo
- GRVkImageInfo
The Vulkan image information.
Applies to
GRBackendTexture(Int32, Int32, Boolean, GRGlTextureInfo)
Creates a new OpenGL GRBackendTexture with the specified properties and texture.
public GRBackendTexture(int width, int height, bool mipmapped, SkiaSharp.GRGlTextureInfo glInfo);
Parameters
- width
- Int32
The width of the render target.
- height
- Int32
The height of the render target.
- mipmapped
- Boolean
true if the texture is mipmapped; otherwise, false.
- glInfo
- GRGlTextureInfo
The OpenGL texture information.
Applies to
GRBackendTexture(Int32, Int32, Boolean, GRMtlTextureInfo)
Creates a new Metal GRBackendTexture with the specified properties and texture.
public GRBackendTexture(int width, int height, bool mipmapped, SkiaSharp.GRMtlTextureInfo mtlInfo);
Parameters
- width
- Int32
The width of the texture in pixels.
- height
- Int32
The height of the texture in pixels.
- mipmapped
- Boolean
true if the texture is mipmapped; otherwise, false.
- mtlInfo
- GRMtlTextureInfo
The Metal texture information.