[{"data":1,"prerenderedAt":640},["ShallowReactive",2],{"jXaGJaz8mz":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":639,"_id":4},"VkSamplerAddressMode","Specify behavior of sampling with texture coordinates outside an image","VK_VERSION_1_0","enums",[],{"type":10,"children":11,"toc":637},"root",[12,46,563,631],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36,38,44],{"type":18,"value":19},"text","Possible values of the ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkSamplerCreateInfo",[25],{"type":18,"value":26},"VkSamplerCreateInfo",{"type":18,"value":28},"::",{"type":13,"tag":30,"props":31,"children":33},"code",{"className":32},[],[34],{"type":18,"value":35},"addressMode*",{"type":18,"value":37},"\nparameters, specifying the behavior of sampling with coordinates outside the\nrange [0,1] for the respective u, v, or w coordinate\nas defined in the ",{"type":13,"tag":21,"props":39,"children":41},{"href":40},"/chapters/textures#textures-wrapping-operation",[42],{"type":18,"value":43},"Wrapping Operation",{"type":18,"value":45},"\nsection, are:",{"type":13,"tag":47,"props":48,"children":49},"code-group",{},[50,276],{"type":13,"tag":51,"props":52,"children":58},"pre",{"className":53,"code":54,"filename":55,"language":56,"meta":57,"style":57},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkSamplerAddressMode {\n VK_SAMPLER_ADDRESS_MODE_REPEAT = 0,\n VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1,\n VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,\n VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,\n // \n value=\"4\" reserved for VK_KHR_sampler_mirror_clamp_to_edge\n enum VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE; do not\n alias!\n ,\n} VkSamplerAddressMode;\n","C","c","",[59],{"type":13,"tag":30,"props":60,"children":61},{"__ignoreMap":57},[62,85,110,132,154,176,186,220,244,258,267],{"type":13,"tag":63,"props":64,"children":67},"span",{"class":65,"line":66},"line",1,[68,74,79],{"type":13,"tag":63,"props":69,"children":71},{"style":70},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[72],{"type":18,"value":73},"typedef",{"type":13,"tag":63,"props":75,"children":76},{"style":70},[77],{"type":18,"value":78}," enum",{"type":13,"tag":63,"props":80,"children":82},{"style":81},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[83],{"type":18,"value":84}," VkSamplerAddressMode {\n",{"type":13,"tag":63,"props":86,"children":88},{"class":65,"line":87},2,[89,94,99,105],{"type":13,"tag":63,"props":90,"children":91},{"style":81},[92],{"type":18,"value":93}," VK_SAMPLER_ADDRESS_MODE_REPEAT ",{"type":13,"tag":63,"props":95,"children":96},{"style":70},[97],{"type":18,"value":98},"=",{"type":13,"tag":63,"props":100,"children":102},{"style":101},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[103],{"type":18,"value":104}," 0",{"type":13,"tag":63,"props":106,"children":107},{"style":81},[108],{"type":18,"value":109},",\n",{"type":13,"tag":63,"props":111,"children":113},{"class":65,"line":112},3,[114,119,123,128],{"type":13,"tag":63,"props":115,"children":116},{"style":81},[117],{"type":18,"value":118}," VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT ",{"type":13,"tag":63,"props":120,"children":121},{"style":70},[122],{"type":18,"value":98},{"type":13,"tag":63,"props":124,"children":125},{"style":101},[126],{"type":18,"value":127}," 1",{"type":13,"tag":63,"props":129,"children":130},{"style":81},[131],{"type":18,"value":109},{"type":13,"tag":63,"props":133,"children":135},{"class":65,"line":134},4,[136,141,145,150],{"type":13,"tag":63,"props":137,"children":138},{"style":81},[139],{"type":18,"value":140}," VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE ",{"type":13,"tag":63,"props":142,"children":143},{"style":70},[144],{"type":18,"value":98},{"type":13,"tag":63,"props":146,"children":147},{"style":101},[148],{"type":18,"value":149}," 2",{"type":13,"tag":63,"props":151,"children":152},{"style":81},[153],{"type":18,"value":109},{"type":13,"tag":63,"props":155,"children":157},{"class":65,"line":156},5,[158,163,167,172],{"type":13,"tag":63,"props":159,"children":160},{"style":81},[161],{"type":18,"value":162}," VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER ",{"type":13,"tag":63,"props":164,"children":165},{"style":70},[166],{"type":18,"value":98},{"type":13,"tag":63,"props":168,"children":169},{"style":101},[170],{"type":18,"value":171}," 3",{"type":13,"tag":63,"props":173,"children":174},{"style":81},[175],{"type":18,"value":109},{"type":13,"tag":63,"props":177,"children":179},{"class":65,"line":178},6,[180],{"type":13,"tag":63,"props":181,"children":183},{"style":182},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[184],{"type":18,"value":185}," // \n",{"type":13,"tag":63,"props":187,"children":189},{"class":65,"line":188},7,[190,195,199,205,210,215],{"type":13,"tag":63,"props":191,"children":192},{"style":81},[193],{"type":18,"value":194}," value",{"type":13,"tag":63,"props":196,"children":197},{"style":70},[198],{"type":18,"value":98},{"type":13,"tag":63,"props":200,"children":202},{"style":201},"--shiki-default:#0A3069;--shiki-dark:#A5D6FF",[203],{"type":18,"value":204},"\"4\"",{"type":13,"tag":63,"props":206,"children":207},{"style":81},[208],{"type":18,"value":209}," reserved ",{"type":13,"tag":63,"props":211,"children":212},{"style":70},[213],{"type":18,"value":214},"for",{"type":13,"tag":63,"props":216,"children":217},{"style":81},[218],{"type":18,"value":219}," VK_KHR_sampler_mirror_clamp_to_edge\n",{"type":13,"tag":63,"props":221,"children":223},{"class":65,"line":222},8,[224,229,234,239],{"type":13,"tag":63,"props":225,"children":226},{"style":70},[227],{"type":18,"value":228}," enum",{"type":13,"tag":63,"props":230,"children":231},{"style":81},[232],{"type":18,"value":233}," VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE; ",{"type":13,"tag":63,"props":235,"children":236},{"style":70},[237],{"type":18,"value":238},"do",{"type":13,"tag":63,"props":240,"children":241},{"style":81},[242],{"type":18,"value":243}," not\n",{"type":13,"tag":63,"props":245,"children":247},{"class":65,"line":246},9,[248,253],{"type":13,"tag":63,"props":249,"children":250},{"style":81},[251],{"type":18,"value":252}," alias",{"type":13,"tag":63,"props":254,"children":255},{"style":70},[256],{"type":18,"value":257},"!\n",{"type":13,"tag":63,"props":259,"children":261},{"class":65,"line":260},10,[262],{"type":13,"tag":63,"props":263,"children":264},{"style":81},[265],{"type":18,"value":266}," ,\n",{"type":13,"tag":63,"props":268,"children":270},{"class":65,"line":269},11,[271],{"type":13,"tag":63,"props":272,"children":273},{"style":81},[274],{"type":18,"value":275},"} VkSamplerAddressMode;\n",{"type":13,"tag":51,"props":277,"children":282},{"className":278,"code":279,"filename":280,"language":281,"meta":57,"style":57},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SamplerAddressMode(u32);\nimpl SamplerAddressMode {\n pub const REPEAT: Self = 0;\n pub const MIRRORED_REPEAT: Self = 1;\n pub const CLAMP_TO_EDGE: Self = 2;\n pub const CLAMP_TO_BORDER: Self = 3;\n // \n value=\"4\" reserved for VK_KHR_sampler_mirror_clamp_to_edge\n enum VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE; do not\n alias!\n}\n","Rust","rs",[283],{"type":13,"tag":30,"props":284,"children":285},{"__ignoreMap":57},[286,320,337,379,415,451,487,494,521,546,555],{"type":13,"tag":63,"props":287,"children":288},{"class":65,"line":66},[289,294,299,305,310,315],{"type":13,"tag":63,"props":290,"children":291},{"style":70},[292],{"type":18,"value":293},"pub",{"type":13,"tag":63,"props":295,"children":296},{"style":70},[297],{"type":18,"value":298}," struct",{"type":13,"tag":63,"props":300,"children":302},{"style":301},"--shiki-default:#953800;--shiki-dark:#FFA657",[303],{"type":18,"value":304}," SamplerAddressMode",{"type":13,"tag":63,"props":306,"children":307},{"style":81},[308],{"type":18,"value":309},"(",{"type":13,"tag":63,"props":311,"children":312},{"style":301},[313],{"type":18,"value":314},"u32",{"type":13,"tag":63,"props":316,"children":317},{"style":81},[318],{"type":18,"value":319},");\n",{"type":13,"tag":63,"props":321,"children":322},{"class":65,"line":87},[323,328,332],{"type":13,"tag":63,"props":324,"children":325},{"style":70},[326],{"type":18,"value":327},"impl",{"type":13,"tag":63,"props":329,"children":330},{"style":301},[331],{"type":18,"value":304},{"type":13,"tag":63,"props":333,"children":334},{"style":81},[335],{"type":18,"value":336}," {\n",{"type":13,"tag":63,"props":338,"children":339},{"class":65,"line":112},[340,345,350,355,360,365,370,374],{"type":13,"tag":63,"props":341,"children":342},{"style":70},[343],{"type":18,"value":344}," pub",{"type":13,"tag":63,"props":346,"children":347},{"style":70},[348],{"type":18,"value":349}," const",{"type":13,"tag":63,"props":351,"children":352},{"style":101},[353],{"type":18,"value":354}," REPEAT",{"type":13,"tag":63,"props":356,"children":357},{"style":70},[358],{"type":18,"value":359},":",{"type":13,"tag":63,"props":361,"children":362},{"style":101},[363],{"type":18,"value":364}," Self",{"type":13,"tag":63,"props":366,"children":367},{"style":70},[368],{"type":18,"value":369}," =",{"type":13,"tag":63,"props":371,"children":372},{"style":101},[373],{"type":18,"value":104},{"type":13,"tag":63,"props":375,"children":376},{"style":81},[377],{"type":18,"value":378},";\n",{"type":13,"tag":63,"props":380,"children":381},{"class":65,"line":134},[382,386,390,395,399,403,407,411],{"type":13,"tag":63,"props":383,"children":384},{"style":70},[385],{"type":18,"value":344},{"type":13,"tag":63,"props":387,"children":388},{"style":70},[389],{"type":18,"value":349},{"type":13,"tag":63,"props":391,"children":392},{"style":101},[393],{"type":18,"value":394}," MIRRORED_REPEAT",{"type":13,"tag":63,"props":396,"children":397},{"style":70},[398],{"type":18,"value":359},{"type":13,"tag":63,"props":400,"children":401},{"style":101},[402],{"type":18,"value":364},{"type":13,"tag":63,"props":404,"children":405},{"style":70},[406],{"type":18,"value":369},{"type":13,"tag":63,"props":408,"children":409},{"style":101},[410],{"type":18,"value":127},{"type":13,"tag":63,"props":412,"children":413},{"style":81},[414],{"type":18,"value":378},{"type":13,"tag":63,"props":416,"children":417},{"class":65,"line":156},[418,422,426,431,435,439,443,447],{"type":13,"tag":63,"props":419,"children":420},{"style":70},[421],{"type":18,"value":344},{"type":13,"tag":63,"props":423,"children":424},{"style":70},[425],{"type":18,"value":349},{"type":13,"tag":63,"props":427,"children":428},{"style":101},[429],{"type":18,"value":430}," CLAMP_TO_EDGE",{"type":13,"tag":63,"props":432,"children":433},{"style":70},[434],{"type":18,"value":359},{"type":13,"tag":63,"props":436,"children":437},{"style":101},[438],{"type":18,"value":364},{"type":13,"tag":63,"props":440,"children":441},{"style":70},[442],{"type":18,"value":369},{"type":13,"tag":63,"props":444,"children":445},{"style":101},[446],{"type":18,"value":149},{"type":13,"tag":63,"props":448,"children":449},{"style":81},[450],{"type":18,"value":378},{"type":13,"tag":63,"props":452,"children":453},{"class":65,"line":178},[454,458,462,467,471,475,479,483],{"type":13,"tag":63,"props":455,"children":456},{"style":70},[457],{"type":18,"value":344},{"type":13,"tag":63,"props":459,"children":460},{"style":70},[461],{"type":18,"value":349},{"type":13,"tag":63,"props":463,"children":464},{"style":101},[465],{"type":18,"value":466}," CLAMP_TO_BORDER",{"type":13,"tag":63,"props":468,"children":469},{"style":70},[470],{"type":18,"value":359},{"type":13,"tag":63,"props":472,"children":473},{"style":101},[474],{"type":18,"value":364},{"type":13,"tag":63,"props":476,"children":477},{"style":70},[478],{"type":18,"value":369},{"type":13,"tag":63,"props":480,"children":481},{"style":101},[482],{"type":18,"value":171},{"type":13,"tag":63,"props":484,"children":485},{"style":81},[486],{"type":18,"value":378},{"type":13,"tag":63,"props":488,"children":489},{"class":65,"line":188},[490],{"type":13,"tag":63,"props":491,"children":492},{"style":182},[493],{"type":18,"value":185},{"type":13,"tag":63,"props":495,"children":496},{"class":65,"line":222},[497,501,505,509,513,517],{"type":13,"tag":63,"props":498,"children":499},{"style":81},[500],{"type":18,"value":194},{"type":13,"tag":63,"props":502,"children":503},{"style":70},[504],{"type":18,"value":98},{"type":13,"tag":63,"props":506,"children":507},{"style":201},[508],{"type":18,"value":204},{"type":13,"tag":63,"props":510,"children":511},{"style":81},[512],{"type":18,"value":209},{"type":13,"tag":63,"props":514,"children":515},{"style":70},[516],{"type":18,"value":214},{"type":13,"tag":63,"props":518,"children":519},{"style":301},[520],{"type":18,"value":219},{"type":13,"tag":63,"props":522,"children":523},{"class":65,"line":246},[524,528,533,538,542],{"type":13,"tag":63,"props":525,"children":526},{"style":70},[527],{"type":18,"value":228},{"type":13,"tag":63,"props":529,"children":530},{"style":301},[531],{"type":18,"value":532}," VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE",{"type":13,"tag":63,"props":534,"children":535},{"style":81},[536],{"type":18,"value":537},"; ",{"type":13,"tag":63,"props":539,"children":540},{"style":70},[541],{"type":18,"value":238},{"type":13,"tag":63,"props":543,"children":544},{"style":81},[545],{"type":18,"value":243},{"type":13,"tag":63,"props":547,"children":548},{"class":65,"line":260},[549],{"type":13,"tag":63,"props":550,"children":552},{"style":551},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[553],{"type":18,"value":554}," alias!\n",{"type":13,"tag":63,"props":556,"children":557},{"class":65,"line":269},[558],{"type":13,"tag":63,"props":559,"children":560},{"style":81},[561],{"type":18,"value":562},"}\n",{"type":13,"tag":564,"props":565,"children":566},"ul",{},[567,579,590,601,612],{"type":13,"tag":568,"props":569,"children":570},"li",{},[571,577],{"type":13,"tag":30,"props":572,"children":574},{"className":573},[],[575],{"type":18,"value":576},"VK_SAMPLER_ADDRESS_MODE_REPEAT",{"type":18,"value":578}," specifies that the repeat wrap mode\nwill be used.",{"type":13,"tag":568,"props":580,"children":581},{},[582,588],{"type":13,"tag":30,"props":583,"children":585},{"className":584},[],[586],{"type":18,"value":587},"VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT",{"type":18,"value":589}," specifies that the\nmirrored repeat wrap mode will be used.",{"type":13,"tag":568,"props":591,"children":592},{},[593,599],{"type":13,"tag":30,"props":594,"children":596},{"className":595},[],[597],{"type":18,"value":598},"VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE",{"type":18,"value":600}," specifies that the clamp to\nedge wrap mode will be used.",{"type":13,"tag":568,"props":602,"children":603},{},[604,610],{"type":13,"tag":30,"props":605,"children":607},{"className":606},[],[608],{"type":18,"value":609},"VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER",{"type":18,"value":611}," specifies that the clamp\nto border wrap mode will be used.",{"type":13,"tag":568,"props":613,"children":614},{},[615,621,623,629],{"type":13,"tag":30,"props":616,"children":618},{"className":617},[],[619],{"type":18,"value":620},"VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE",{"type":18,"value":622}," specifies that the\nmirror clamp to edge wrap mode will be used.\nThis is only valid if\nthe ",{"type":13,"tag":21,"props":624,"children":626},{"href":625},"/extensions/VK_KHR_sampler_mirror_clamp_to_edge",[627],{"type":18,"value":628},"VK_KHR_sampler_mirror_clamp_to_edge",{"type":18,"value":630}," extension is enabled.",{"type":13,"tag":632,"props":633,"children":634},"style",{},[635],{"type":18,"value":636},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":57,"searchDepth":87,"depth":87,"links":638},[],"markdown",1725732584429]