VkPipelineRasterizationLineStateCreateInfoEXT initLineRasterizationStateCreateInfo (void) const;
virtual
- const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void) const;
+ const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void);
virtual
const VkPipelineColorBlendStateCreateInfo* getColorBlendStateCreateInfo (void) const;
, m_resultBufferSize (renderSize * renderSize * m_textureFormat.getPixelSize())
, m_additionalRenderSize(additionalRenderSize)
, m_additionalResultBufferSize(additionalRenderSize * additionalRenderSize * m_textureFormat.getPixelSize())
- , m_lineRasterizationStateInfo (initLineRasterizationStateCreateInfo())
+ , m_lineRasterizationStateInfo ()
{
const DeviceInterface& vkd = m_context.getDeviceInterface();
const VkDevice vkDevice = m_context.getDevice();
DescriptorPoolBuilder descriptorPoolBuilder;
DescriptorSetLayoutBuilder descriptorSetLayoutBuilder;
- deMemset(&m_lineRasterizationStateInfo, 0, sizeof(m_lineRasterizationStateInfo));
-
// Command Pool
m_commandPool = createCommandPool(vkd, vkDevice, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex);
return lineRasterizationStateInfo;
}
-const VkPipelineRasterizationLineStateCreateInfoEXT* BaseRenderingTestInstance::getLineRasterizationStateCreateInfo (void) const
+const VkPipelineRasterizationLineStateCreateInfoEXT* BaseRenderingTestInstance::getLineRasterizationStateCreateInfo (void)
{
+ if (m_lineRasterizationStateInfo.sType != VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT)
+ m_lineRasterizationStateInfo = initLineRasterizationStateCreateInfo();
+
return &m_lineRasterizationStateInfo;
}
VkPipelineRasterizationLineStateCreateInfoEXT initLineRasterizationStateCreateInfo (void) const;
virtual
- const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void) const;
+ const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void);
protected:
int getIteration (void) const { return m_iteration; }
{
DE_ASSERT(m_primitiveWideness < PRIMITIVEWIDENESS_LAST);
- m_lineRasterizationStateInfo = initLineRasterizationStateCreateInfo();
-
if (m_lineRasterizationMode != VK_LINE_RASTERIZATION_MODE_EXT_LAST)
{
if (context.isDeviceFunctionalitySupported("VK_EXT_line_rasterization"))
return lineRasterizationStateInfo;
}
-const VkPipelineRasterizationLineStateCreateInfoEXT* BaseLineTestInstance::getLineRasterizationStateCreateInfo (void) const
+const VkPipelineRasterizationLineStateCreateInfoEXT* BaseLineTestInstance::getLineRasterizationStateCreateInfo (void)
{
if (m_lineRasterizationMode == VK_LINE_RASTERIZATION_MODE_EXT_LAST)
return DE_NULL;
+ if (m_lineRasterizationStateInfo.sType != VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT)
+ m_lineRasterizationStateInfo = initLineRasterizationStateCreateInfo();
+
return &m_lineRasterizationStateInfo;
}
const VkPipelineRasterizationStateCreateInfo* getRasterizationStateCreateInfo (void) const;
protected:
- virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void) const;
+ virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void);
virtual bool compareAndVerify (std::vector<TriangleSceneSpec::SceneTriangle>& triangles,
tcu::Surface& resultImage,
return &m_rasterizationStateCreateInfo[getIteration()];
}
-const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativeTraingleTestInstance::getLineRasterizationStateCreateInfo (void) const
+const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativeTraingleTestInstance::getLineRasterizationStateCreateInfo (void)
{
return DE_NULL;
}
const VkPipelineRasterizationStateCreateInfo* getRasterizationStateCreateInfo (void) const;
protected:
- virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void) const;
+ virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void);
virtual bool compareAndVerify (std::vector<LineSceneSpec::SceneLine>& lines,
tcu::Surface& resultImage,
return &m_rasterizationStateCreateInfo[getIteration()];
}
-const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativeLineTestInstance::getLineRasterizationStateCreateInfo (void) const
+const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativeLineTestInstance::getLineRasterizationStateCreateInfo (void)
{
return DE_NULL;
}
const VkPipelineRasterizationStateCreateInfo* getRasterizationStateCreateInfo (void) const;
protected:
- virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void) const;
+ virtual const VkPipelineRasterizationLineStateCreateInfoEXT* getLineRasterizationStateCreateInfo (void);
virtual bool compareAndVerify (std::vector<PointSceneSpec::ScenePoint>& points,
tcu::Surface& resultImage,
return &m_rasterizationStateCreateInfo[getIteration()];
}
-const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativePointTestInstance::getLineRasterizationStateCreateInfo (void) const
+const VkPipelineRasterizationLineStateCreateInfoEXT* ConservativePointTestInstance::getLineRasterizationStateCreateInfo (void)
{
return DE_NULL;
}