xash3d-fwgs/ref_vk/vk_pipeline.h
Ivan Avdeev b11501e4ef improve blending; add alpha test
Set blending modes according to existing GL renderer.
Cull back faces.
Implement alpha test.

Add TODO.md file
2021-02-06 11:07:00 -08:00

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);