You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
869 B
45 lines
869 B
Content-Type: text/x-zim-wiki
|
|
Wiki-Format: zim 0.4
|
|
Creation-Date: 2020-02-12T23:22:51-08:00
|
|
|
|
====== CompiledShader ======
|
|
|
|
[[/doc/sfml_rust/canvas/managed/shader/shader_common/trait.CompiledShader.html|Documentation]]
|
|
|
|
==== Details ====
|
|
|
|
This trait returns:
|
|
* It's pipeline
|
|
* It's own assigned handle
|
|
* The renderpass it copied from the constructor
|
|
|
|
==== Implementors ====
|
|
|
|
**GenericShader**
|
|
For basic 2D drawing we just these shaders
|
|
* Vertex
|
|
* Fragment
|
|
We also use a **SingleBufferDefinition**
|
|
For vertices, we use a **Triangle List**
|
|
We also use the **generic** depth stencil
|
|
|
|
**TextShader**
|
|
|
|
Very similar to the GenericShader, but specialized with the depth stencil to draw text.
|
|
Still using the shaders :
|
|
* Vertex
|
|
* Fragment
|
|
**SingleBufferDefinition**
|
|
**TriangleList**
|
|
**DepthStencil** with our own specialized depth stencil values
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|