Download the PHP package jovian/venusian-metal without Composer

On this page you can find all versions of the php package jovian/venusian-metal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package venusian-metal

jovian/venusian-metal

The metal rendering engine for Venusian Surface. Metal through ext-metal.

Where it sits

The engine's framebuffer is a MetalFramebuffer, a Surface GLFramebuffer.

Requirements

Install

Provider discovered through extra.venusian.providers. It registers metal on app('drawing').

Usage

Offscreen. Run as a script; printed pixels are its output.

On a display. The display sends what changed, in its own format.

On a canvas.

Needs a toolkit canvas that lends a Metal layer. A window that lends none refuses: This window cannot host 'metal': it lends … It can host: ….

Presenting and HDR

Present = show pass: target any size → window's presentRect(), window's filter, black bars, encoded for layer. Follows window vsync (on syncs display; off/mailbox don't). frames_in_flight 1-3. presents() = when frames hit screen (AppKit event cycle delivers times; waitPresented() pumps it). Minimised/hidden window never stalls a present (measured: 20 vsynced presents in 209 ms).

HDR on EDR displays (needs ext-appkit):

$engine = $drawing->engine('metal', ['output' => $window, 'format' => TargetFormat::Rgba16Float]);
$engine->frame(fn ($g) => $g->image(HdrImage::fromFloats($rgba, $w, $h), 0, 0));

Target = linear half floats, SDR white 1.0. Pairs: rgba16float extended-linear sRGB / P3 (EDR, × window SDR white), rgb10a2 HDR10 (PQ, BT.2020, HDR10 metadata), rgba8 Display P3.

What it draws

Operation Draws
CLEAR the colour over the whole target, no blend
SCISSOR clip rectangle for what follows
SOLID flat-colour triangles, no blend
STENCIL_FILL + COVER a path: triangle lists into the stencil (winding or even-odd), then a cover quad blended where the stencil is non-zero and zeroed
ELLIPSE, RING per-sample inside tests of the outer (and inner) ellipse
UPLOAD + IMAGE a framebuffer as a texture; sampled at the inverse placement of the pixel centre, nearest or Velvet's 256ths bilinear
RECTS rectangles blended at the colour's alpha

Edges: four samples resolved (anti-aliased) or one (hard). Blending: Velvet's integer source-over per sample, so interior pixels match Velvet byte for byte (the parity suite's rule).

Reference

Behaviour

Measured

Apple M1 Pro, 320 × 240, 100 ellipses and a line of text, anti-aliased: whole redraw 1.25 ms a frame, partial frames 4.57 ms, peak memory 4.0 MB. (Velvet, both extensions, same scene shape: 6.8 ms.)

Testing

Real GPU only; nothing skipped. tests/Pest.php requires Surface's GpuParity from the sibling checkout; set SURFACE_TESTS to a Surface checkout's tests directory to move it. Install with a temporary path repository to <surface>/src/Surface/*, run php -d memory_limit=128M vendor/bin/pest on php84 and ZTS. Runbook: .okf/runbooks/testing.md.

Security

See SECURITY.md.

License

MIT.


All versions of venusian-metal with dependencies

PHP Build Version
Package Version
Requires php Version ~8.4.27||^8.5.12
ext-metal Version ^0.11.0
ext-appkit Version ^0.11.0
ext-fb Version ^0.11.1
venusian-surface/contracts Version ^0.11.0
venusian-surface/drawing Version ^0.11.0
venusian-surface/framebuffers Version ^0.11.0
venusian-voyager/nuts-and-bolts Version ^0.11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jovian/venusian-metal contains the following files

Loading the files please wait ...