forked from GPUOpen-Archive/common-src-ShaderUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSUDeviceBuffer.cpp
More file actions
executable file
·39 lines (33 loc) · 1.09 KB
/
SUDeviceBuffer.cpp
File metadata and controls
executable file
·39 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//=====================================================================
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
/// \author GPU Developer Tools
/// \file $File: //devtools/main/Common/Src/ShaderUtils/SUDeviceBuffer.cpp $
/// \version $Revision: #5 $
/// \brief This file defines enums and structs used in ShaderDebugger
/// and APP Profiler.
//
//=====================================================================
// $Id: //devtools/main/Common/Src/ShaderUtils/SUDeviceBuffer.cpp#5 $
// Last checkin: $DateTime: 2016/04/14 04:43:34 $
// Last edited by: $Author: AMD Developer Tools Team
// Change list: $Change: 569084 $
//=====================================================================
#include <cstring>
#include "SUDeviceBuffer.h"
using namespace std;
using namespace ShaderUtils;
SUDeviceBuffer::SUDeviceBuffer()
{
memset(&m_Desc, 0, sizeof(m_Desc));
}
SUDeviceBuffer::~SUDeviceBuffer()
{
}
void SUDeviceBuffer::GetDeviceBufferDesc(BufferDesc* pDesc) const
{
if (NULL != pDesc)
{
memcpy(pDesc, &m_Desc, sizeof(BufferDesc));
}
}