API リファレンス
検索インデックスを準備中…

ReadonlyRenderStates

読み取り専用の描画状態。テクスチャとシェーダーはリソース参照を保持します。

interface ReadonlyRenderStates {
    blendMode: Readonly<BlendMode>;
    coordinateType: CoordinateType;
    shader:
        | null
        | Readonly<
            Pick<
                Shader,
                | typeof graphicsNative
                | "getNativeHandle"
                | typeof shaderId
                | typeof shaderTextures,
            >,
        >;
    stencilMode: Readonly<
        Omit<StencilMode, "stencilReference" | "stencilMask">,
    > & {
        stencilMask: Readonly<StencilValue>;
        stencilReference: Readonly<StencilValue>;
    };
    texture: | null
    | Readonly<
        Pick<
            Texture,
            | "getSize"
            | typeof graphicsNative
            | typeof textureId
            | typeof textureOwner
            | "copyToImage"
            | "isSmooth"
            | "isRepeated"
            | "isSrgb"
            | "getNativeHandle",
        >,
    >;
    transform: ReadonlyValue<Transform>;
}
ソースと継承
メンバー一覧6

プロパティ

プロパティ

blendMode: Readonly<BlendMode>

色のブレンドモード。

ソースと継承
coordinateType: CoordinateType

テクスチャ座標の単位。

ソースと継承
shader:
    | null
    | Readonly<
        Pick<
            Shader,
            | typeof graphicsNative
            | "getNativeHandle"
            | typeof shaderId
            | typeof shaderTextures,
        >,
    >

シェーダーリソース参照。null は既定のパイプラインを使用します。

ソースと継承
stencilMode: Readonly<Omit<StencilMode, "stencilReference" | "stencilMask">> & {
    stencilMask: Readonly<StencilValue>;
    stencilReference: Readonly<StencilValue>;
}

ステンシルテスト設定。

型宣言

  • 読み取り専用stencilMask: Readonly<StencilValue>

    読み取り専用のステンシル比較マスク。

  • 読み取り専用stencilReference: Readonly<StencilValue>

    読み取り専用のステンシル参照値。

ソースと継承
texture:
    | null
    | Readonly<
        Pick<
            Texture,
            | "getSize"
            | typeof graphicsNative
            | typeof textureId
            | typeof textureOwner
            | "copyToImage"
            | "isSmooth"
            | "isRepeated"
            | "isSrgb"
            | "getNativeHandle",
        >,
    >

テクスチャリソース参照。null はテクスチャを無効にします。

ソースと継承

描画前に適用する変換。

ソースと継承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0