Skip to content

Instantly share code, notes, and snippets.

View pollend's full-sized avatar
:octocat:
working on random stuff

Michael Pollind pollend

:octocat:
working on random stuff
View GitHub Profile
MESA_VK_TRACE=rgp MESA_VK_TRACE_FRAME=500 ./Amnesia
cMaterial* cMaterialManager::LoadFromFile(const tString& asName, const tWString& asPath) {
tinyxml2::XMLDocument document;
FILE *pFile = cPlatform::OpenFile(asPath, _W("rb"));
if(!pFile) {
LOGF(LogLevel::eERROR, "failed to load material: %s", asName.c_str());
return nullptr;
}
document.LoadFile(pFile);
#pragma once
#include "graphics/ForgeHandles.h"
#include <folly/small_vector.h>
#include <algorithm>
#include <optional>
#include <array>
#include <span>
#include <cstdint>
@pollend
pollend / material.cpp
Last active September 13, 2023 16:40
NUMaterial.cpp
#pragma once
#include "math/Uuid.h"
#include <cstdint>
#include <engine/RTTI.h>
#include <folly/small_vector.h>
#include <optional>
namespace hpl::material {
This file has been truncated, but you can view the full file.
# 1 "/home/michaelpollind/projects/Nabla/src/nbl/video/IPhysicalDevice.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 447 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx.cxx" 1
# 2 "<built-in>" 2
# 1 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx" 1
# 4 "/home/michaelpollind/projects/Nabla/build/src/nbl/CMakeFiles/Nabla.dir/cmake_pch.hxx" 3
U __assert_fail@GLIBC_2.2.5
U calloc@GLIBC_2.2.5
U close@GLIBC_2.2.5
U connect@GLIBC_2.2.5
w __cxa_finalize@GLIBC_2.2.5
U __errno_location@GLIBC_2.2.5
U fcntl@GLIBC_2.2.5
U free@GLIBC_2.2.5
U freeaddrinfo@GLIBC_2.2.5
U getaddrinfo@GLIBC_2.2.5
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AzCore/Debug/Trace.h"
#include "AzCore/Math/MathStringConversions.h"
https://github.com/o3de/o3de/issues/9130
VectorInput.cpp
/// parser combinators are constructed from the bottom up:
/// first we write parsers for the smallest elements (here a space character),
/// then we'll combine them in larger parsers
fn sp<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, &'a str, E> {
let chars = " \t\r\n";
// nom combinators like `take_while` return a function. That function is the
// parser,to which we can pass the input