Click or drag to resize
AB4D logo

DXDeviceCreateTexture2D(Int32, Int32, SampleDescription, Boolean, Boolean, Boolean, Boolean, Format) Method

CreateTexture2D returns a buffer as Texture2D.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public Texture2D CreateTexture2D(
	int width,
	int height,
	SampleDescription sampleDescription,
	bool isRenderTarget,
	bool isSharedResource,
	bool isStagingTexture,
	bool isShaderResource,
	Format format
)

Parameters

width  Int32
width
height  Int32
height
sampleDescription  SampleDescription
sampleDescription (defines antialiasing)
isRenderTarget  Boolean
isRenderTarget
isSharedResource  Boolean
isSharedResource
isStagingTexture  Boolean
isStagingTexture
isShaderResource  Boolean
isShaderResource
format  Format
format

Return Value

Texture2D
Texture2D
See Also