Skip to content

RenderLinearSRGBToOklab

Overview

RenderProgram to convert linear sRGB => Oklab

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RenderLinearSRGBToOklab

import { RenderLinearSRGBToOklab } from 'scenerystack/alpenglow';

Constructor

new RenderLinearSRGBToOklab( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderLinearSRGBToOklab

writeInstructions( instructions : RenderInstruction[] )

Class RenderInstructionLinearSRGBToOklab

import { RenderInstructionLinearSRGBToOklab } from 'scenerystack/alpenglow';

Instance Methods

toString() : string

equals( other : RenderInstruction, areLocationsEqual : ( a: RenderInstructionLocation, b: RenderInstructionLocation ) => boolean ) : boolean

execute( stack : RenderExecutionStack, context : RenderEvaluationContext, executor : RenderExecutor )

writeBinary( encoder : ByteEncoder, getOffset : ( location: RenderInstructionLocation ) => number )

getBinaryLength() : number

Static Properties

INSTANCE : RenderInstructionLinearSRGBToOklab

(readonly)

Source Code

See the source for RenderLinearSRGBToOklab.ts in the alpenglow repository.