Table of Contents

Class SyncTextureReadback

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Whether this device can read a texture back from the GPU synchronously (Texture2D.ReadPixels). WebGPU cannot: the call logs "Texture Readback is not supported by WebGPU" and reads nothing. The runtime's fallbacks for a scene missing its bake (the ground colour map's layer means, the grass's albedo copy) check this and do without, warning once with what is missing, rather than computing from an empty read.

public static class SyncTextureReadback
Inheritance
SyncTextureReadback
Inherited Members

Properties

Supported

True where ReadPixels works.

public static bool Supported { get; }

Property Value

bool

Methods

WarnSkipped(string)

Logs, once a session, that what was skipped for want of a readback.

public static void WarnSkipped(string what)

Parameters

what string