finished it
This commit is contained in:
@@ -9,13 +9,20 @@ BEGIN_BUILD_PIPELINE_LIBRARY(VertexDescription)
|
||||
library.flags = VK_GRAPHICS_PIPELINE_LIBRARY_VERTEX_INPUT_INTERFACE_BIT_EXT;
|
||||
|
||||
VkPipelineVertexInputStateCreateInfo vertexInput = {};
|
||||
VkPipelineInputAssemblyStateCreateInfo inputAssembly = {};
|
||||
|
||||
vertexInput.sType = VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
|
||||
vertexInput.vertexBindingDescriptionCount = layouts.GetSize();
|
||||
vertexInput.pVertexBindingDescriptions = layouts.GetData();
|
||||
vertexInput.vertexAttributeDescriptionCount = attributes.GetSize();
|
||||
vertexInput.pVertexAttributeDescriptions = attributes.GetData();
|
||||
|
||||
inputAssembly.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
|
||||
inputAssembly.primitiveRestartEnable = VK_FALSE;
|
||||
inputAssembly.topology = m_eTopology;
|
||||
|
||||
pipeline.pVertexInputState = &vertexInput;
|
||||
pipeline.pInputAssemblyState = &inputAssembly;
|
||||
END_BUILD_PIPELINE_LIBRARY()
|
||||
|
||||
void CVkVertexDescriptionPipelineLibrary::AddLayout( int iIndex, int iStride )
|
||||
@@ -39,5 +46,5 @@ void CVkVertexDescriptionPipelineLibrary::AddAttribute( int iBufferIndex, int iL
|
||||
|
||||
void CVkVertexDescriptionPipelineLibrary::SetTopology( ETopologyMode eTopology )
|
||||
{
|
||||
|
||||
m_eTopology = VulkanGetTopology(eTopology);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user