Skip to content

@vaguevoid/fiasco / ecs/resources / GpuInterface

Class: GpuInterface

Defined in: src/ecs/resources.ts:626

A Resource that hold references to managers such as the TextureAssetManager.

ts
import { GpuInterface } from '@vaguevoid/fiasco'

function system(gpuInterface: GpuInterface) {
  const texture = gpuInterface.textureAssetManager.loadTexture(...)
}

Extends

Properties

textureAssetManager

readonly textureAssetManager: TextureAssetManager

Defined in: src/ecs/resources.ts:640

The TextureAssetManager is used for loading textures into the engine.

Methods

deserialize()

deserialize(bytes): boolean

Defined in: src/ecs/resources.ts:70

Parameters

bytes

Uint8Array

Returns

boolean

Inherited from

Resource.deserialize


serialize()

serialize(): Uint8Array

Defined in: src/ecs/resources.ts:65

Returns

Uint8Array

Inherited from

Resource.serialize