Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

2.4 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/** gpu_extras.batch */
export interface Api {
  /**
   * Return a batch already configured and compatible with the shader.
   * @returns compatible batch
   * @param shader shader for which a compatible format will be computed.
   * @param type The primitive type of batch geometry.
   * @param content Maps the name of the shader attribute with the data to fill the vertex buffer. For the dictionary values see documentation for :class:`gpu.types.GPUVertBuf.attr_fill` data argument.
   */
  batch_for_shader(shader: P.gpu_types.GPUShader, type: H.In<"POINTS" | "LINES" | "TRIS" | "LINE_STRIP" | "TRI_STRIP" | "LINES_ADJ" | "TRIS_ADJ" | "LINE_STRIP_ADJ">, content: H.In<H.DictIn<H.Bytes | readonly number[] | readonly (readonly number[])[]>>, kw?: {
    /** Optional index buffer contents. When omitted, the batch draws all vertices in order. */
    indices?: H.In<readonly number[] | readonly (readonly number[])[] | null>;
  }): H.Ptr<P.gpu_types.GPUBatch>;
  /**
   * Return a batch already configured and compatible with the shader.
   * @returns compatible batch
   * @param shader shader for which a compatible format will be computed.
   * @param type The primitive type of batch geometry.
   * @param content Maps the name of the shader attribute with the data to fill the vertex buffer. For the dictionary values see documentation for :class:`gpu.types.GPUVertBuf.attr_fill` data argument.
   */
  batch_for_shader(kw: {
    /** shader for which a compatible format will be computed. */
    shader: P.gpu_types.GPUShader;
    /** The primitive type of batch geometry. */
    type: H.In<"POINTS" | "LINES" | "TRIS" | "LINE_STRIP" | "TRI_STRIP" | "LINES_ADJ" | "TRIS_ADJ" | "LINE_STRIP_ADJ">;
    /**
     * Maps the name of the shader attribute with the data to fill the vertex buffer.
     * For the dictionary values see documentation for :class:`gpu.types.GPUVertBuf.attr_fill` data argument.
     */
    content: H.In<H.DictIn<H.Bytes | readonly number[] | readonly (readonly number[])[]>>;
    /** Optional index buffer contents. When omitted, the batch draws all vertices in order. */
    indices?: H.In<readonly number[] | readonly (readonly number[])[] | null>;
  }): H.Ptr<P.gpu_types.GPUBatch>;
}