Loading...
Searching...
No Matches
score::gfx::TextureShareBackend Class Referenceabstract

Backend-specific implementation interface for GPU-only texture sharing. More...

Inheritance diagram for score::gfx::TextureShareBackend:
score::gfx::TextureShareBackendBase

Detailed Description

Backend-specific implementation interface for GPU-only texture sharing.

Public Member Functions

virtual bool setup (QRhi *producer, QRhi *consumer, QSize size, QRhiTexture::Format format)=0
 
virtual bool setupProducer (QRhi *producer, QSize size, QRhiTexture::Format format)=0
 
virtual bool setupConsumer (QRhi *consumer)=0
 
virtual void resize (QSize newSize)=0
 
virtual void cleanup ()=0
 
virtual bool isValid () const noexcept=0
 
virtual bool isProducerReady () const noexcept=0
 
virtual QRhiTextureRenderTarget * beginProducerFrame ()=0
 
virtual QRhiTexture * currentProducerTexture ()=0
 
virtual void endProducerFrame (QRhiCommandBuffer *cb)=0
 
virtual QRhiRenderPassDescriptor * producerRenderPassDescriptor () const noexcept=0
 
virtual QRhiTexture * acquireConsumerTexture (QRhiCommandBuffer *cb)=0
 
virtual bool hasNewFrame () const noexcept=0
 
virtual QSize size () const noexcept=0
 

The documentation for this class was generated from the following file: