|
Polyphase Game Engine
|
#include "Graphics/Vulkan/VulkanUtils.h"#include "Graphics/Vulkan/VulkanContext.h"#include "Graphics/Vulkan/Pipeline.h"#include "Engine.h"#include "Renderer.h"#include "Assets/Font.h"#include "Assets/Material.h"#include "Assets/MaterialBase.h"#include "Assets/MaterialInstance.h"#include "Assets/MaterialLite.h"#include "Assets/Texture.h"#include "Assets/StaticMesh.h"#include "Assets/SkeletalMesh.h"#include "Nodes/3D/StaticMesh3d.h"#include "Nodes/3D/SkeletalMesh3d.h"#include "Nodes/3D/ShadowMesh3d.h"#include "Nodes/3D/InstancedMesh3d.h"#include "Nodes/3D/TextMesh3d.h"#include "Nodes/3D/Voxel3d.h"#include "Nodes/3D/Terrain3d.h"#include "Nodes/3D/TileMap2d.h"#include "Nodes/3D/Particle3d.h"#include "Nodes/Widgets/Quad.h"#include "Nodes/Widgets/Text.h"#include "Nodes/Widgets/Poly.h"#include "Utilities.h"#include "Vertex.h"#include "Maths.h"Functions | |
| VkFormat | ConvertPixelFormat (PixelFormat pixelFormat, bool srgb) |
| VkCullModeFlags | ConvertCullMode (CullMode cullMode) |
| UniformBlock | WriteUniformBlock (void *data, uint32_t size) |
| void | CreateBuffer (VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer &buffer, VramAllocation &bufferMemory) |
| void | TransitionImageLayout (VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout, int32_t mipLevels, int32_t layerCount, VkCommandBuffer commandBuffer) |
| void | CopyBuffer (VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size) |
| void | CopyBufferToImage (VkBuffer buffer, VkImage image, uint32_t width, uint32_t height) |
| uint32_t | GetFrameIndex () |
| uint32_t | GetFrameNumber () |
| DestroyQueue * | GetDestroyQueue () |
| VkDevice | GetVulkanDevice () |
| VkCommandBuffer | GetCommandBuffer () |
| void | DeviceWaitIdle () |
| VkCommandBuffer | BeginCommandBuffer () |
| void | EndCommandBuffer (VkCommandBuffer commandBuffer) |
| uint32_t | FindMemoryType (uint32_t typeFilter, VkMemoryPropertyFlags properties) |
| uint32_t | GetFormatPixelSize (VkFormat format) |
| uint32_t | GetFormatBlockSize (VkFormat format) |
| bool | IsFormatBlockCompressed (VkFormat format) |
| VkImageAspectFlags | GetFormatImageAspect (VkFormat format) |
| std::vector< VkVertexInputBindingDescription > | GetVertexBindingDescription (VertexType type) |
| std::vector< VkVertexInputAttributeDescription > | GetVertexAttributeDescriptions (VertexType type) |
| void | SetDebugObjectName (VkObjectType objectType, uint64_t object, const char *name) |
| void | BeginDebugLabel (const char *name, glm::vec4 color) |
| void | EndDebugLabel () |
| void | WriteGeometryUniformData (GeometryData &outData, World *world, Node3D *comp, const glm::mat4 &transform) |
| void | GatherGeometryLightUniformData (GeometryData &outData, Primitive3D *primitive, Material *material, bool isStaticMesh) |
| void | WriteMaterialLiteUniformData (MaterialData &outData, MaterialLite *material) |
| void | WriteMaterialCustomUniformData (MaterialData &outData, Material *material) |
| VkPipelineColorBlendAttachmentState | GetBasicBlendState (BasicBlendState basicBlendState) |
| void | CreateTextureResource (Texture *texture, uint8_t *pixels) |
| void | DestroyTextureResource (Texture *texture) |
| void | BindForwardVertexType (VertexType vertType, Material *material, bool instanced=false) |
| void | CreateMaterialResource (Material *material) |
| void | DestroyMaterialResource (Material *material) |
| void | BindMaterialResource (Material *material) |
| void | BindMaterialDescriptorSet (Material *material) |
| void | CreateStaticMeshResource (StaticMesh *staticMesh, bool hasColor, uint32_t numVertices, void *vertices, uint32_t numIndices, IndexType *indices) |
| void | DestroyStaticMeshResource (StaticMesh *staticMesh) |
| void | BindStaticMeshResource (StaticMesh *staticMesh) |
| void | CreateSkeletalMeshResource (SkeletalMesh *skeletalMesh, uint32_t numVertices, VertexSkinned *vertices, uint32_t numIndices, IndexType *indices) |
| void | DestroySkeletalMeshResource (SkeletalMesh *skeletalMesh) |
| void | BindSkeletalMeshResource (SkeletalMesh *skeletalMesh) |
| void | BindSkeletalMeshResourceIndices (SkeletalMesh *skeletalMesh) |
| void | BindGeometryDescriptorSet (StaticMesh3D *staticMeshComp) |
| void | UpdateStaticMeshCompResourceColors (StaticMesh3D *staticMeshComp) |
| void | DestroyStaticMeshCompResource (StaticMesh3D *staticMeshComp) |
| void | DrawStaticMeshComp (StaticMesh3D *staticMeshComp, StaticMesh *meshOverride) |
| void | DestroySkeletalMeshCompResource (SkeletalMesh3D *skeletalMeshComp) |
| void | ReallocateSkeletalMeshCompVertexBuffer (SkeletalMesh3D *skeletalMeshComp, uint32_t numVertices) |
| void | UpdateSkeletalMeshCompVertexBuffer (SkeletalMesh3D *skeletalMeshComp, const std::vector< Vertex > &skinnedVertices) |
| void | BindGeometryDescriptorSet (SkeletalMesh3D *skeletalMeshComp) |
| void | DrawSkeletalMeshComp (SkeletalMesh3D *skeletalMeshComp) |
| bool | IsCpuSkinningRequired (SkeletalMesh3D *skeletalMeshComp) |
| void | DrawShadowMeshComp (ShadowMesh3D *shadowMeshComp) |
| void | DrawInstancedMeshComp (InstancedMesh3D *instancedMeshComp) |
| void | DestroyTextMeshCompResource (TextMesh3D *textMeshComp) |
| void | UpdateTextMeshCompVertexBuffer (TextMesh3D *textMeshComp, const std::vector< Vertex > &vertices) |
| void | DrawTextMeshComp (TextMesh3D *textMeshComp) |
| void | BindGeometryDescriptorSet (TextMesh3D *textMeshComp) |
| void | CreateVoxel3DResource (Voxel3D *voxel) |
| void | DestroyVoxel3DResource (Voxel3D *voxel) |
| void | UpdateVoxel3DResource (Voxel3D *voxel, const std::vector< VertexColor > &vertices, const std::vector< IndexType > &indices) |
| void | DrawVoxel3D (Voxel3D *voxel) |
| void | BindGeometryDescriptorSet (Voxel3D *voxel) |
| void | CreateTerrain3DResource (Terrain3D *terrain) |
| void | DestroyTerrain3DResource (Terrain3D *terrain) |
| void | UpdateTerrain3DResource (Terrain3D *terrain, const std::vector< VertexColor > &vertices, const std::vector< IndexType > &indices) |
| void | DrawTerrain3D (Terrain3D *terrain) |
| void | BindGeometryDescriptorSet (Terrain3D *terrain) |
| void | CreateTileMap2DResource (TileMap2D *tileMap) |
| void | DestroyTileMap2DResource (TileMap2D *tileMap) |
| void | UpdateTileMap2DResource (TileMap2D *tileMap, const std::vector< VertexColor > &vertices, const std::vector< IndexType > &indices) |
| void | DrawTileMap2D (TileMap2D *tileMap) |
| void | BindGeometryDescriptorSet (TileMap2D *tileMap) |
| void | DestroyParticleCompResource (Particle3D *particleComp) |
| void | BindGeometryDescriptorSet (Particle3D *particleComp) |
| void | UpdateParticleCompVertexBuffer (Particle3D *particleComp, const std::vector< VertexParticle > &vertices) |
| void | DrawParticleComp (Particle3D *particleComp) |
| void | CreateQuadResource (Quad *quad) |
| void | DestroyQuadResource (Quad *quad) |
| void | UpdateQuadResourceVertexData (Quad *quad) |
| void | BindGeometryDescriptorSet (Quad *quad) |
| void | DrawQuad (Quad *quad) |
| void | CreateQuadBorderResource (Quad *quad) |
| void | DestroyQuadBorderResource (Quad *quad) |
| void | UpdateQuadBorderResourceVertexData (Quad *quad) |
| void | DrawQuadBorder (Quad *quad) |
| void | CreateTextResource (Text *text) |
| void | DestroyTextResource (Text *text) |
| void | CreateTextResourceVertexBuffer (Text *text) |
| void | DestroyTextResourceVertexBuffer (Text *text) |
| void | BindGeometryDescriptorSet (Text *text) |
| void | UpdateTextResourceVertexData (Text *text) |
| void | DrawTextWidget (Text *text) |
| void | CreatePolyResource (Poly *poly) |
| void | DestroyPolyResource (Poly *poly) |
| void | BindGeometryDescriptorSet (Poly *poly) |
| void | UpdatePolyResourceVertexData (Poly *poly) |
| void | DrawPoly (Poly *poly) |
| void | DrawStaticMesh (StaticMesh *mesh, Material *material, const glm::mat4 &transform, glm::vec4 color, uint32_t hitCheckId) |
Variables | |
| PFN_vkCmdBeginDebugUtilsLabelEXT | CmdBeginDebugUtilsLabelEXT |
| PFN_vkCmdEndDebugUtilsLabelEXT | CmdEndDebugUtilsLabelEXT |
| PFN_vkCmdInsertDebugUtilsLabelEXT | CmdInsertDebugUtilsLabelEXT |
| PFN_vkSetDebugUtilsObjectNameEXT | SetDebugUtilsObjectNameEXT |
| VkCommandBuffer BeginCommandBuffer | ( | ) |
| void BeginDebugLabel | ( | const char * | name, |
| glm::vec4 | color | ||
| ) |
| void BindForwardVertexType | ( | VertexType | vertType, |
| Material * | material, | ||
| bool | instanced = false |
||
| ) |
| void BindGeometryDescriptorSet | ( | Particle3D * | particleComp | ) |
| void BindGeometryDescriptorSet | ( | Poly * | poly | ) |
| void BindGeometryDescriptorSet | ( | Quad * | quad | ) |
| void BindGeometryDescriptorSet | ( | SkeletalMesh3D * | skeletalMeshComp | ) |
| void BindGeometryDescriptorSet | ( | StaticMesh3D * | staticMeshComp | ) |
| void BindGeometryDescriptorSet | ( | Terrain3D * | terrain | ) |
| void BindGeometryDescriptorSet | ( | Text * | text | ) |
| void BindGeometryDescriptorSet | ( | TextMesh3D * | textMeshComp | ) |
| void BindGeometryDescriptorSet | ( | TileMap2D * | tileMap | ) |
| void BindGeometryDescriptorSet | ( | Voxel3D * | voxel | ) |
| void BindMaterialDescriptorSet | ( | Material * | material | ) |
| void BindMaterialResource | ( | Material * | material | ) |
| void BindSkeletalMeshResource | ( | SkeletalMesh * | skeletalMesh | ) |
| void BindSkeletalMeshResourceIndices | ( | SkeletalMesh * | skeletalMesh | ) |
| void BindStaticMeshResource | ( | StaticMesh * | staticMesh | ) |
| VkCullModeFlags ConvertCullMode | ( | CullMode | cullMode | ) |
| VkFormat ConvertPixelFormat | ( | PixelFormat | pixelFormat, |
| bool | srgb | ||
| ) |
| void CopyBuffer | ( | VkBuffer | srcBuffer, |
| VkBuffer | dstBuffer, | ||
| VkDeviceSize | size | ||
| ) |
| void CopyBufferToImage | ( | VkBuffer | buffer, |
| VkImage | image, | ||
| uint32_t | width, | ||
| uint32_t | height | ||
| ) |
| void CreateBuffer | ( | VkDeviceSize | size, |
| VkBufferUsageFlags | usage, | ||
| VkMemoryPropertyFlags | properties, | ||
| VkBuffer & | buffer, | ||
| VramAllocation & | bufferMemory | ||
| ) |
| void CreateMaterialResource | ( | Material * | material | ) |
| void CreatePolyResource | ( | Poly * | poly | ) |
| void CreateQuadBorderResource | ( | Quad * | quad | ) |
| void CreateQuadResource | ( | Quad * | quad | ) |
| void CreateSkeletalMeshResource | ( | SkeletalMesh * | skeletalMesh, |
| uint32_t | numVertices, | ||
| VertexSkinned * | vertices, | ||
| uint32_t | numIndices, | ||
| IndexType * | indices | ||
| ) |
| void CreateStaticMeshResource | ( | StaticMesh * | staticMesh, |
| bool | hasColor, | ||
| uint32_t | numVertices, | ||
| void * | vertices, | ||
| uint32_t | numIndices, | ||
| IndexType * | indices | ||
| ) |
| void CreateTerrain3DResource | ( | Terrain3D * | terrain | ) |
| void CreateTextResource | ( | Text * | text | ) |
| void CreateTextResourceVertexBuffer | ( | Text * | text | ) |
| void CreateTextureResource | ( | Texture * | texture, |
| uint8_t * | pixels | ||
| ) |
| void CreateTileMap2DResource | ( | TileMap2D * | tileMap | ) |
| void CreateVoxel3DResource | ( | Voxel3D * | voxel | ) |
| void DestroyMaterialResource | ( | Material * | material | ) |
| void DestroyParticleCompResource | ( | Particle3D * | particleComp | ) |
| void DestroyPolyResource | ( | Poly * | poly | ) |
| void DestroyQuadBorderResource | ( | Quad * | quad | ) |
| void DestroyQuadResource | ( | Quad * | quad | ) |
| void DestroySkeletalMeshCompResource | ( | SkeletalMesh3D * | skeletalMeshComp | ) |
| void DestroySkeletalMeshResource | ( | SkeletalMesh * | skeletalMesh | ) |
| void DestroyStaticMeshCompResource | ( | StaticMesh3D * | staticMeshComp | ) |
| void DestroyStaticMeshResource | ( | StaticMesh * | staticMesh | ) |
| void DestroyTerrain3DResource | ( | Terrain3D * | terrain | ) |
| void DestroyTextMeshCompResource | ( | TextMesh3D * | textMeshComp | ) |
| void DestroyTextResource | ( | Text * | text | ) |
| void DestroyTextResourceVertexBuffer | ( | Text * | text | ) |
| void DestroyTextureResource | ( | Texture * | texture | ) |
| void DestroyTileMap2DResource | ( | TileMap2D * | tileMap | ) |
| void DestroyVoxel3DResource | ( | Voxel3D * | voxel | ) |
| void DeviceWaitIdle | ( | ) |
| void DrawInstancedMeshComp | ( | InstancedMesh3D * | instancedMeshComp | ) |
| void DrawParticleComp | ( | Particle3D * | particleComp | ) |
| void DrawPoly | ( | Poly * | poly | ) |
| void DrawQuad | ( | Quad * | quad | ) |
| void DrawQuadBorder | ( | Quad * | quad | ) |
| void DrawShadowMeshComp | ( | ShadowMesh3D * | shadowMeshComp | ) |
| void DrawSkeletalMeshComp | ( | SkeletalMesh3D * | skeletalMeshComp | ) |
| void DrawStaticMesh | ( | StaticMesh * | mesh, |
| Material * | material, | ||
| const glm::mat4 & | transform, | ||
| glm::vec4 | color, | ||
| uint32_t | hitCheckId | ||
| ) |
| void DrawStaticMeshComp | ( | StaticMesh3D * | staticMeshComp, |
| StaticMesh * | meshOverride | ||
| ) |
| void DrawTerrain3D | ( | Terrain3D * | terrain | ) |
| void DrawTextMeshComp | ( | TextMesh3D * | textMeshComp | ) |
| void DrawTextWidget | ( | Text * | text | ) |
| void DrawTileMap2D | ( | TileMap2D * | tileMap | ) |
| void DrawVoxel3D | ( | Voxel3D * | voxel | ) |
| void EndCommandBuffer | ( | VkCommandBuffer | commandBuffer | ) |
| void EndDebugLabel | ( | ) |
| uint32_t FindMemoryType | ( | uint32_t | typeFilter, |
| VkMemoryPropertyFlags | properties | ||
| ) |
| void GatherGeometryLightUniformData | ( | GeometryData & | outData, |
| Primitive3D * | primitive, | ||
| Material * | material, | ||
| bool | isStaticMesh | ||
| ) |
| VkPipelineColorBlendAttachmentState GetBasicBlendState | ( | BasicBlendState | basicBlendState | ) |
| VkCommandBuffer GetCommandBuffer | ( | ) |
| DestroyQueue * GetDestroyQueue | ( | ) |
| uint32_t GetFormatBlockSize | ( | VkFormat | format | ) |
| VkImageAspectFlags GetFormatImageAspect | ( | VkFormat | format | ) |
| uint32_t GetFormatPixelSize | ( | VkFormat | format | ) |
| uint32_t GetFrameIndex | ( | ) |
| uint32_t GetFrameNumber | ( | ) |
| std::vector< VkVertexInputAttributeDescription > GetVertexAttributeDescriptions | ( | VertexType | type | ) |
| std::vector< VkVertexInputBindingDescription > GetVertexBindingDescription | ( | VertexType | type | ) |
| VkDevice GetVulkanDevice | ( | ) |
| bool IsCpuSkinningRequired | ( | SkeletalMesh3D * | skeletalMeshComp | ) |
| bool IsFormatBlockCompressed | ( | VkFormat | format | ) |
| void ReallocateSkeletalMeshCompVertexBuffer | ( | SkeletalMesh3D * | skeletalMeshComp, |
| uint32_t | numVertices | ||
| ) |
| void SetDebugObjectName | ( | VkObjectType | objectType, |
| uint64_t | object, | ||
| const char * | name | ||
| ) |
| void TransitionImageLayout | ( | VkImage | image, |
| VkFormat | format, | ||
| VkImageLayout | oldLayout, | ||
| VkImageLayout | newLayout, | ||
| int32_t | mipLevels, | ||
| int32_t | layerCount, | ||
| VkCommandBuffer | commandBuffer | ||
| ) |
| void UpdateParticleCompVertexBuffer | ( | Particle3D * | particleComp, |
| const std::vector< VertexParticle > & | vertices | ||
| ) |
| void UpdatePolyResourceVertexData | ( | Poly * | poly | ) |
| void UpdateQuadBorderResourceVertexData | ( | Quad * | quad | ) |
| void UpdateQuadResourceVertexData | ( | Quad * | quad | ) |
| void UpdateSkeletalMeshCompVertexBuffer | ( | SkeletalMesh3D * | skeletalMeshComp, |
| const std::vector< Vertex > & | skinnedVertices | ||
| ) |
| void UpdateStaticMeshCompResourceColors | ( | StaticMesh3D * | staticMeshComp | ) |
| void UpdateTerrain3DResource | ( | Terrain3D * | terrain, |
| const std::vector< VertexColor > & | vertices, | ||
| const std::vector< IndexType > & | indices | ||
| ) |
| void UpdateTextMeshCompVertexBuffer | ( | TextMesh3D * | textMeshComp, |
| const std::vector< Vertex > & | vertices | ||
| ) |
| void UpdateTextResourceVertexData | ( | Text * | text | ) |
| void UpdateTileMap2DResource | ( | TileMap2D * | tileMap, |
| const std::vector< VertexColor > & | vertices, | ||
| const std::vector< IndexType > & | indices | ||
| ) |
| void UpdateVoxel3DResource | ( | Voxel3D * | voxel, |
| const std::vector< VertexColor > & | vertices, | ||
| const std::vector< IndexType > & | indices | ||
| ) |
| void WriteGeometryUniformData | ( | GeometryData & | outData, |
| World * | world, | ||
| Node3D * | comp, | ||
| const glm::mat4 & | transform | ||
| ) |
| void WriteMaterialCustomUniformData | ( | MaterialData & | outData, |
| Material * | material | ||
| ) |
| void WriteMaterialLiteUniformData | ( | MaterialData & | outData, |
| MaterialLite * | material | ||
| ) |
| UniformBlock WriteUniformBlock | ( | void * | data, |
| uint32_t | size | ||
| ) |
|
extern |
|
extern |
|
extern |
|
extern |