Skip to content

need option for a new empty texture on GPU #254

Open

Description

@robertleeplummerjr

Rather than creating it on the CPU, and sending it to GPU, it'd be nice to just have this.

Activity

  1. added this to the v2.1.0 milestone on May 22, 2019
  2. psishock commented on Dec 19, 2019

    @psishock
    let createTexture = gpu.createKernel(function() {
    	this.color(0,0,0,0);
    }, {
    	graphical: true,
    	pipeline: true,
    	output: [1000, 1000]
    });
    
    let calculate = gpu.createKernel(function(texture) {
    	return // do some calculations
    }, {
    	output: [5, 5]
    });
    
    let texture = createTexture();
    let output = calculate(texture);
    console.log(output);
    

    Wouldn't something like this work? Or even combining these kernels within a kernel map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions