Lines Matching refs:sci

338    VkSamplerCreateInfo sci = {0};
341 sci.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
343 sci.flags |= VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT;
344 sci.unnormalizedCoordinates = !state->normalized_coords;
345 sci.magFilter = zink_filter(state->mag_img_filter);
346 if (sci.unnormalizedCoordinates)
347 sci.minFilter = sci.magFilter;
349 sci.minFilter = zink_filter(state->min_img_filter);
366 sci.pNext = &rci;
368 if (sci.unnormalizedCoordinates) {
369 sci.mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST;
371 sci.mipmapMode = sampler_mipmap_mode(state->min_mip_filter);
372 sci.minLod = state->min_lod;
373 sci.maxLod = state->max_lod;
375 sci.mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST;
376 sci.minLod = 0;
377 sci.maxLod = 0.25f;
380 if (!sci.unnormalizedCoordinates) {
381 sci.addressModeU = sampler_address_mode(state->wrap_s);
382 sci.addressModeV = sampler_address_mode(state->wrap_t);
383 sci.addressModeW = sampler_address_mode(state->wrap_r);
385 sci.addressModeU = sci.addressModeV = sci.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
388 sci.mipLodBias = CLAMP(state->lod_bias,
397 sci.compareOp = VK_COMPARE_OP_NEVER;
399 sci.compareOp = compare_op(state->compare_func);
400 sci.compareEnable = VK_TRUE;
405 sci.borderColor = get_border_color(&state->border_color, is_integer, need_custom);
406 if (sci.borderColor > VK_BORDER_COLOR_INT_OPAQUE_WHITE && need_custom) {
438 cbci.pNext = sci.pNext;
439 sci.pNext = &cbci;
443 sci.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK; // TODO with custom shader if we're super interested?
444 if (sci.unnormalizedCoordinates)
445 sci.addressModeU = sci.addressModeV = sci.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER;
449 sci.maxAnisotropy = state->max_anisotropy;
450 sci.anisotropyEnable = VK_TRUE;
457 VkResult result = VKSCR(CreateSampler)(screen->dev, &sci, NULL, &sampler->sampler);
464 sci.pNext = &cbci_clamped;
465 result = VKSCR(CreateSampler)(screen->dev, &sci, NULL, &sampler->sampler_clamped);