[][src]Struct qt_3d_render::QDispatchCompute

#[repr(C)]pub struct QDispatchCompute { /* fields omitted */ }

FrameGraph node to issue work for the compute shader on GPU

C++ class: Qt3DRender::QDispatchCompute.

C++ documentation:

FrameGraph node to issue work for the compute shader on GPU

A Qt3DRender::QDispatchCompute allows work to be issued for the compute shader to run on the GPU. The workGroupX, workGroupY and workGroupZ properties specify the work group sizes for the compute shader invocation. QComputeCommand components need to be added to entities to instruct Qt3D to select the materials and geometry from the entities for the compute invocation. The work group sizes for the shader invocation will be the maximum of the work group sizes specified in QDispatchCompute and QComputeCommand.

Methods

impl QDispatchCompute[src]

pub fn slot_set_work_group_x(&self) -> Receiver<(c_int,)>[src]

Specifies X workgroup.

Returns a built-in Qt slot Qt3DRender::QDispatchCompute::setWorkGroupX that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies X workgroup.

Access functions:

int workGroupX() const
void setWorkGroupX(int workGroupX)

Notifier signal:

void workGroupXChanged()

pub fn slot_set_work_group_y(&self) -> Receiver<(c_int,)>[src]

Specifies Y workgroup.

Returns a built-in Qt slot Qt3DRender::QDispatchCompute::setWorkGroupY that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies Y workgroup.

Access functions:

int workGroupY() const
void setWorkGroupY(int workGroupY)

Notifier signal:

void workGroupYChanged()

pub fn slot_set_work_group_z(&self) -> Receiver<(c_int,)>[src]

Specifies Z workgroup.

Returns a built-in Qt slot Qt3DRender::QDispatchCompute::setWorkGroupZ that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies Z workgroup.

Access functions:

int workGroupZ() const
void setWorkGroupZ(int workGroupZ)

Notifier signal:

void workGroupZChanged()

pub fn work_group_x_changed(&self) -> Signal<()>[src]

Specifies X workgroup.

Returns a built-in Qt signal Qt3DRender::QDispatchCompute::workGroupXChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies X workgroup.

Access functions:

int workGroupX() const
void setWorkGroupX(int workGroupX)

Notifier signal:

void workGroupXChanged()

pub fn work_group_y_changed(&self) -> Signal<()>[src]

Specifies Y workgroup.

Returns a built-in Qt signal Qt3DRender::QDispatchCompute::workGroupYChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies Y workgroup.

Access functions:

int workGroupY() const
void setWorkGroupY(int workGroupY)

Notifier signal:

void workGroupYChanged()

pub fn work_group_z_changed(&self) -> Signal<()>[src]

Specifies Z workgroup.

Returns a built-in Qt signal Qt3DRender::QDispatchCompute::workGroupZChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Specifies Z workgroup.

Access functions:

int workGroupZ() const
void setWorkGroupZ(int workGroupZ)

Notifier signal:

void workGroupZChanged()

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QDispatchCompute::metaObject() const.

pub unsafe fn new_1a(
    parent: impl CastInto<Ptr<QNode>>
) -> QBox<QDispatchCompute>
[src]

The constructor creates an instance with the specified parent.

Calls C++ function: [constructor] void Qt3DRender::QDispatchCompute::QDispatchCompute(Qt3DCore::QNode* parent = …).

C++ documentation:

The constructor creates an instance with the specified parent.

pub unsafe fn new_0a() -> QBox<QDispatchCompute>[src]

FrameGraph node to issue work for the compute shader on GPU

Calls C++ function: [constructor] void Qt3DRender::QDispatchCompute::QDispatchCompute().

C++ documentation:

FrameGraph node to issue work for the compute shader on GPU

A Qt3DRender::QDispatchCompute allows work to be issued for the compute shader to run on the GPU. The workGroupX, workGroupY and workGroupZ properties specify the work group sizes for the compute shader invocation. QComputeCommand components need to be added to entities to instruct Qt3D to select the materials and geometry from the entities for the compute invocation. The work group sizes for the shader invocation will be the maximum of the work group sizes specified in QDispatchCompute and QComputeCommand.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QDispatchCompute::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QDispatchCompute::qt_metacast(const char* arg1).

pub unsafe fn set_work_group_x(&self, work_group_x: c_int)[src]

Specifies X workgroup.

Calls C++ function: [slot] void Qt3DRender::QDispatchCompute::setWorkGroupX(int workGroupX).

C++ documentation:

Specifies X workgroup.

Access functions:

int workGroupX() const
void setWorkGroupX(int workGroupX)

Notifier signal:

void workGroupXChanged()

pub unsafe fn set_work_group_y(&self, work_group_y: c_int)[src]

Specifies Y workgroup.

Calls C++ function: [slot] void Qt3DRender::QDispatchCompute::setWorkGroupY(int workGroupY).

C++ documentation:

Specifies Y workgroup.

Access functions:

int workGroupY() const
void setWorkGroupY(int workGroupY)

Notifier signal:

void workGroupYChanged()

pub unsafe fn set_work_group_z(&self, work_group_z: c_int)[src]

Specifies Z workgroup.

Calls C++ function: [slot] void Qt3DRender::QDispatchCompute::setWorkGroupZ(int workGroupZ).

C++ documentation:

Specifies Z workgroup.

Access functions:

int workGroupZ() const
void setWorkGroupZ(int workGroupZ)

Notifier signal:

void workGroupZChanged()

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tr(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QDispatchCompute::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: *const c_char,
    c: *const c_char,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QDispatchCompute::trUtf8(const char* s, const char* c, int n).

pub unsafe fn work_group_x(&self) -> c_int[src]

Specifies X workgroup.

Calls C++ function: int Qt3DRender::QDispatchCompute::workGroupX() const.

C++ documentation:

Specifies X workgroup.

Access functions:

int workGroupX() const
void setWorkGroupX(int workGroupX)

Notifier signal:

void workGroupXChanged()

pub unsafe fn work_group_y(&self) -> c_int[src]

Specifies Y workgroup.

Calls C++ function: int Qt3DRender::QDispatchCompute::workGroupY() const.

C++ documentation:

Specifies Y workgroup.

Access functions:

int workGroupY() const
void setWorkGroupY(int workGroupY)

Notifier signal:

void workGroupYChanged()

pub unsafe fn work_group_z(&self) -> c_int[src]

Specifies Z workgroup.

Calls C++ function: int Qt3DRender::QDispatchCompute::workGroupZ() const.

C++ documentation:

Specifies Z workgroup.

Access functions:

int workGroupZ() const
void setWorkGroupZ(int workGroupZ)

Notifier signal:

void workGroupZChanged()

Methods from Deref<Target = QFrameGraphNode>

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QFrameGraphNode::metaObject() const.

pub unsafe fn parent_frame_graph_node(&self) -> QPtr<QFrameGraphNode>[src]

Returns a pointer to the parent.

Calls C++ function: Qt3DRender::QFrameGraphNode* Qt3DRender::QFrameGraphNode::parentFrameGraphNode() const.

C++ documentation:

Returns a pointer to the parent.

pub unsafe fn qt_metacall(
    &self,
    arg1: Call,
    arg2: c_int,
    arg3: *mut *mut c_void
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QFrameGraphNode::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DRender::QFrameGraphNode::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QDispatchCompute[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DRender::QDispatchCompute::~QDispatchCompute().

impl Deref for QDispatchCompute[src]

type Target = QFrameGraphNode

The resulting type after dereferencing.

fn deref(&self) -> &QFrameGraphNode[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QDispatchCompute* ptr).

impl DynamicCast<QDispatchCompute> for QFrameGraphNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* dynamic_cast<Qt3DRender::QDispatchCompute*>(Qt3DRender::QFrameGraphNode* ptr).

impl DynamicCast<QDispatchCompute> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* dynamic_cast<Qt3DRender::QDispatchCompute*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QDispatchCompute> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* dynamic_cast<Qt3DRender::QDispatchCompute*>(QObject* ptr).

impl StaticDowncast<QDispatchCompute> for QFrameGraphNode[src]

unsafe fn static_downcast(ptr: Ptr<QFrameGraphNode>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* static_cast<Qt3DRender::QDispatchCompute*>(Qt3DRender::QFrameGraphNode* ptr).

impl StaticDowncast<QDispatchCompute> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* static_cast<Qt3DRender::QDispatchCompute*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QDispatchCompute> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QDispatchCompute>[src]

Calls C++ function: Qt3DRender::QDispatchCompute* static_cast<Qt3DRender::QDispatchCompute*>(QObject* ptr).

impl StaticUpcast<QFrameGraphNode> for QDispatchCompute[src]

unsafe fn static_upcast(ptr: Ptr<QDispatchCompute>) -> Ptr<QFrameGraphNode>[src]

Calls C++ function: Qt3DRender::QFrameGraphNode* static_cast<Qt3DRender::QFrameGraphNode*>(Qt3DRender::QDispatchCompute* ptr).

impl StaticUpcast<QNode> for QDispatchCompute[src]

unsafe fn static_upcast(ptr: Ptr<QDispatchCompute>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QDispatchCompute* ptr).

impl StaticUpcast<QObject> for QDispatchCompute[src]

unsafe fn static_upcast(ptr: Ptr<QDispatchCompute>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QDispatchCompute* ptr).

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.