[][src]Struct qt_3d_render::QShaderProgram

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

Encapsulates a Shader Program.

C++ class: Qt3DRender::QShaderProgram.

C++ documentation:

Encapsulates a Shader Program.

A shader program consists of several different shaders, such as vertex and fragment shaders.

Methods

impl QShaderProgram[src]

pub fn slot_set_vertex_shader_code(&self) -> Receiver<(*const QByteArray,)>[src]

Holds the vertex shader code used by this shader program.

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

C++ documentation:

Holds the vertex shader code used by this shader program.

Access functions:

QByteArray vertexShaderCode() const
void setVertexShaderCode(const QByteArray &vertexShaderCode)

Notifier signal:

void vertexShaderCodeChanged(const QByteArray &vertexShaderCode)

pub fn slot_set_tessellation_control_shader_code(
    &self
) -> Receiver<(*const QByteArray,)>
[src]

Holds the tesselation control shader code used by this shader program.

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

C++ documentation:

Holds the tesselation control shader code used by this shader program.

Access functions:

QByteArray tessellationControlShaderCode() const
void setTessellationControlShaderCode(const QByteArray &tessellationControlShaderCode)

Notifier signal:

void tessellationControlShaderCodeChanged(const QByteArray &tessellationControlShaderCode)

pub fn slot_set_tessellation_evaluation_shader_code(
    &self
) -> Receiver<(*const QByteArray,)>
[src]

Holds the tesselation evaluation shader code used by this shader program.

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

C++ documentation:

Holds the tesselation evaluation shader code used by this shader program.

Access functions:

QByteArray tessellationEvaluationShaderCode() const
void setTessellationEvaluationShaderCode(const QByteArray &tessellationEvaluationShaderCode)

Notifier signal:

void tessellationEvaluationShaderCodeChanged(const QByteArray &tessellationEvaluationShaderCode)

pub fn slot_set_geometry_shader_code(&self) -> Receiver<(*const QByteArray,)>[src]

Holds the geometry shader code used by this shader program.

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

C++ documentation:

Holds the geometry shader code used by this shader program.

Access functions:

QByteArray geometryShaderCode() const
void setGeometryShaderCode(const QByteArray &geometryShaderCode)

Notifier signal:

void geometryShaderCodeChanged(const QByteArray &geometryShaderCode)

pub fn slot_set_fragment_shader_code(&self) -> Receiver<(*const QByteArray,)>[src]

Holds the fragment shader code used by this shader program.

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

C++ documentation:

Holds the fragment shader code used by this shader program.

Access functions:

QByteArray fragmentShaderCode() const
void setFragmentShaderCode(const QByteArray &fragmentShaderCode)

Notifier signal:

void fragmentShaderCodeChanged(const QByteArray &fragmentShaderCode)

pub fn slot_set_compute_shader_code(&self) -> Receiver<(*const QByteArray,)>[src]

Holds the compute shader code used by this shader program.

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

C++ documentation:

Holds the compute shader code used by this shader program.

Access functions:

QByteArray computeShaderCode() const
void setComputeShaderCode(const QByteArray &computeShaderCode)

Notifier signal:

void computeShaderCodeChanged(const QByteArray &computeShaderCode)

pub fn vertex_shader_code_changed(&self) -> Signal<(*const QByteArray,)>[src]

Holds the vertex shader code used by this shader program.

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

C++ documentation:

Holds the vertex shader code used by this shader program.

Access functions:

QByteArray vertexShaderCode() const
void setVertexShaderCode(const QByteArray &vertexShaderCode)

Notifier signal:

void vertexShaderCodeChanged(const QByteArray &vertexShaderCode)

pub fn tessellation_control_shader_code_changed(
    &self
) -> Signal<(*const QByteArray,)>
[src]

Holds the tesselation control shader code used by this shader program.

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

C++ documentation:

Holds the tesselation control shader code used by this shader program.

Access functions:

QByteArray tessellationControlShaderCode() const
void setTessellationControlShaderCode(const QByteArray &tessellationControlShaderCode)

Notifier signal:

void tessellationControlShaderCodeChanged(const QByteArray &tessellationControlShaderCode)

pub fn tessellation_evaluation_shader_code_changed(
    &self
) -> Signal<(*const QByteArray,)>
[src]

Holds the tesselation evaluation shader code used by this shader program.

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

C++ documentation:

Holds the tesselation evaluation shader code used by this shader program.

Access functions:

QByteArray tessellationEvaluationShaderCode() const
void setTessellationEvaluationShaderCode(const QByteArray &tessellationEvaluationShaderCode)

Notifier signal:

void tessellationEvaluationShaderCodeChanged(const QByteArray &tessellationEvaluationShaderCode)

pub fn geometry_shader_code_changed(&self) -> Signal<(*const QByteArray,)>[src]

Holds the geometry shader code used by this shader program.

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

C++ documentation:

Holds the geometry shader code used by this shader program.

Access functions:

QByteArray geometryShaderCode() const
void setGeometryShaderCode(const QByteArray &geometryShaderCode)

Notifier signal:

void geometryShaderCodeChanged(const QByteArray &geometryShaderCode)

pub fn fragment_shader_code_changed(&self) -> Signal<(*const QByteArray,)>[src]

Holds the fragment shader code used by this shader program.

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

C++ documentation:

Holds the fragment shader code used by this shader program.

Access functions:

QByteArray fragmentShaderCode() const
void setFragmentShaderCode(const QByteArray &fragmentShaderCode)

Notifier signal:

void fragmentShaderCodeChanged(const QByteArray &fragmentShaderCode)

pub fn compute_shader_code_changed(&self) -> Signal<(*const QByteArray,)>[src]

Holds the compute shader code used by this shader program.

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

C++ documentation:

Holds the compute shader code used by this shader program.

Access functions:

QByteArray computeShaderCode() const
void setComputeShaderCode(const QByteArray &computeShaderCode)

Notifier signal:

void computeShaderCodeChanged(const QByteArray &computeShaderCode)

pub fn log_changed(&self) -> Signal<(*const QString,)>[src]

Holds the log of the current shader program. This is useful to diagnose a compilation failure of the shader program.

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

C++ documentation:

Holds the log of the current shader program. This is useful to diagnose a compilation failure of the shader program.

Access functions:

QString log() const

Notifier signal:

void logChanged(const QString &log)

pub fn status_changed(&self) -> Signal<(Status,)>[src]

Holds the status of the current shader program.

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

C++ documentation:

Holds the status of the current shader program.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

pub unsafe fn compute_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the compute shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::computeShaderCode() const.

C++ documentation:

Holds the compute shader code used by this shader program.

Access functions:

QByteArray computeShaderCode() const
void setComputeShaderCode(const QByteArray &computeShaderCode)

Notifier signal:

void computeShaderCodeChanged(const QByteArray &computeShaderCode)

pub unsafe fn fragment_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the fragment shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::fragmentShaderCode() const.

C++ documentation:

Holds the fragment shader code used by this shader program.

Access functions:

QByteArray fragmentShaderCode() const
void setFragmentShaderCode(const QByteArray &fragmentShaderCode)

Notifier signal:

void fragmentShaderCodeChanged(const QByteArray &fragmentShaderCode)

pub unsafe fn geometry_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the geometry shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::geometryShaderCode() const.

C++ documentation:

Holds the geometry shader code used by this shader program.

Access functions:

QByteArray geometryShaderCode() const
void setGeometryShaderCode(const QByteArray &geometryShaderCode)

Notifier signal:

void geometryShaderCodeChanged(const QByteArray &geometryShaderCode)

pub unsafe fn load_source(
    source_url: impl CastInto<Ref<QUrl>>
) -> CppBox<QByteArray>
[src]

Returns the shader code loaded from sourceUrl.

Calls C++ function: static QByteArray Qt3DRender::QShaderProgram::loadSource(const QUrl& sourceUrl).

C++ documentation:

Returns the shader code loaded from sourceUrl.

pub unsafe fn log(&self) -> CppBox<QString>[src]

Holds the log of the current shader program. This is useful to diagnose a compilation failure of the shader program.

Calls C++ function: QString Qt3DRender::QShaderProgram::log() const.

C++ documentation:

Holds the log of the current shader program. This is useful to diagnose a compilation failure of the shader program.

Access functions:

QString log() const

Notifier signal:

void logChanged(const QString &log)

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

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

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

Default constructs an instance of QShaderProgram.

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

C++ documentation:

Default constructs an instance of QShaderProgram.

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

Encapsulates a Shader Program.

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

C++ documentation:

Encapsulates a Shader Program.

A shader program consists of several different shaders, such as vertex and fragment shaders.

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::QShaderProgram::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::QShaderProgram::qt_metacast(const char* arg1).

pub unsafe fn set_compute_shader_code(
    &self,
    compute_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the compute shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setComputeShaderCode(const QByteArray& computeShaderCode).

C++ documentation:

Holds the compute shader code used by this shader program.

Access functions:

QByteArray computeShaderCode() const
void setComputeShaderCode(const QByteArray &computeShaderCode)

Notifier signal:

void computeShaderCodeChanged(const QByteArray &computeShaderCode)

pub unsafe fn set_fragment_shader_code(
    &self,
    fragment_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the fragment shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setFragmentShaderCode(const QByteArray& fragmentShaderCode).

C++ documentation:

Holds the fragment shader code used by this shader program.

Access functions:

QByteArray fragmentShaderCode() const
void setFragmentShaderCode(const QByteArray &fragmentShaderCode)

Notifier signal:

void fragmentShaderCodeChanged(const QByteArray &fragmentShaderCode)

pub unsafe fn set_geometry_shader_code(
    &self,
    geometry_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the geometry shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setGeometryShaderCode(const QByteArray& geometryShaderCode).

C++ documentation:

Holds the geometry shader code used by this shader program.

Access functions:

QByteArray geometryShaderCode() const
void setGeometryShaderCode(const QByteArray &geometryShaderCode)

Notifier signal:

void geometryShaderCodeChanged(const QByteArray &geometryShaderCode)

pub unsafe fn set_shader_code(
    &self,
    type_: ShaderType,
    shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Sets the shader code for type of shader to the shaderCode.

Calls C++ function: void Qt3DRender::QShaderProgram::setShaderCode(Qt3DRender::QShaderProgram::ShaderType type, const QByteArray& shaderCode).

C++ documentation:

Sets the shader code for type of shader to the shaderCode.

See also shaderCode().

pub unsafe fn set_tessellation_control_shader_code(
    &self,
    tessellation_control_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the tesselation control shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setTessellationControlShaderCode(const QByteArray& tessellationControlShaderCode).

C++ documentation:

Holds the tesselation control shader code used by this shader program.

Access functions:

QByteArray tessellationControlShaderCode() const
void setTessellationControlShaderCode(const QByteArray &tessellationControlShaderCode)

Notifier signal:

void tessellationControlShaderCodeChanged(const QByteArray &tessellationControlShaderCode)

pub unsafe fn set_tessellation_evaluation_shader_code(
    &self,
    tessellation_evaluation_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the tesselation evaluation shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setTessellationEvaluationShaderCode(const QByteArray& tessellationEvaluationShaderCode).

C++ documentation:

Holds the tesselation evaluation shader code used by this shader program.

Access functions:

QByteArray tessellationEvaluationShaderCode() const
void setTessellationEvaluationShaderCode(const QByteArray &tessellationEvaluationShaderCode)

Notifier signal:

void tessellationEvaluationShaderCodeChanged(const QByteArray &tessellationEvaluationShaderCode)

pub unsafe fn set_vertex_shader_code(
    &self,
    vertex_shader_code: impl CastInto<Ref<QByteArray>>
)
[src]

Holds the vertex shader code used by this shader program.

Calls C++ function: [slot] void Qt3DRender::QShaderProgram::setVertexShaderCode(const QByteArray& vertexShaderCode).

C++ documentation:

Holds the vertex shader code used by this shader program.

Access functions:

QByteArray vertexShaderCode() const
void setVertexShaderCode(const QByteArray &vertexShaderCode)

Notifier signal:

void vertexShaderCodeChanged(const QByteArray &vertexShaderCode)

pub unsafe fn shader_code(&self, type_: ShaderType) -> CppBox<QByteArray>[src]

Returns the shader code for type.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::shaderCode(Qt3DRender::QShaderProgram::ShaderType type) const.

C++ documentation:

Returns the shader code for type.

See also setShaderCode().

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

Returns a reference to the staticMetaObject field.

pub unsafe fn status(&self) -> Status[src]

Holds the status of the current shader program.

Calls C++ function: Qt3DRender::QShaderProgram::Status Qt3DRender::QShaderProgram::status() const.

C++ documentation:

Holds the status of the current shader program.

Access functions:

Status status() const

Notifier signal:

void statusChanged(Status status)

pub unsafe fn tessellation_control_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the tesselation control shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::tessellationControlShaderCode() const.

C++ documentation:

Holds the tesselation control shader code used by this shader program.

Access functions:

QByteArray tessellationControlShaderCode() const
void setTessellationControlShaderCode(const QByteArray &tessellationControlShaderCode)

Notifier signal:

void tessellationControlShaderCodeChanged(const QByteArray &tessellationControlShaderCode)

pub unsafe fn tessellation_evaluation_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the tesselation evaluation shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::tessellationEvaluationShaderCode() const.

C++ documentation:

Holds the tesselation evaluation shader code used by this shader program.

Access functions:

QByteArray tessellationEvaluationShaderCode() const
void setTessellationEvaluationShaderCode(const QByteArray &tessellationEvaluationShaderCode)

Notifier signal:

void tessellationEvaluationShaderCodeChanged(const QByteArray &tessellationEvaluationShaderCode)

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

Calls C++ function: static QString Qt3DRender::QShaderProgram::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::QShaderProgram::trUtf8(const char* s, const char* c, int n).

pub unsafe fn vertex_shader_code(&self) -> CppBox<QByteArray>[src]

Holds the vertex shader code used by this shader program.

Calls C++ function: QByteArray Qt3DRender::QShaderProgram::vertexShaderCode() const.

C++ documentation:

Holds the vertex shader code used by this shader program.

Access functions:

QByteArray vertexShaderCode() const
void setVertexShaderCode(const QByteArray &vertexShaderCode)

Notifier signal:

void vertexShaderCodeChanged(const QByteArray &vertexShaderCode)

Trait Implementations

impl CppDeletable for QShaderProgram[src]

unsafe fn delete(&self)[src]

Destroys the instance of QShaderProgram.

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

C++ documentation:

Destroys the instance of QShaderProgram.

impl Deref for QShaderProgram[src]

type Target = QNode

The resulting type after dereferencing.

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

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

impl DynamicCast<QShaderProgram> for QNode[src]

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

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

impl DynamicCast<QShaderProgram> for QObject[src]

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

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

impl StaticDowncast<QShaderProgram> for QNode[src]

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

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

impl StaticDowncast<QShaderProgram> for QObject[src]

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

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

impl StaticUpcast<QNode> for QShaderProgram[src]

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

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

impl StaticUpcast<QObject> for QShaderProgram[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QShaderProgram* 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.