MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / find_wrap_mode

Function find_wrap_mode

framework/gltf_loader.cpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102};
103
104inline VkSamplerAddressMode find_wrap_mode(int wrap)
105{
106 switch (wrap)
107 {
108 case TINYGLTF_TEXTURE_WRAP_REPEAT:
109 return VK_SAMPLER_ADDRESS_MODE_REPEAT;
110 case TINYGLTF_TEXTURE_WRAP_CLAMP_TO_EDGE:
111 return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
112 case TINYGLTF_TEXTURE_WRAP_MIRRORED_REPEAT:
113 return VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT;
114 default:
115 return VK_SAMPLER_ADDRESS_MODE_REPEAT;
116 }
117};
118
119inline std::vector<uint8_t> get_attribute_data(const tinygltf::Model *model, uint32_t accessorId)
120{

Callers 1

parse_samplerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected