Table of Contents

Method CreateResource

Namespace
Bonsai.Shaders.Configuration
Assembly
Bonsai.Shaders.dll

CreateResource(ResourceManager)

Creates a new empty two-dimensional texture resource, typically used for uploading dynamic texture data.

public override Texture CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.

Returns

Texture

A new instance of the Texture class representing the 2D texture.