pixi.js
    Preparing search index...

    Interface PixiDepthStencilAttachmentAdvanced

    A Pixi-flavored Depth/Stencil 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({
    depthStencilAttachment: {
    texture: new TextureSource({ format: 'depth24plus-stencil8', width: 100, height: 100 }),
    depthLoadOp: 'clear',
    depthClearValue: 1.0,
    depthReadOnly: true, // Only test depth, don't write to it (advanced 3D trick)
    }
    });
    interface PixiDepthStencilAttachment {
        texture: TextureSource;
        viewDescriptor?: GPUTextureViewDescriptor;
    }

    Hierarchy

    • Omit<GPURenderPassDepthStencilAttachment, "view">
      • PixiDepthStencilAttachment
    Index

    Properties

    texture: TextureSource

    The Pixi depth/stencil texture to use for testing/writing.

    viewDescriptor?: GPUTextureViewDescriptor

    Optional overrides. For example, if you want to perform depth testing while simultaneously sampling the stencil data in a shader, you can pass { aspect: 'depth-only' }.