Function create

Synopsis

#include <Source/Falcor/Utils/Image/Bitmap.h>

static UniqueConstPtr create(uint32_t width, uint32_t height, ResourceFormat format, const uint8_t *pData)

Description

Create from memory.

Parameters

[ in ] width - Width in pixels.

[ in ] height - Height in pixels

[ in ] format - Resource format.

[ in ] pData - Pointer to data. Data will be copied internally during creation and does not need to be managed by the caller.

Returns
A new bitmap object.

Source

Lines 186-189 in Source/Falcor/Utils/Image/Bitmap.cpp. Line 69 in Source/Falcor/Utils/Image/Bitmap.h.

Bitmap::UniqueConstPtr Bitmap::create(uint32_t width, uint32_t height, ResourceFormat format, const uint8_t* pData)
{
    return Bitmap::UniqueConstPtr(new Bitmap(width, height, format, pData));
}





Add Discussion as Guest

Log in