![]() | |
Rendering |
The RenderingItem type exposes the following members.
Name | Description | |
---|---|---|
![]() | AdditionalVertexBuffers | When AdditionalVertexBuffers is not null, then the array items that are not null are bind to vertex buffer starting with binding 1. This array does not include the VertexBuffer so that the primary vertex buffer address is included into the same memory block that defines this RenderingItem (the item in the array are defined elsewhere in memory). |
![]() | CustomRenderAction | When CustomRenderAction is set, then this action is called when rendering instead of calling vkCmdDrawIndexed. |
![]() | EffectTechnique | EffectTechnique |
![]() | FirstIndex | FirstIndex |
![]() | FirstInstance | FirstInstance |
![]() | Flags | Flags |
![]() | IndexBuffer | IndexBuffer |
![]() | IndexBufferType | IndexBufferType |
![]() | IndexCount | Number of triangle indices (or vertexes when there is no IndexBuffer) |
![]() | InstanceCount | InstanceCount (should be at least 1) |
![]() | MaterialDescriptorSets | MaterialDescriptorSets |
![]() | MaterialIndex | MaterialIndex (when bigger or equal to 0, then PushConstant is set to FragmentShader) |
![]() | MatricesDescriptorSets | MatricesDescriptorSets |
![]() | MatrixIndex | MatrixIndex |
![]() | ParentSceneNode | ParentSceneNode |
![]() | PrimitiveTopology | PrimitiveTopology |
![]() | PushConstantsBytes | Array of bytes that are used as additional PushConstants for the FragmentShader. Note that SharpEngine internally uses 8 bytes of PushConstants for the matrixIndex and materialIndex, so this custom push constants in the shader must start at offset 8. |
![]() | StateSortValue | The state sort value represent an unsigned Int32 number that is a short hash value calculated from the properties of this RenderingItem (usually the value is defined from Effect's Id and effect's technique index) and can be used to sort and group similar RenderingItem. This optimizes optimize Pipeline changes and can improve performance. |
![]() | Tag | Tag |
![]() | VertexBuffer | VertexBuffer |
![]() | VertexBufferDescription | VertexBufferDescription |
![]() | VertexCount | Number of vertices in the VertexBuffer |
![]() | VertexOffset | VertexOffset |
![]() | WorldBoundingBox | WorldBoundingBox |