MCPcopy Create free account
hub / github.com/defold/defold / RepackRGBToRGBA

Function RepackRGBToRGBA

engine/graphics/src/graphics.cpp:1129–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1127 }
1128
1129 void RepackRGBToRGBA(uint32_t num_pixels, uint8_t* rgb, uint8_t* rgba)
1130 {
1131 for(uint32_t px=0; px < num_pixels; px++)
1132 {
1133 rgba[0] = rgb[0];
1134 rgba[1] = rgb[1];
1135 rgba[2] = rgb[2];
1136 rgba[3] = 255;
1137 rgba+=4;
1138 rgb+=3;
1139 }
1140 }
1141
1142 static void PutShaderResourceBindings(const ShaderDesc::ResourceBinding* bindings, uint32_t bindings_count, dmArray<ShaderResourceBinding>& bindings_out, ShaderResourceBindingFamily family)
1143 {

Callers 4

DX12SetTextureFunction · 0.85
VulkanSetTextureInternalFunction · 0.85
AsyncProcessCallbackFunction · 0.85
WebGPUSetTextureInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected