original_docstring: 2. Expects a sampler with unnormalized coordinates.
docstring: 2. Expects a sampler with unnormalized coordinates.
docstring_tokens: 2 . Expects a sampler with unnormalized coordinates .
code: def expect(self):
          """2. Expects a sampler with unnormalized coordinates."""
  
          architecture = self.architecture
          device_properties = require(
              self.nth_call_of("vkGetPhysicalDeviceProperties", 1))
          create_device = self.next_call_of("vkCreateDevice")
          if create_device[0] is None:
              raise GapidUnsupportedException(
                  "physical device feature: samplerAnisotropy not supported")
  
          create_sampler, device, sampler = check_create_sampler(self)
          info = get_sampler_create_info(create_sampler, architecture)
          require_equal(info.sType, VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO)
          require_equal(info.pNext, 0)
          require_equal(info.flags, 0)
          require_equal(info.magFilter, VK_FILTER_NEAREST)
          require_equal(info.minFilter, VK_FILTER_NEAREST)
          require_equal(info.mipmapMode, VK_SAMPLER_MIPMAP_MODE_NEAREST)
          require_equal(info.addressModeU,
                        VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER)
          require_equal(info.addressModeV,
                        VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER)
          require_equal(info.addressModeW,
                        VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER)
          require_equal(info.mipLodBias, .0)
          require_false(info.anisotropyEnable)
          require_equal(info.maxAnisotropy, .0)
          require_false(info.compareEnable)
          require_equal(info.compareOp, VK_COMPARE_OP_LESS)
          require_equal(info.minLod, 0.)
          require_equal(info.maxLod, 0.)
          require_equal(info.borderColor, VK_BORDER_COLOR_INT_OPAQUE_WHITE)
          require_true(info.unnormalizedCoordinates)
  
          check_destroy_sampler(self, device, sampler)
code_tokens: def expect ( self ) : architecture = self . architecture device_properties = require ( self . nth_call_of ( "vkGetPhysicalDeviceProperties" , 1 ) ) create_device = self . next_call_of ( "vkCreateDevice" ) if create_device [ 0 ] is None : raise GapidUnsupportedException ( "physical device feature: samplerAnisotropy not supported" ) create_sampler , device , sampler = check_create_sampler ( self ) info = get_sampler_create_info ( create_sampler , architecture ) require_equal ( info . sType , VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO ) require_equal ( info . pNext , 0 ) require_equal ( info . flags , 0 ) require_equal ( info . magFilter , VK_FILTER_NEAREST ) require_equal ( info . minFilter , VK_FILTER_NEAREST ) require_equal ( info . mipmapMode , VK_SAMPLER_MIPMAP_MODE_NEAREST ) require_equal ( info . addressModeU , VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER ) require_equal ( info . addressModeV , VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER ) require_equal ( info . addressModeW , VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER ) require_equal ( info . mipLodBias , .0 ) require_false ( info . anisotropyEnable ) require_equal ( info . maxAnisotropy , .0 ) require_false ( info . compareEnable ) require_equal ( info . compareOp , VK_COMPARE_OP_LESS ) require_equal ( info . minLod , 0. ) require_equal ( info . maxLod , 0. ) require_equal ( info . borderColor , VK_BORDER_COLOR_INT_OPAQUE_WHITE ) require_true ( info . unnormalizedCoordinates ) check_destroy_sampler ( self , device , sampler )
short_docstring: 2.
short_docstring_tokens: 2 .
comment: """2. Expects a sampler with unnormalized coordinates."""