Files
XCEngine/MVS/Music fluctuations/source/gpu/FrameBuffer.h

20 lines
443 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "../global/Base.h"
/*
* class FrameBuffer
* 帧缓存
*/
class FrameBuffer {
public:
FrameBuffer(uint32_t width, uint32_t height, void* colorBuffer = nullptr);
~FrameBuffer();
FrameBuffer(const FrameBuffer&) = delete;//不准拷贝复制
uint32_t mWidth{ 0 };
uint32_t mHeight{ 0 };
uint32_t mPixelSize{ 0 };
RGBA* mColorBuffer{ nullptr }; //首地址
float* mDepthBuffer{ nullptr };
bool mExternBuffer{ false };
};