This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nmigen import * | |
from enum import Enum, unique | |
from nmigen.cli import main | |
from nmigen.back.pysim import Simulator, Delay, Settle | |
@unique | |
class Op(Enum): | |
NOP = 0 | |
MOVE = 1 | |
UPDATE = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 1 | |
#include <atomic> | |
#include <vector> | |
#include <mutex> | |
#include <unordered_set> | |
__declspec(noinline) void ebi_assert(bool cond) | |
{ | |
if (!cond) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#include "ufbx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
void print_indent(FILE *f, int indent) | |
{ | |
for (int i = 0; i < indent; i++) { |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef UFBX_UFBX_C_INCLUDED | |
#define UFBX_UFBX_C_INCLUDED | |
#if defined(UFBX_HEADER_PATH) | |
#include UFBX_HEADER_PATH | |
#else | |
#include "ufbx.h" | |
#endif | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static const uint32_t ufbxi_number_start_mask = | |
(((1u << 10) - 1) << ((uint32_t)'0' - 32u)) | | |
(1u << ((uint32_t)'-' - 32u)) | | |
(1u << ((uint32_t)'+' - 32u)) | | |
(1u << ((uint32_t)'.' - 32u)) ; | |
ufbx_static_assert(ufbxi_number_start_codepoint, | |
((uint32_t)'9' - (uint32_t)'0') == 9 && | |
(uint32_t)'0' >= 32u && (uint32_t)'0' < 64u && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** \file mikktspace/mikktspace.c | |
* \ingroup mikktspace | |
*/ | |
/** | |
* Copyright (C) 2011 by Morten S. Mikkelsen | |
* | |
* This software is provided 'as-is', without any express or implied | |
* warranty. In no event will the authors be held liable for any damages | |
* arising from the use of this software. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ misc/check_dataset.py --exe build/check_fbx --root /mnt/fbx-files --host-url https://ufbx-dataset.b-cdn.net | |
== 'Autodesk Telescope' by 'Roberto Ziche' (CC BY 4.0) == | |
source url: https://github.com/Autodesk/Aurora#sample-data | |
.json url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.json | |
-- github/autodesk/autodesk-telescope.ufbx.obj -- | |
.fbx url: https://ufbx-dataset.b-cdn.net/github/autodesk/autodesk-telescope.ufbx.obj |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#define STB_IMAGE_RESIZE_IMPLEMENTATION | |
#include "stb_image_resize.h" | |
#include <stdint.h> | |
#include <stdio.h> |
NewerOlder