IDevice::createDepthTexture2D - dpw105f18/papago-api GitHub Wiki
Create a 2 dimensional texture
unique_ptr<IImageResource> createDepthTexture2D (uint32_t width, uint32_t height, Format format)
Returns
Returns a unique pointer to an IImageResource containing a single depth texture.
Parameters
| Parameter |
Description |
| width |
specifies the width of the texture. |
| height |
specifies the height of the texture. |
| format |
which format the texture will be stored as |
Exceptions
| Exception |
Error Code |
Description |
| std::system_error |
-1 |
out of host memory |
| std::system_error |
-2 |
out of device memory |