pixi.js
    Preparing search index...

    Interface PixiColorAttachmentAdvanced

    A Pixi-flavored Color Attachment that mirrors the WebGPU spec but replaces low-level JIT requirements with high-level Pixi objects (like texture).

    import { RenderTarget, TextureSource } from 'pixi.js';

    const renderTarget = new RenderTarget({
    colorAttachments: [{
    texture: new TextureSource({ width: 100, height: 100 }),
    loadOp: 'clear', // Clears the texture before rendering
    clearValue: [1, 0, 0, 1], // Clears to red
    }]
    });
    interface PixiColorAttachment {
        texture: TextureSource;
        viewDescriptor?: GPUTextureViewDescriptor;
    }

    Hierarchy

    • Omit<GPURenderPassColorAttachment, "view" | "resolveTarget">
      • PixiColorAttachment
    Index

    Properties

    texture: TextureSource

    The Pixi texture to render to.

    viewDescriptor?: GPUTextureViewDescriptor

    Optional overrides for how the GPU views the texture (e.g., viewing a specific aspect or dimension). Rarely needed for 2D, but incredibly powerful for 3D and advanced compute pipelines.