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.

1.2 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";

/** This module provides utilities for textures. */
export interface Api {
  /**
   * Get GPUTexture corresponding to an Image data-block. The GPUTexture memory is shared with Blender.
   * Note: Colors read from the texture will be in scene linear color space and have premultiplied or straight alpha matching the image alpha mode.
   * @returns The GPUTexture used by the image.
   * @param image The Image data-block.
   */
  from_image(image: R.Image): H.Ptr<P.gpu_types.GPUTexture>;
  /**
   * Get GPUTexture corresponding to an Image data-block. The GPUTexture memory is shared with Blender.
   * Note: Colors read from the texture will be in scene linear color space and have premultiplied or straight alpha matching the image alpha mode.
   * @returns The GPUTexture used by the image.
   * @param image The Image data-block.
   */
  from_image(kw: {
    /** The Image data-block. */
    image: R.Image;
  }): H.Ptr<P.gpu_types.GPUTexture>;
}