mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 06:30:44 +01:00
![Ivan Avdeev](/assets/img/avatar_default.png)
Set blending modes according to existing GL renderer. Cull back faces. Implement alpha test. Add TODO.md file
29 lines
749 B
C
29 lines
749 B
C
#include "vk_core.h"
|
|
|
|
typedef struct {
|
|
VkPipelineLayout layout;
|
|
VkVertexInputAttributeDescription *attribs;
|
|
uint32_t num_attribs;
|
|
|
|
VkPipelineShaderStageCreateInfo *stages;
|
|
uint32_t num_stages;
|
|
|
|
uint32_t vertex_stride;
|
|
|
|
VkBool32 depthTestEnable;
|
|
VkBool32 depthWriteEnable;
|
|
VkCompareOp depthCompareOp;
|
|
|
|
VkBool32 blendEnable;
|
|
VkBlendFactor srcColorBlendFactor;
|
|
VkBlendFactor dstColorBlendFactor;
|
|
VkBlendOp colorBlendOp;
|
|
VkBlendFactor srcAlphaBlendFactor;
|
|
VkBlendFactor dstAlphaBlendFactor;
|
|
VkBlendOp alphaBlendOp;
|
|
|
|
VkCullModeFlags cullMode;
|
|
} vk_pipeline_create_info_t;
|
|
|
|
VkPipeline createPipeline(const vk_pipeline_create_info_t *ci);
|