MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / api_trait_get

Method api_trait_get

servers/rendering/rendering_device_driver.cpp:45–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43/**************/
44
45uint64_t RenderingDeviceDriver::api_trait_get(ApiTrait p_trait) {
46 // Sensible canonical defaults.
47 switch (p_trait) {
48 case API_TRAIT_HONORS_PIPELINE_BARRIERS:
49 return 1;
50 case API_TRAIT_SHADER_CHANGE_INVALIDATION:
51 return SHADER_CHANGE_INVALIDATION_ALL_BOUND_UNIFORM_SETS;
52 case API_TRAIT_TEXTURE_TRANSFER_ALIGNMENT:
53 return 1;
54 case API_TRAIT_TEXTURE_DATA_ROW_PITCH_STEP:
55 return 1;
56 case API_TRAIT_SECONDARY_VIEWPORT_SCISSOR:
57 return 1;
58 case API_TRAIT_CLEARS_WITH_COPY_ENGINE:
59 return true;
60 case API_TRAIT_USE_GENERAL_IN_COPY_QUEUES:
61 return false;
62 case API_TRAIT_BUFFERS_REQUIRE_TRANSITIONS:
63 return false;
64 case API_TRAIT_TEXTURE_OUTPUTS_REQUIRE_CLEARS:
65 return false;
66 default:
67 ERR_FAIL_V(0);
68 }
69}
70
71/******************/
72

Callers 15

texture_createMethod · 0.45
_texture_alignmentMethod · 0.45
_texture_initializeMethod · 0.45
texture_updateMethod · 0.45
texture_get_dataMethod · 0.45
draw_list_drawMethod · 0.45
compute_list_dispatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected