MCPcopy Create free account
hub / github.com/HailToDodongo/pyrite64 / Framebuffer

Method Framebuffer

src/renderer/framebuffer.cpp:26–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Renderer::Framebuffer::Framebuffer()
27{
28 texInfo.width = 0;
29 texInfo.height = 0;
30 texInfo.layer_count_or_depth = 1;
31 texInfo.num_levels = 1;
32 texInfo.sample_count = SDL_GPU_SAMPLECOUNT_1;
33
34 targetInfo[0].texture = nullptr;
35 targetInfo[0].clear_color = {0, 0, 0, 1};
36 targetInfo[0].load_op = SDL_GPU_LOADOP_CLEAR;
37 targetInfo[0].store_op = SDL_GPU_STOREOP_STORE;
38 targetInfo[0].mip_level = 0;
39 targetInfo[0].layer_or_depth_plane = 0;
40 targetInfo[0].cycle = false;
41
42 targetInfo[1].texture = nullptr;
43 targetInfo[1].clear_color = {0, 0, 0, 0};
44 targetInfo[1].load_op = SDL_GPU_LOADOP_CLEAR;
45 targetInfo[1].store_op = SDL_GPU_STOREOP_STORE;
46 targetInfo[1].mip_level = 0;
47 targetInfo[1].layer_or_depth_plane = 0;
48 targetInfo[1].cycle = false;
49
50 depthTargetInfo.texture = nullptr;
51 depthTargetInfo.load_op = SDL_GPU_LOADOP_CLEAR;
52 depthTargetInfo.clear_depth = 1;
53 depthTargetInfo.store_op = SDL_GPU_STOREOP_STORE;
54 depthTargetInfo.stencil_load_op = SDL_GPU_LOADOP_CLEAR;
55 depthTargetInfo.stencil_store_op = SDL_GPU_STOREOP_STORE;
56 depthTargetInfo.mip_level = 0;
57}
58
59Renderer::Framebuffer::~Framebuffer() {
60 if (transBufferRead) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected