Contents

makeTextureResource(descriptor:)

Creates a texture resource from the given descriptor.

Declaration

func makeTextureResource(descriptor: LowLevelTextureResource.Descriptor) throws -> LowLevelTextureResource

Parameters

  • descriptor:

    The texture type, pixel format, dimensions, and usage flags.

Return Value

A newly created LowLevelTextureResource.

Discussion

See Also

Creating resources