mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-18 12:36:53 +00:00
Ensure all files have trailing new-lines and enforce with clang warning
This commit is contained in:
@@ -327,6 +327,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
list(APPEND warning_flags -Wnewline-eof)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 AND NOT APPLE)
|
||||
list(APPEND warning_flags -Wno-unused-lambda-capture)
|
||||
endif()
|
||||
|
||||
@@ -318,4 +318,4 @@ void DocumentReport();
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -132,4 +132,4 @@ private:
|
||||
void UpdateStatus(ReplayStatus status);
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(RemoteHost);
|
||||
DECLARE_REFLECTION_STRUCT(RemoteHost);
|
||||
|
||||
@@ -655,4 +655,4 @@ bool IsDarkTheme();
|
||||
float getLuminance(const QColor &col);
|
||||
QColor contrastingColor(const QColor &col, const QColor &defaultCol);
|
||||
|
||||
void *AccessWaylandPlatformInterface(const QByteArray &resource, QWindow *window);
|
||||
void *AccessWaylandPlatformInterface(const QByteArray &resource, QWindow *window);
|
||||
|
||||
@@ -141,4 +141,4 @@ private:
|
||||
QString EncodeCommand(RGPCommand command, QVariantList params);
|
||||
bool DecodeCommand(QString command);
|
||||
void ProcessReadBuffer();
|
||||
};
|
||||
};
|
||||
|
||||
@@ -149,4 +149,4 @@ struct Icons
|
||||
#define RESOURCE_DEF(name, filename) \
|
||||
static const QIcon &name() { return Resources::name().icon; }
|
||||
RESOURCE_LIST()
|
||||
};
|
||||
};
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -1271,4 +1271,4 @@ extern "C" QWidget *QWidgetFromPy(PyObject *widget)
|
||||
extern "C" PyObject *QWidgetToPy(QWidget *widget)
|
||||
{
|
||||
return PythonContext::QWidgetToPy(widget);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,4 +181,4 @@ public:
|
||||
PythonContext &ctx() { return *m_ctx; }
|
||||
private:
|
||||
PythonContext *m_ctx;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -688,4 +688,4 @@ int array_setsubscript(arrayType *thisptr, PyObject *idxobj, PyObject *val)
|
||||
SWIG_exception_fail(SWIG_TypeError, "list index not index or slice");
|
||||
fail:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,4 +64,4 @@ extern "C" void SetThreadBlocking(PyObject *global_handle, bool block)
|
||||
{
|
||||
}
|
||||
|
||||
REPLAY_PROGRAM_MARKER()
|
||||
REPLAY_PROGRAM_MARKER()
|
||||
|
||||
@@ -255,4 +255,4 @@ void RemoteHost::SetConnected(bool connected)
|
||||
|
||||
void RemoteHost::SetShutdown()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,4 +51,4 @@ const ThemeDescriptor availStyles[] = {
|
||||
};
|
||||
|
||||
const int numAvailable = sizeof(availStyles) / sizeof(ThemeDescriptor);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -45,4 +45,4 @@ struct ThemeDescriptor
|
||||
|
||||
extern const ThemeDescriptor availStyles[];
|
||||
extern const int numAvailable;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -123,4 +123,4 @@ bool CustomPaintWidget::event(QEvent *e)
|
||||
paintEvent(NULL);
|
||||
return QWidget::event(e);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -132,4 +132,4 @@ inline int RDHeaderView::logicalIndexAt(int ax, int ay) const
|
||||
inline int RDHeaderView::logicalIndexAt(const QPoint &apos) const
|
||||
{
|
||||
return logicalIndexAt(apos.x(), apos.y());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1082,4 +1082,4 @@ void RDTreeWidget::endInsertChild(RDTreeWidgetItem *item, int index)
|
||||
// work is all done in beginInsertChild
|
||||
if(!m_queueUpdates)
|
||||
m_model->endInsertChild(item);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,4 +192,4 @@ void FindReplace::on_findMode_clicked()
|
||||
void FindReplace::on_replaceMode_clicked()
|
||||
{
|
||||
setReplaceMode(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,4 +122,4 @@ void ResourcePreview::changeEvent(QEvent *event)
|
||||
QWidget *ResourcePreview::thumbWidget()
|
||||
{
|
||||
return ui->thumbnail;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,4 +172,4 @@ void ThumbnailStrip::refreshLayout()
|
||||
c->setSize(QSize(avail.width(), aspectHeight));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -238,4 +238,4 @@ void ExtensionManager::update_currentItem(RDTreeWidgetItem *item)
|
||||
ui->alwaysLoad->setChecked(m_Ctx.Config().AlwaysLoad_Extensions.contains(e.package));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -980,4 +980,4 @@ void SettingsDialog::on_UIStyle_currentIndexChanged(int index)
|
||||
}
|
||||
|
||||
m_Ctx.Config().Save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -260,4 +260,4 @@ void UpdateDialog::on_update_clicked()
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3706,4 +3706,4 @@ void VulkanPipelineStateViewer::on_meshView_clicked()
|
||||
if(!m_Ctx.HasMeshPreview())
|
||||
m_Ctx.ShowMeshPreview();
|
||||
ToolWindowManager::raiseToolWindow(m_Ctx.GetMeshPreview()->Widget());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -842,4 +842,4 @@ void StatisticsViewer::OnCaptureLoaded()
|
||||
{
|
||||
GenerateReport();
|
||||
ui->statistics->setText(m_Report);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,4 +81,4 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInstance, _In_
|
||||
delete[] paramsAlloc;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -248,4 +248,4 @@ struct ResXMLTree_cdataExt
|
||||
|
||||
// The typed value of the character data if this is a CDATA node.
|
||||
struct Res_value typedData;
|
||||
};
|
||||
};
|
||||
|
||||
Vendored
+1
-1
@@ -46,4 +46,4 @@ struct StringMaker<rdcstr>
|
||||
{
|
||||
static std::string convert(rdcstr const &value) { return value; }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3172,4 +3172,4 @@ unsigned char *decompress_jpeg_image_from_file(const char *pSrc_filename, int *w
|
||||
return decompress_jpeg_image_from_stream(&file_stream, width, height, actual_comps, req_comps);
|
||||
}
|
||||
|
||||
} // namespace jpgd
|
||||
} // namespace jpgd
|
||||
|
||||
@@ -1168,4 +1168,4 @@ ExecuteResult AndroidRemoteServer::ExecuteAndInject(const char *a, const char *w
|
||||
|
||||
AndroidController AndroidController::m_Inst;
|
||||
|
||||
DeviceProtocolRegistration androidProtocol("adb", &AndroidController::Get);
|
||||
DeviceProtocolRegistration androidProtocol("adb", &AndroidController::Get);
|
||||
|
||||
@@ -635,4 +635,4 @@ bool PatchManifest(std::vector<byte> &manifestBytes)
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -72,4 +72,4 @@ std::string GetPathForPackage(const std::string &deviceID, const std::string &pa
|
||||
bool PatchManifest(std::vector<byte> &manifest);
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_ENUM(Android::ABI);
|
||||
DECLARE_REFLECTION_ENUM(Android::ABI);
|
||||
|
||||
@@ -568,4 +568,4 @@ private:
|
||||
std::string GetSignature(referenceTypeID typeID);
|
||||
std::vector<Method> GetMethods(referenceTypeID searchClass);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -616,4 +616,4 @@ std::vector<Method> Connection::GetMethods(referenceTypeID searchClass)
|
||||
data.Done();
|
||||
return ret;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -306,4 +306,4 @@ CommandData &CommandData::Write(const frameID &id)
|
||||
WriteBytes(&tmp, frameID::getSize());
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -426,4 +426,4 @@ no VB bound.
|
||||
bool used;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(VertexInputAttribute);
|
||||
DECLARE_REFLECTION_STRUCT(VertexInputAttribute);
|
||||
|
||||
@@ -341,4 +341,4 @@ private:
|
||||
const D3D12Pipe::Shader &GetD3D12Stage(ShaderStage stage) const;
|
||||
const GLPipe::Shader &GetGLStage(ShaderStage stage) const;
|
||||
const VKPipe::Shader &GetVulkanStage(ShaderStage stage) const;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -778,4 +778,4 @@ inline rdcstr operator+(const QChar &left, const rdcstr &right)
|
||||
{
|
||||
return rdcstr(left) += right;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1119,4 +1119,4 @@ rdcstr DoStringise(const ShaderStageMask &el)
|
||||
STRINGISE_BITFIELD_CLASS_BIT(Compute);
|
||||
}
|
||||
END_BITFIELD_STRINGISE();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,4 +219,4 @@ enum
|
||||
// otherwise, enable them in development builds
|
||||
#define ENABLE_UNIT_TESTS RDOC_DEVEL
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -71,4 +71,4 @@ TEST_CASE("Test spin lock", "[threading]")
|
||||
CHECK(finalValue == value);
|
||||
}
|
||||
|
||||
#endif // ENABLED(ENABLE_UNIT_TESTS)
|
||||
#endif // ENABLED(ENABLE_UNIT_TESTS)
|
||||
|
||||
@@ -767,4 +767,4 @@ struct DeviceProtocolRegistration
|
||||
{
|
||||
RenderDoc::Inst().RegisterDeviceProtocol(protocol, handler);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -440,4 +440,4 @@ TEST_CASE("Test Intervals type", "[intervals]")
|
||||
};
|
||||
};
|
||||
|
||||
#endif // ENABLED(ENABLE_UNIT_TESTS)
|
||||
#endif // ENABLED(ENABLE_UNIT_TESTS)
|
||||
|
||||
@@ -85,4 +85,4 @@ std::string LocatePluginFile(const std::string &path, const std::string &fileNam
|
||||
ret = fileName;
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
std::string LocatePluginFile(const std::string &path, const std::string &fileName);
|
||||
std::string LocatePluginFile(const std::string &path, const std::string &fileName);
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -26,4 +26,4 @@
|
||||
|
||||
#include "api/app/renderdoc_app.h"
|
||||
#include "api/replay/renderdoc_replay.h"
|
||||
#include "common/common.h"
|
||||
#include "common/common.h"
|
||||
|
||||
@@ -173,4 +173,4 @@ vec3 CalcCubeCoord(vec2 uv, int face)
|
||||
#define MESH_TRIANGLE_STRIP 2u
|
||||
#define MESH_TRIANGLE_FAN 3u
|
||||
#define MESH_TRIANGLE_LIST_ADJ 4u
|
||||
#define MESH_TRIANGLE_STRIP_ADJ 5u
|
||||
#define MESH_TRIANGLE_STRIP_ADJ 5u
|
||||
|
||||
@@ -50,4 +50,4 @@
|
||||
#error Only one of VULKAN and OPENGL must be defined in glsl_ubos.h
|
||||
#endif
|
||||
|
||||
#include "glsl_ubos.h"
|
||||
#include "glsl_ubos.h"
|
||||
|
||||
@@ -1853,4 +1853,4 @@ void main() {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -44,4 +44,4 @@ enum class ShaderStage : uint32_t;
|
||||
using ReflectionMaker =
|
||||
std::function<void(ShaderStage stage, const std::string &source, const std::string &entryPoint,
|
||||
ShaderReflection &refl, ShaderBindpointMapping &mapping)>;
|
||||
void TestGLSLReflection(ShaderType testType, ReflectionMaker compile);
|
||||
void TestGLSLReflection(ShaderType testType, ReflectionMaker compile);
|
||||
|
||||
@@ -217,4 +217,4 @@ cbuffer HistogramCBufferData REG(b0)
|
||||
#define MESH_TRIANGLE_LIST 1
|
||||
#define MESH_TRIANGLE_STRIP 2
|
||||
#define MESH_TRIANGLE_LIST_ADJ 3
|
||||
#define MESH_TRIANGLE_STRIP_ADJ 4
|
||||
#define MESH_TRIANGLE_STRIP_ADJ 4
|
||||
|
||||
@@ -2353,4 +2353,4 @@ TEST_CASE("Check UpdateSubresource data length calculations", "[d3d]")
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -70,4 +70,4 @@ HRESULT WrappedID3D11DeviceContext::Wait(ID3D11Fence *pFence, UINT64 Value)
|
||||
return E_NOINTERFACE;
|
||||
|
||||
return m_pRealContext4->Wait(UNWRAP(WrappedID3D11Fence, pFence), Value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,4 +370,4 @@ HRESULT WrappedID3D11Device::OpenSharedResourceByName(LPCWSTR lpName, DWORD dwDe
|
||||
template bool WrappedID3D11Device::CONCAT(Serialise_, func(ReadSerialiser &ser, __VA_ARGS__)); \
|
||||
template bool WrappedID3D11Device::CONCAT(Serialise_, func(WriteSerialiser &ser, __VA_ARGS__));
|
||||
|
||||
SERIALISED_ID3D11DEVICE1_FUNCTIONS();
|
||||
SERIALISED_ID3D11DEVICE1_FUNCTIONS();
|
||||
|
||||
@@ -1083,4 +1083,4 @@ HRESULT WrappedID3D11Device::OpenSharedFence(HANDLE hFence, REFIID riid, void **
|
||||
template bool WrappedID3D11Device::CONCAT(Serialise_, func(ReadSerialiser &ser, __VA_ARGS__)); \
|
||||
template bool WrappedID3D11Device::CONCAT(Serialise_, func(WriteSerialiser &ser, __VA_ARGS__));
|
||||
|
||||
SERIALISED_ID3D11DEVICE3_FUNCTIONS();
|
||||
SERIALISED_ID3D11DEVICE3_FUNCTIONS();
|
||||
|
||||
@@ -3639,4 +3639,4 @@ UINT WrappedID3D11Device::GetExceptionMode()
|
||||
template bool WrappedID3D11Device::CONCAT(Serialise_, func(WriteSerialiser &ser, __VA_ARGS__));
|
||||
|
||||
SERIALISED_ID3D11DEVICE_FUNCTIONS();
|
||||
SERIALISED_ID3D11DEVICE_FAKE_FUNCTIONS();
|
||||
SERIALISED_ID3D11DEVICE_FAKE_FUNCTIONS();
|
||||
|
||||
@@ -1320,4 +1320,4 @@ template bool WrappedID3D11Device::Serialise_InitialState(ReadSerialiser &ser, R
|
||||
const D3D11InitialContents *initial);
|
||||
template bool WrappedID3D11Device::Serialise_InitialState(WriteSerialiser &ser, ResourceId id,
|
||||
D3D11ResourceRecord *record,
|
||||
const D3D11InitialContents *initial);
|
||||
const D3D11InitialContents *initial);
|
||||
|
||||
@@ -1061,4 +1061,4 @@ void D3D11Replay::InitPostVSBuffers(const std::vector<uint32_t> &passEvents)
|
||||
if(d)
|
||||
InitPostVSBuffers(passEvents[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,4 +491,4 @@ void D3D11TextRenderer::RenderTextInternal(float x, float y, const char *text)
|
||||
else
|
||||
m_pImmediateContext->Draw(6 * (uint32_t)strlen(text), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,4 +74,4 @@ private:
|
||||
|
||||
float CharAspect = 1.0f;
|
||||
float CharSize = 1.0f;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4140,4 +4140,4 @@ void D3D11_ProcessStructured(RDCFile *rdc, SDFile &output)
|
||||
}
|
||||
|
||||
static StructuredProcessRegistration D3D11ProcessRegistration(RDCDriver::D3D11,
|
||||
&D3D11_ProcessStructured);
|
||||
&D3D11_ProcessStructured);
|
||||
|
||||
@@ -56,4 +56,4 @@ private:
|
||||
|
||||
bool m_ShaderCacheDirty = false, m_CacheShaders = false;
|
||||
std::map<uint32_t, ID3DBlob *> m_ShaderCache;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1437,4 +1437,4 @@ void STDMETHODCALLTYPE Wrapped11VideoDeviceChild<NestedType, NestedType1>::GetDe
|
||||
*ppDevice = m_pDevice;
|
||||
m_pDevice->AddRef();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -582,4 +582,4 @@ WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList1 *obj);
|
||||
WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList2 *obj);
|
||||
WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList3 *obj);
|
||||
WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList4 *obj);
|
||||
WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList5 *obj);
|
||||
WrappedID3D12GraphicsCommandList *GetWrapped(ID3D12GraphicsCommandList5 *obj);
|
||||
|
||||
@@ -337,4 +337,4 @@ template <>
|
||||
ResourceId GetResID(ID3D12CommandQueue *obj);
|
||||
|
||||
template <>
|
||||
D3D12ResourceRecord *GetRecord(ID3D12CommandQueue *obj);
|
||||
D3D12ResourceRecord *GetRecord(ID3D12CommandQueue *obj);
|
||||
|
||||
@@ -857,4 +857,4 @@ INSTANTIATE_FUNCTION_SERIALISED(void, WrappedID3D12CommandQueue, Wait, ID3D12Fen
|
||||
INSTANTIATE_FUNCTION_SERIALISED(void, WrappedID3D12CommandQueue, Signal, ID3D12Fence *pFence,
|
||||
UINT64 Value);
|
||||
INSTANTIATE_FUNCTION_SERIALISED(void, WrappedID3D12CommandQueue, Wait, ID3D12Fence *pFence,
|
||||
UINT64 Value);
|
||||
UINT64 Value);
|
||||
|
||||
@@ -1197,4 +1197,4 @@ D3D12_PACKED_PIPELINE_STATE_STREAM_DESC &D3D12_PACKED_PIPELINE_STATE_STREAM_DESC
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,4 +542,4 @@ INSTANTIATE_FUNCTION_SERIALISED(void, WrappedID3D12Device, CreateHeap1, const D3
|
||||
void **ppvHeap);
|
||||
INSTANTIATE_FUNCTION_SERIALISED(void, WrappedID3D12Device, CreateCommandList1, UINT nodeMask,
|
||||
D3D12_COMMAND_LIST_TYPE type, D3D12_COMMAND_LIST_FLAGS flags,
|
||||
REFIID riid, void **ppCommandList);
|
||||
REFIID riid, void **ppCommandList);
|
||||
|
||||
@@ -97,4 +97,4 @@ D3D12_DRIVER_MATCHING_IDENTIFIER_STATUS WrappedID3D12Device::CheckDriverMatching
|
||||
{
|
||||
// always say the data is unrecognised
|
||||
return D3D12_DRIVER_MATCHING_IDENTIFIER_UNRECOGNIZED;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,4 +82,4 @@ private:
|
||||
|
||||
float CharAspect = 1.0f;
|
||||
float CharSize = 1.0f;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -4024,4 +4024,4 @@ TEST_CASE("Test get_space ensures sorted nature", "[d3d12]")
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -56,4 +56,4 @@ private:
|
||||
|
||||
bool m_ShaderCacheDirty = false, m_CacheShaders = false;
|
||||
std::map<uint32_t, ID3DBlob *> m_ShaderCache;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -80,4 +80,4 @@ public:
|
||||
|
||||
#define IMPLEMENT_FUNCTION_SERIALISED(ret, func) \
|
||||
ret func; \
|
||||
bool CONCAT(Serialise_, func);
|
||||
bool CONCAT(Serialise_, func);
|
||||
|
||||
@@ -315,4 +315,4 @@ void D3D8DebugManager::RenderTextInternal(float x, float y, const char *text)
|
||||
sizeof(Vertex));
|
||||
delete[] quads;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,4 +275,4 @@ public:
|
||||
|
||||
private:
|
||||
IDirect3D8 *m_direct3D;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -37,4 +37,4 @@ ReplayStatus D3D8_CreateReplayDevice(RDCFile *rdc, IReplayDriver **driver)
|
||||
|
||||
static DriverRegistration D3D8DriverRegistration(RDCDriver::D3D8, &D3D8_CreateReplayDevice);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -118,4 +118,4 @@ D3D8ResourceRecord *GetRecord(IUnknown *ptr)
|
||||
}
|
||||
|
||||
return res->GetResourceRecord();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -333,4 +333,4 @@ ResourceId GetResID(IUnknown *ptr);
|
||||
template <>
|
||||
IUnknown *Unwrap(IUnknown *ptr);
|
||||
template <>
|
||||
D3D8ResourceRecord *GetRecord(IUnknown *ptr);
|
||||
D3D8ResourceRecord *GetRecord(IUnknown *ptr);
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -322,4 +322,4 @@ void D3D9DebugManager::RenderTextInternal(float x, float y, const char *text)
|
||||
sizeof(Vertex));
|
||||
delete[] quads;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -310,4 +310,4 @@ public:
|
||||
|
||||
private:
|
||||
IDirect3D9 *m_direct3D;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -242,4 +242,4 @@ TEST_CASE("DXGI ToStr", "[tostr][d3d]")
|
||||
CHECK(ToStr(guid) == "GUID {2dc365d4-c562-411e-9d34-1659a4f31ddd}");
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1453,4 +1453,4 @@ HRESULT STDMETHODCALLTYPE WrappedIDXGIOutputDuplication::QueryInterface(REFIID r
|
||||
}
|
||||
|
||||
return RefCountDXGIObject::QueryInterface(riid, ppvObject);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -74,4 +74,4 @@ struct CGLDispatchTable
|
||||
#undef CGL_PTR_GEN
|
||||
};
|
||||
|
||||
extern CGLDispatchTable CGL;
|
||||
extern CGLDispatchTable CGL;
|
||||
|
||||
@@ -265,4 +265,4 @@ bool CGLDispatchTable::PopulateForReplay()
|
||||
|
||||
#undef LOAD_FUNC
|
||||
return symbols_ok;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,4 +105,4 @@ extern "C" void NSGL_destroyContext(void *handle)
|
||||
[context update];
|
||||
[context release];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,4 @@ struct EGLDispatchTable
|
||||
#undef EGL_PTR_GEN
|
||||
};
|
||||
|
||||
extern EGLDispatchTable EGL;
|
||||
extern EGLDispatchTable EGL;
|
||||
|
||||
@@ -1045,4 +1045,4 @@ HOOK_EXPORT void *AndroidGLESLayer_GetProcAddress(const char *funcName,
|
||||
return HookedGetProcAddress(funcName, (void *)next);
|
||||
}
|
||||
|
||||
#endif // ENABLED(RDOC_ANDROID)
|
||||
#endif // ENABLED(RDOC_ANDROID)
|
||||
|
||||
@@ -1004,4 +1004,4 @@ void DisableWGLHooksForEGL();
|
||||
// implementations of GetProcAddress to look up the shared list of hooks.
|
||||
void *HookedGetProcAddress(const char *funcname, void *realFunc);
|
||||
|
||||
bool FullyImplementedFunction(const char *funcname);
|
||||
bool FullyImplementedFunction(const char *funcname);
|
||||
|
||||
@@ -307,4 +307,4 @@ void GLHook::RegisterHooks()
|
||||
|
||||
ForEachAppleSupported();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -188,4 +188,4 @@ struct GLInitialContents
|
||||
// the GL object containing the contents of a texture, buffer, or program
|
||||
GLResource resource;
|
||||
uint32_t bufferLength;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2821,4 +2821,4 @@ void ResortBindings(ShaderReflection *refl, ShaderBindpointMapping *mapping)
|
||||
|
||||
for(size_t i = 0; i < permutation.size(); i++)
|
||||
refl->constantBlocks[permutation[i].first].bindPoint = (int)i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,4 +115,4 @@ struct GLXDispatchTable
|
||||
#undef GLX_PTR_GEN
|
||||
};
|
||||
|
||||
extern GLXDispatchTable GLX;
|
||||
extern GLXDispatchTable GLX;
|
||||
|
||||
@@ -22,4 +22,4 @@
|
||||
* THE SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -3720,4 +3720,4 @@ void main() {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user