#include <computecomponent.h>
Public Attributes | |
ComputeMaterialInstanceResource | mComputeMaterialInstanceResource |
Property 'ComputeMaterialInstance' The compute material instance resource. More... | |
uint | mInvocations = 1 |
Property 'Invocations' The number of compute shader invocations per dispatch. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
virtual void | getDependentComponents (std::vector< rtti::TypeInfo > &components) const |
virtual const rtti::TypeInfo | getInstanceType () const =0 |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Resource part of Compute Component
The compute component represents a general-purpose computation that mutates one or more storage buffers. Internally, a ComputeComponentInstance manages a ComputeMaterialInstance and caches the desired invocation count for repeated use.
ComputeComponentInstance::compute() dispatches the compute shader with the given compute command buffer. Multiple compute calls may be stacked and are implicitly synchronized by the resource usage and access types bound to the compute material's descriptor sets.
This component can only be used when 'Compute' is available and enabled in the RenderService, otherwise initialization fails. To enable Compute, make sure 'Compute' is marked under the 'RequiredQueues' in the RenderServiceConfiguration.
ComputeMaterialInstanceResource mComputeMaterialInstanceResource |
Property 'ComputeMaterialInstance' The compute material instance resource.
uint mInvocations = 1 |
Property 'Invocations' The number of compute shader invocations per dispatch.