Click or drag to resize
Ab4d.SharpEngine logo

CubeMapLoaderLoadCubeMap(String, VulkanDevice, IBitmapIO, String) Method

Load cube map from a single path. The path can be either an image filename that follows CMFT (cubemap filtering tool; https://github.com/dariomanesku/cmft) naming convention, or path to directory that contains six image files that follow CMFT naming convention. Under this naming convention, image basenames end with face-specific suffices: _posx, _negx, _posy, _negy, _posz, and _negz. If the given path is an image filename, it is assumed that the same directory contains the remaining five images, and that they are named in the same way (same prefix and filename extension).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public static GpuImage LoadCubeMap(
	string inputPath,
	VulkanDevice gpuDevice,
	IBitmapIO? bitmapIO = null,
	string? name = null
)

Parameters

inputPath  String
Input path to a file or directory.
gpuDevice  VulkanDevice
Vulkan device.
bitmapIO  IBitmapIO  (Optional)
Optional image reader used to load the images.
name  String  (Optional)
Optional name for created GpuImage instance.

Return Value

GpuImage
A new GpuImage instance that contains cube map data.
Exceptions
ExceptionCondition
ArgumentException
See Also