mirror of
https://github.com/Rust-GPU/rust-gpu.git
synced 2026-06-07 01:59:51 +09:00
852 lines
337 KiB
HTML
852 lines
337 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An opaque image type. Corresponds to `OpTypeImage`."><title>Image in spirv_std::image - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="spirv_std" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (02c7f9bec 2026-04-10)" data-channel="nightly" data-search-js="search-b5634cc7.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Image</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../spirv_std/index.html">spirv_<wbr>std</a><span class="version">0.10.0-alpha.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Image</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.fetch" title="fetch">fetch</a></li><li><a href="#method.fetch_with_lod" title="fetch_with_lod">fetch_with_lod</a></li><li><a href="#method.gather" title="gather">gather</a></li><li><a href="#method.query_levels" title="query_levels">query_levels</a></li><li><a href="#method.query_lod" title="query_lod">query_lod</a></li><li><a href="#method.query_samples" title="query_samples">query_samples</a></li><li><a href="#method.query_size" title="query_size">query_size</a></li><li><a href="#method.query_size_lod" title="query_size_lod">query_size_lod</a></li><li><a href="#method.read" title="read">read</a></li><li><a href="#method.read-1" title="read">read</a></li><li><a href="#method.read_subpass" title="read_subpass">read_subpass</a></li><li><a href="#method.sample" title="sample">sample</a></li><li><a href="#method.sample_bias" title="sample_bias">sample_bias</a></li><li><a href="#method.sample_by_gradient" title="sample_by_gradient">sample_by_gradient</a></li><li><a href="#method.sample_by_lod" title="sample_by_lod">sample_by_lod</a></li><li><a href="#method.sample_depth_reference" title="sample_depth_reference">sample_depth_reference</a></li><li><a href="#method.sample_depth_reference_by_gradient" title="sample_depth_reference_by_gradient">sample_depth_reference_by_gradient</a></li><li><a href="#method.sample_depth_reference_by_lod" title="sample_depth_reference_by_lod">sample_depth_reference_by_lod</a></li><li><a href="#method.sample_depth_reference_with_project_coordinate" title="sample_depth_reference_with_project_coordinate">sample_depth_reference_with_project_coordinate</a></li><li><a href="#method.sample_depth_reference_with_project_coordinate_by_gradient" title="sample_depth_reference_with_project_coordinate_by_gradient">sample_depth_reference_with_project_coordinate_by_gradient</a></li><li><a href="#method.sample_depth_reference_with_project_coordinate_by_lod" title="sample_depth_reference_with_project_coordinate_by_lod">sample_depth_reference_with_project_coordinate_by_lod</a></li><li><a href="#method.sample_with_project_coordinate" title="sample_with_project_coordinate">sample_with_project_coordinate</a></li><li><a href="#method.sample_with_project_coordinate_by_gradient" title="sample_with_project_coordinate_by_gradient">sample_with_project_coordinate_by_gradient</a></li><li><a href="#method.sample_with_project_coordinate_by_lod" title="sample_with_project_coordinate_by_lod">sample_with_project_coordinate_by_lod</a></li><li><a href="#method.write" title="write">write</a></li><li><a href="#method.write-1" title="write">write</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Clone">Clone</a></li><li><a href="#impl-Copy-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Copy">Copy</a></li><li><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasGather">HasGather</a></li><li><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasGather">HasGather</a></li><li><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasGather">HasGather</a></li><li><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQueryLevels">HasQueryLevels</a></li><li><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQueryLevels">HasQueryLevels</a></li><li><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQueryLevels">HasQueryLevels</a></li><li><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQueryLevels">HasQueryLevels</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Buffer+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySize">HasQuerySize</a></li><li><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySizeLod">HasQuerySizeLod</a></li><li><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySizeLod">HasQuerySizeLod</a></li><li><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySizeLod">HasQuerySizeLod</a></li><li><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="HasQuerySizeLod">HasQuerySizeLod</a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, NoneTy, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, NoneTy, SomeTy<(G, G)>, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, NoneTy, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<NoneTy, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, NoneTy, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, NoneTy, SomeTy<(G, G)>, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, NoneTy, SomeTy<S>>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, NoneTy>></a></li><li><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>>">ImageWithMethods<SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, SampleParams<SomeTy<B>, SomeTy<L>, SomeTy<(G, G)>, SomeTy<S>>></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnsafeUnpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="UnsafeUnpin">UnsafeUnpin</a></li><li><a href="#impl-UnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In spirv_<wbr>std::<wbr>image</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">spirv_std</a>::<wbr><a href="index.html">image</a></div><h1>Struct <span class="struct">Image</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/spirv_std/image.rs.html#100-114">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Image<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An opaque image type. Corresponds to <code>OpTypeImage</code>.</p>
|
||
<p>You likely want to write this type using the <a href="../macro.Image.html" title="macro spirv_std::Image"><code>crate::Image!</code></a> macro helper, as the generic
|
||
arguments here can get extremely verbose.</p>
|
||
<p>See SPIR-V <code>OpTypeImage</code> specification for the meaning of integer parameters.</p>
|
||
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::Yes+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#116-166">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::Yes+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, { _ }, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fetch" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#137">Source</a><h4 class="code-header">pub fn <a href="#method.fetch" class="fn">fetch</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Fetch a single texel with a sampler set at compile time</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#153">Source</a><h4 class="code-header">pub fn <a href="#method.fetch_with_lod" class="fn">fetch_with_lod</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Fetch a single texel at a mipmap <code>lod</code> with a sampler set at compile time</p>
|
||
<p><code>lod</code> is also known as <code>level</code> in WGSL’s <code>textureLoad</code></p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#168-497">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#190">Source</a><h4 class="code-header">pub fn <a href="#method.gather" class="fn">gather</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#228">Source</a><h4 class="code-header">pub fn <a href="#method.sample" class="fn">sample</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_bias" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#263">Source</a><h4 class="code-header">pub fn <a href="#method.sample_bias" class="fn">sample_bias</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
bias: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>, after adding the input bias to the
|
||
implicit level of detail.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_by_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#300">Source</a><h4 class="code-header">pub fn <a href="#method.sample_by_lod" class="fn">sample_by_lod</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Fetch a single texel with a sampler set at compile time
|
||
Sample the image at a coordinate by a lod</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_by_gradient" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#337">Source</a><h4 class="code-header">pub fn <a href="#method.sample_by_gradient" class="fn">sample_by_gradient</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
gradient_dx: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
gradient_dy: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#377">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference" class="fn">sample_depth_reference</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_by_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#414">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference_by_lod" class="fn">sample_depth_reference_by_lod</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference based on an explicit lod</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_by_gradient" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#454">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference_by_gradient" class="fn">sample_depth_reference_by_gradient</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
gradient_dx: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
gradient_dy: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference based on a gradient formed by (dx, dy).
|
||
Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+%7B+Arrayed::False+as+u32+%7D,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#499-749">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+%7B+Arrayed::False+as+u32+%7D,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, { _ }, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#519">Source</a><h4 class="code-header">pub fn <a href="#method.sample_with_project_coordinate" class="fn">sample_with_project_coordinate</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_by_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#552">Source</a><h4 class="code-header">pub fn <a href="#method.sample_with_project_coordinate_by_lod" class="fn">sample_with_project_coordinate_by_lod</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate by a lod</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_by_gradient" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#589">Source</a><h4 class="code-header">pub fn <a href="#method.sample_with_project_coordinate_by_gradient" class="fn">sample_with_project_coordinate_by_gradient</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
gradient_dx: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
gradient_dy: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate based on a gradient formed by (dx, dy). Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#629">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference_with_project_coordinate" class="fn">sample_depth_reference_with_project_coordinate</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_by_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#666">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference_with_project_coordinate_by_lod" class="fn">sample_depth_reference_with_project_coordinate_by_lod</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate based on an explicit lod</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_by_gradient" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#706">Source</a><h4 class="code-header">pub fn <a href="#method.sample_depth_reference_with_project_coordinate_by_gradient" class="fn">sample_depth_reference_with_project_coordinate_by_gradient</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
gradient_dx: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
gradient_dy: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate based on a gradient formed by (dx, dy).
|
||
Specifically, ([du/dx, dv/dx], [du/dy, dv/dy])</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#751-825">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, { _ }, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.read" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#772">Source</a><h4 class="code-header">pub fn <a href="#method.read" class="fn">read</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Read a texel from an image without a sampler.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.write" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#802">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.write" class="fn">write</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
texels: SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a>,
|
||
)<div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Write a texel to an image without a sampler.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#827-901">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, { _ }, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.read-1" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#848">Source</a><h4 class="code-header">pub fn <a href="#method.read-1" class="fn">read</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Read a texel from an image without a sampler.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.write-1" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#878">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.write-1" class="fn">write</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
texels: SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a>,
|
||
)<div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Write a texel to an image without a sampler.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+%7B+Dimensionality::SubpassData+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#903-952">Source</a><a href="#impl-Image%3CSampledType,+%7B+Dimensionality::SubpassData+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, { _ }, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.read_subpass" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#924">Source</a><h4 class="code-header">pub fn <a href="#method.read_subpass" class="fn">read_subpass</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinateSubpassData.html" title="trait spirv_std::image::ImageCoordinateSubpassData">ImageCoordinateSubpassData</a><I, ARRAYED>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class="docblock"><p>Read a texel from subpass input attachment.
|
||
Note: Vulkan only allows the read if the first two components of the coordinate are zero.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#954-1053">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.query_levels" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#966">Source</a><h4 class="code-header">pub fn <a href="#method.query_levels" class="fn">query_levels</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a>,</div></h4></section></summary><div class="docblock"><p>Query the number of mipmap levels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.query_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#992">Source</a><h4 class="code-header">pub fn <a href="#method.query_lod" class="fn">query_lod</a>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, DIM, { _ }>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec2" title="type spirv_std::image::SampleType::Vec2">Vec2</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a>,</div></h4></section></summary><div class="docblock"><p>Query the mipmap level and the level of detail for a hypothetical sampling of Image at
|
||
Coordinate using an implicit level of detail. The first component of the result contains
|
||
the mipmap array layer. The second component of the result contains the implicit level of
|
||
detail relative to the base level.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.query_size" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1032">Source</a><h4 class="code-header">pub fn <a href="#method.query_size" class="fn">query_size</a><Size: <a class="trait" href="trait.ImageSizeQuery.html" title="trait spirv_std::image::ImageSizeQuery">ImageSizeQuery</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, DIM, ARRAYED> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>>(
|
||
&self,
|
||
) -> Size<div class="where">where
|
||
Self: <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a>,</div></h4></section></summary><div class="docblock"><p>Query the dimensions of Image, with no level of detail.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E-1" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1055-1101">Source</a><a href="#impl-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E-1" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.query_size_lod" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1076">Source</a><h4 class="code-header">pub fn <a href="#method.query_size_lod" class="fn">query_size_lod</a><Size: <a class="trait" href="trait.ImageSizeQuery.html" title="trait spirv_std::image::ImageSizeQuery">ImageSizeQuery</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, DIM, ARRAYED> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>>(
|
||
&self,
|
||
lod: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> Size<div class="where">where
|
||
Self: <a class="trait" href="trait.HasQuerySizeLod.html" title="trait spirv_std::image::HasQuerySizeLod">HasQuerySizeLod</a>,</div></h4></section></summary><div class="docblock"><p>Query the dimensions of Image at a specific level of detail.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1103-1141">Source</a><a href="#impl-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.query_samples" class="method"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1123">Source</a><h4 class="code-header">pub fn <a href="#method.query_samples" class="fn">query_samples</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class="docblock"><p>Query the number of samples available per texel fetch in a multisample image.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#97">Source</a><a href="#impl-Clone-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#97">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(
|
||
&self,
|
||
) -> <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-7" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-7" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, G> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-3" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-3" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, G, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-11" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-11" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, L> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-1" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-1" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, L, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-9" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-9" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, L, G> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-5" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-5" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CNoneTy,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, L, G, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-13" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-13" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-8" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-8" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, G> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-4" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-4" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+NoneTy,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, G, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-12" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-12" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, L> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-2" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-2" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+NoneTy,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, L, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-10" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-10" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+NoneTy%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, L, G> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-6" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-6" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.NoneTy.html" title="struct spirv_std::image::sample_with::NoneTy">NoneTy</a>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1410-1644">Source</a><a href="#impl-ImageWithMethods%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS,+SampleParams%3CSomeTy%3CB%3E,+SomeTy%3CL%3E,+SomeTy%3C(G,+G)%3E,+SomeTy%3CS%3E%3E%3E-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, B, L, G, S> <a class="trait" href="trait.ImageWithMethods.html" title="trait spirv_std::image::ImageWithMethods">ImageWithMethods</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS, <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.gather_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1461">Source</a><a href="#method.gather_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.gather_with" class="fn">gather_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
component: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.Vec4" title="type spirv_std::image::SampleType::Vec4">Vec4</a><div class="where">where
|
||
Self: <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a>,
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Gathers the requested component from four texels.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1500">Source</a><a href="#method.sample_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with" class="fn">sample_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coord: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample texels at <code>coord</code> from the image using <code>sampler</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1535">Source</a><a href="#method.sample_depth_reference_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with" class="fn">sample_depth_reference_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, ARRAYED>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_with_project_coordinate_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1573">Source</a><a href="#method.sample_with_project_coordinate_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_with_project_coordinate_with" class="fn">sample_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image with a project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.sample_depth_reference_with_project_coordinate_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1608">Source</a><a href="#method.sample_depth_reference_with_project_coordinate_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.sample_depth_reference_with_project_coordinate_with" class="fn">sample_depth_reference_with_project_coordinate_with</a><F>(
|
||
&self,
|
||
sampler: <a class="struct" href="../struct.Sampler.html" title="struct spirv_std::Sampler">Sampler</a>,
|
||
project_coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><F, DIM, { _ }>,
|
||
depth_reference: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType<div class="where">where
|
||
F: <a class="trait" href="../trait.Float.html" title="trait spirv_std::Float">Float</a>,</div></h4></section></summary><div class="docblock"><p>Sample the image’s depth reference with the project coordinate</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_with-14" class="method trait-impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1432">Source</a><a href="#method.fetch_with-14" class="anchor">§</a><h4 class="code-header">fn <a href="trait.ImageWithMethods.html#tymethod.fetch_with" class="fn">fetch_with</a><I>(
|
||
&self,
|
||
coordinate: impl <a class="trait" href="trait.ImageCoordinate.html" title="trait spirv_std::image::ImageCoordinate">ImageCoordinate</a><I, DIM, ARRAYED>,
|
||
params: <a class="struct" href="sample_with/struct.SampleParams.html" title="struct spirv_std::image::sample_with::SampleParams">SampleParams</a><<a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><B>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><L>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(G, G)</a>>, <a class="struct" href="sample_with/struct.SomeTy.html" title="struct spirv_std::image::sample_with::SomeTy">SomeTy</a><S>>,
|
||
) -> SampledType::<a class="associatedtype" href="trait.SampleType.html#associatedtype.SampleResult" title="type spirv_std::image::SampleType::SampleResult">SampleResult</a><div class="where">where
|
||
I: <a class="trait" href="../trait.Integer.html" title="trait spirv_std::Integer">Integer</a>,</div></h4></section></summary><div class='docblock'>Fetch a single texel with a sampler set at compile time</div></details></div></details><section id="impl-Copy-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#97">Source</a><a href="#impl-Copy-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1692-1711">Source</a><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1672-1691">Source</a><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1652-1671">Source</a><a href="#impl-HasGather-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasGather.html" title="trait spirv_std::image::HasGather">HasGather</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1781-1801">Source</a><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1718-1738">Source</a><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1760-1780">Source</a><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1739-1759">Source</a><a href="#impl-HasQueryLevels-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQueryLevels.html" title="trait spirv_std::image::HasQueryLevels">HasQueryLevels</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Buffer+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2062-2082">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Buffer+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2022-2040">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2003-2021">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1983-2002">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1848-1866">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1829-1847">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1809-1828">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2041-2061">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::Rect+as+u32+%7D,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1964-1982">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1945-1963">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1925-1944">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1906-1924">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::No+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1887-1905">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+%7B+Sampled::Unknown+as+u32+%7D,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, { _ }, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#1867-1886">Source</a><a href="#impl-HasQuerySize-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::True+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySize.html" title="trait spirv_std::image::HasQuerySize">HasQuerySize</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2149-2168">Source</a><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::Cube+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySizeLod.html" title="trait spirv_std::image::HasQuerySizeLod">HasQuerySizeLod</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2089-2108">Source</a><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::OneD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySizeLod.html" title="trait spirv_std::image::HasQuerySizeLod">HasQuerySizeLod</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2129-2148">Source</a><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::ThreeD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySizeLod.html" title="trait spirv_std::image::HasQuerySizeLod">HasQuerySizeLod</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a class="src rightside" href="../../src/spirv_std/image.rs.html#2109-2128">Source</a><a href="#impl-HasQuerySizeLod-for-Image%3CSampledType,+%7B+Dimensionality::TwoD+as+u32+%7D,+DEPTH,+ARRAYED,+%7B+Multisampled::False+as+u32+%7D,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType: <a class="trait" href="trait.SampleType.html" title="trait spirv_std::image::SampleType">SampleType</a><FORMAT, COMPONENTS>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="trait.HasQuerySizeLod.html" title="trait spirv_std::image::HasQuerySizeLod">HasQuerySizeLod</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, { _ }, DEPTH, ARRAYED, { _ }, SAMPLED, FORMAT, COMPONENTS></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-Freeze-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-RefUnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS><div class="where">where
|
||
SampledType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-Send-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-Sync-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-Sync-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-Unpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-Unpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS><div class="where">where
|
||
SampledType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnsafeUnpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-UnsafeUnpin-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.UnsafeUnpin.html" title="trait core::marker::UnsafeUnpin">UnsafeUnpin</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS></h3></section><section id="impl-UnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="impl"><a href="#impl-UnwindSafe-for-Image%3CSampledType,+DIM,+DEPTH,+ARRAYED,+MULTISAMPLED,+SAMPLED,+FORMAT,+COMPONENTS%3E" class="anchor">§</a><h3 class="code-header">impl<SampledType, const DIM: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const DEPTH: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const ARRAYED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const MULTISAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const SAMPLED: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const FORMAT: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, const COMPONENTS: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Image.html" title="struct spirv_std::image::Image">Image</a><SampledType, DIM, DEPTH, ARRAYED, MULTISAMPLED, SAMPLED, FORMAT, COMPONENTS><div class="where">where
|
||
SampledType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#142">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#72-74">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#76">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#77">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html> |