MCPcopy Create free account
hub / github.com/carbonengine/trinity / MSLAddressMode

Function MSLAddressMode

shadercompiler/OutputHLSL.cpp:1226–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224}
1225
1226static const char* MSLAddressMode( uint8_t addressMode )
1227{
1228 switch( addressMode )
1229 {
1230 case D3D11_TEXTURE_ADDRESS_WRAP:
1231 return "repeat";
1232 case D3D11_TEXTURE_ADDRESS_MIRROR:
1233 return "mirrored_repeat";
1234 case D3D11_TEXTURE_ADDRESS_CLAMP:
1235 return "clamp_to_edge";
1236 case D3D11_TEXTURE_ADDRESS_BORDER:
1237 return "clamp_to_border";
1238 default:
1239 return "clamp_to_edge";
1240 }
1241}
1242
1243static const char* MSLBorderColor( uint8_t border )
1244{

Callers 1

OutputHLSL.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected