Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Feb 19, 2023


} else {

console.error( 'WebGPURenderer: THREE.VideoTexture does not support vertex shader.' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it support compute shader?

@sunag sunag marked this pull request as ready for review March 27, 2023 20:38
@sunag sunag added this to the r151 milestone Mar 27, 2023
@sunag sunag merged commit 9423a43 into mrdoob:dev Mar 27, 2023
@sunag sunag deleted the webgpu-video-texture branch March 27, 2023 20:51
@sunag sunag restored the webgpu-video-texture branch March 27, 2023 20:51

if ( this.defaultVideoTexture === null ) {

const video = document.getElementById( 'video' );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do something like this here:

const video = typeof document !== 'undefined' ? document.createElement( 'video' ) : null;

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... My first attempt was just put THREE.VideoTexture() but it crashes here:

if ( 'requestVideoFrameCallback' in video ) {

and maybe should crashes using device.importExternalTexture() too without <video>.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants