<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I am in the process of adding in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/Pixel-shader-parameters-are-not-respecting-sample-interpolation/m-p/1176018#M87858</link>
    <description>&lt;P&gt;I am in the process of adding support for `VK_EXT_sample_locations` to my application. I added a populated `VkPipelineSampleLocationsStateCreateInfoEXT` struct to the pipelines which were giving me problems (for unrelated reasons). Once I tested it on my Intel laptop, suddenly, `sample` interpolation works on the pipelines in question?? I'm using the same sample locations as the default MSAA 2X ({0.75, 0.75}, {0.25, 0.25}).&lt;/P&gt;&lt;P&gt;Besides the process of adding the&amp;nbsp;VK_EXT_sample_locations extension to my device creation process, here's some code of what I changed during pipeline creation:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;    VkPipelineSampleLocationsStateCreateInfoEXT
        m_vk_pipeline_sample_locations_ext = { 
        VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT };
    m_vk_pipeline_sample_locations_ext.sampleLocationsEnable = VK_TRUE;

    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo = {
        VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationsPerPixel = VK_SAMPLE_COUNT_2_BIT;
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationGridSize = {1,1};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationsCount = 2;
    
    // This is fake code, I don't really allocate this on the stack
    VkSampleLocationEXT sample_locs[] = { {0.75, 0.75}, {0.25, 0.25}};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
         .pSampleLocations = &amp;amp;sample_locs[0]; 

    m_vk_pipeline_multisample.pNext = &amp;amp;m_vk_pipeline_sample_locations_ext;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2020 01:44:30 GMT</pubDate>
    <dc:creator>Rob_S</dc:creator>
    <dc:date>2020-05-02T01:44:30Z</dc:date>
    <item>
      <title>Pixel shader parameters are not respecting 'sample' interpolation modifier in Vulkan</title>
      <link>https://community.intel.com/t5/Graphics/Pixel-shader-parameters-are-not-respecting-sample-interpolation/m-p/1176017#M87857</link>
      <description>&lt;P&gt;System Setup Information:&lt;BR /&gt;-----------------------------------------&lt;/P&gt;&lt;P&gt;System Used: Lenovo Thinkpad X1 Yoga 2nd Gen&lt;BR /&gt;CPU SKU: i7&lt;BR /&gt;GPU SKU: HD 620&lt;BR /&gt;Processor Line: U-Series&lt;BR /&gt;System BIOS Version: LENOVO N1NET33W (1.20)&lt;BR /&gt;CMOS settings: ???&lt;BR /&gt;Graphics Driver Version: 24.20.100.6286&lt;BR /&gt;GOP/VBIOS Version:&amp;nbsp;&lt;BR /&gt;Operating System: Windows 10 x64&lt;BR /&gt;OS Version: 10.0.18362&lt;BR /&gt;API: Vulkan&lt;BR /&gt;Occurs on non-Intel GPUs?: No&lt;/P&gt;&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;-------------------------------&lt;BR /&gt;1. Set up 2x MSAA image + renderpass + framebuffer + graphics pipeline&lt;BR /&gt;2. Enable sample location shading during VkDevice creation&lt;BR /&gt;3. Use a pixel shader that has parameters (non-position inputs) that are interpolated with the `sample` modifier&lt;BR /&gt;4. Observe that the interpolation is still happening at the Pixel Center&lt;BR /&gt;5. Do not profit&lt;/P&gt;&lt;P&gt;Vulkan SDK installed:&amp;nbsp;1.1.130&lt;/P&gt;&lt;P&gt;Vulkan Instance version:&amp;nbsp;1.1.126&lt;/P&gt;&lt;P&gt;VkPhysicalDeviceProperties.apiVersion =&amp;nbsp;1.1.82&lt;/P&gt;&lt;P&gt;The position in the shader is correct, since I can see the geometry edges are what I expect them to be. Just the parameter interpolation is busted.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 23:07:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Pixel-shader-parameters-are-not-respecting-sample-interpolation/m-p/1176017#M87857</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2020-04-30T23:07:19Z</dc:date>
    </item>
    <item>
      <title>I am in the process of adding</title>
      <link>https://community.intel.com/t5/Graphics/Pixel-shader-parameters-are-not-respecting-sample-interpolation/m-p/1176018#M87858</link>
      <description>&lt;P&gt;I am in the process of adding support for `VK_EXT_sample_locations` to my application. I added a populated `VkPipelineSampleLocationsStateCreateInfoEXT` struct to the pipelines which were giving me problems (for unrelated reasons). Once I tested it on my Intel laptop, suddenly, `sample` interpolation works on the pipelines in question?? I'm using the same sample locations as the default MSAA 2X ({0.75, 0.75}, {0.25, 0.25}).&lt;/P&gt;&lt;P&gt;Besides the process of adding the&amp;nbsp;VK_EXT_sample_locations extension to my device creation process, here's some code of what I changed during pipeline creation:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;    VkPipelineSampleLocationsStateCreateInfoEXT
        m_vk_pipeline_sample_locations_ext = { 
        VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT };
    m_vk_pipeline_sample_locations_ext.sampleLocationsEnable = VK_TRUE;

    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo = {
        VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationsPerPixel = VK_SAMPLE_COUNT_2_BIT;
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationGridSize = {1,1};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
        .sampleLocationsCount = 2;
    
    // This is fake code, I don't really allocate this on the stack
    VkSampleLocationEXT sample_locs[] = { {0.75, 0.75}, {0.25, 0.25}};
    m_vk_pipeline_sample_locations_ext.sampleLocationsInfo
         .pSampleLocations = &amp;amp;sample_locs[0]; 

    m_vk_pipeline_multisample.pNext = &amp;amp;m_vk_pipeline_sample_locations_ext;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 01:44:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/Pixel-shader-parameters-are-not-respecting-sample-interpolation/m-p/1176018#M87858</guid>
      <dc:creator>Rob_S</dc:creator>
      <dc:date>2020-05-02T01:44:30Z</dc:date>
    </item>
  </channel>
</rss>

