text string | size int64 | token_count int64 |
|---|---|---|
// Ouzel by Elviss Strazdins
#include "core/Engine.hpp"
#include "MainMenu.hpp"
#include "SpritesSample.hpp"
#include "GUISample.hpp"
#include "RTSample.hpp"
#include "AnimationsSample.hpp"
#include "InputSample.hpp"
#include "SoundSample.hpp"
#include "PerspectiveSample.hpp"
using namespace ouzel;
using namespace input;
namespace samples
{
MainMenu::MainMenu():
gitHubButton("button.png", "button_selected.png", "button_down.png", "", "GitHub", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
spritesButton("button.png", "button_selected.png", "button_down.png", "", "Sprites", "Arial", 1.0F,Color{20, 0, 0, 255}, Color::black(), Color::black()),
guiButton("button.png", "button_selected.png", "button_down.png", "", "GUI", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
renderTargetButton("button.png", "button_selected.png", "button_down.png", "", "Render target", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
animationsButton("button.png", "button_selected.png", "button_down.png", "", "Animations", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
inputButton("button.png", "button_selected.png", "button_down.png", "", "Input", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
soundButton("button.png", "button_selected.png", "button_down.png", "", "Sound", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black()),
perspectiveButton("button.png", "button_selected.png", "button_down.png", "", "Perspective", "Arial", 1.0F, Color{20, 0, 0, 255}, Color::black(), Color::black())
{
handler.uiHandler = [this](const UIEvent& event) {
if (event.type == Event::Type::actorClick)
{
if (event.actor == &gitHubButton)
engine->openUrl("https://github.com/elnormous/ouzel");
else if (event.actor == &spritesButton)
engine->getSceneManager().setScene(std::make_unique<SpritesSample>());
else if (event.actor == &guiButton)
engine->getSceneManager().setScene(std::make_unique<GUISample>());
else if (event.actor == &renderTargetButton)
engine->getSceneManager().setScene(std::make_unique<RTSample>());
else if (event.actor == &animationsButton)
engine->getSceneManager().setScene(std::make_unique<AnimationsSample>());
else if (event.actor == &inputButton)
engine->getSceneManager().setScene(std::make_unique<InputSample>());
else if (event.actor == &soundButton)
engine->getSceneManager().setScene(std::make_unique<SoundSample>());
else if (event.actor == &perspectiveButton)
engine->getSceneManager().setScene(std::make_unique<PerspectiveSample>());
}
return false;
};
handler.keyboardHandler = [](const KeyboardEvent& event) {
if (event.type == Event::Type::keyboardKeyPress)
{
switch (event.key)
{
case Keyboard::Key::escape:
engine->exit();
break;
case Keyboard::Key::menu:
case Keyboard::Key::back:
return false;
default:
break;
}
}
else if (event.type == Event::Type::keyboardKeyRelease)
{
switch (event.key)
{
case Keyboard::Key::escape:
case Keyboard::Key::menu:
case Keyboard::Key::back:
return false;
default:
break;
}
}
return true;
};
engine->getEventDispatcher().addEventHandler(handler);
addLayer(layer);
camera.setClearColorBuffer(true);
camera.setClearColor(ouzel::Color{64, 0, 0});
camera.setScaleMode(scene::Camera::ScaleMode::showAll);
camera.setTargetContentSize(ouzel::Size<float, 2>{400.0F, 600.0F});
cameraActor.addComponent(camera);
layer.addChild(cameraActor);
layer.addChild(menu);
gitHubButton.setPosition(Vector<float, 2>{0.0F, 120.0F});
menu.addWidget(gitHubButton);
spritesButton.setPosition(Vector<float, 2>{0.0F, 80.0F});
menu.addWidget(spritesButton);
guiButton.setPosition(Vector<float, 2>{0.0F, 40.0F});
menu.addWidget(guiButton);
renderTargetButton.setPosition(Vector<float, 2>{0.0F, 0.0F});
menu.addWidget(renderTargetButton);
animationsButton.setPosition(Vector<float, 2>{0.0F, -40.0F});
menu.addWidget(animationsButton);
inputButton.setPosition(Vector<float, 2>{0.0F, -80.0F});
menu.addWidget(inputButton);
soundButton.setPosition(Vector<float, 2>{0.0F, -120.0F});
menu.addWidget(soundButton);
perspectiveButton.setPosition(Vector<float, 2>{0.0F, -160.0F});
menu.addWidget(perspectiveButton);
}
}
| 5,303 | 1,642 |
/*******************************************************************************
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef QPL_TEST_SOURCE_PROVIDER_HPP
#define QPL_TEST_SOURCE_PROVIDER_HPP
/* Must provide with test_data */
#include <vector>
#include <stdexcept>
#include "util.hpp"
#define PRLE_OCTA_GROUP_SIZE 8u
#define PRLE_COUNT_FIRST_BYTE_BITS 6u
#define PRLE_COUNT_FOLLOWING_BYTE_BITS 7u
#define MASK_SEVEN_LOW_BITS 0x7F
#define MASK_SIX_LOW_BITS MASK_SEVEN_LOW_BITS >> 1
#define BIT_BUF_LEN (sizeof(uint64_t) * BYTE_BIT_LENGTH)
#define BIT_BUF_LEN_HALF (BIT_BUF_LEN >> 1)
namespace qpl::test
{
class source_provider
{
public:
source_provider(uint32_t number_of_elements,
uint32_t bit_width,
uint32_t seed,
qpl_parser parser = qpl_p_le_packed_array)
: m_number_of_elements(number_of_elements),
m_bit_width(bit_width),
m_seed(seed),
m_parser(parser)
{
m_byte_length = sizeof(uint8_t) * m_number_of_elements;
}
auto get_source() -> std::vector<uint8_t>;
auto get_zero_compressed_source() const -> std::vector<uint8_t>;
auto get_counter_source_expand_rle(uint16_t prologue = 0u) -> std::vector<uint8_t>;
auto get_count_expand_rle_value() const -> uint32_t;
private:
enum class prle_encoding_t
{
parquet,
run_length_encoding
};
auto generate_expand_rle_prle_stream() -> std::vector<uint8_t>;
static auto get_prle_header_bytes_size(uint32_t count) -> uint32_t;
auto generate_prle_stream() -> std::vector<uint8_t>;
static void store_prle_header(std::vector<uint8_t>::iterator &source_it,
uint32_t count,
prle_encoding_t prle_storage);
void store_rle(std::vector<uint8_t>::iterator &source_it,
uint32_t count,
uint32_t element) const;
void store_parquet_group(std::vector<uint8_t>::iterator &begin_it,
std::vector<uint8_t>::iterator end_it,
uint32_t count,
const std::vector<uint32_t>& elements) const;
static auto bit_reverse32(uint32_t input) -> uint32_t;
uint32_t m_seed;
uint32_t m_number_of_elements;
uint32_t m_count_number_expand_rle = 0;
uint32_t m_bit_width;
uint32_t m_byte_length;
qpl_parser m_parser;
};
auto generate_mask(uint32_t number_of_elements) -> std::vector<uint8_t>;
}
#endif //QPL_TEST_SOURCE_PROVIDER_HPP
| 2,910 | 996 |
#include "AppCUI.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
const unsigned char __lower_case_table__[256] = { 0,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,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255 };
#define STRING_FLAG_STACK_BUFFER 0x80000000
#define SNPRINTF _snprintf
#define STRING_FLAG_STATIC_BUFFER 1
#define STRING_FLAG_CONSTANT 2
#define STRING_FLAG_STATIC_WITH_GROW 4
#define COMPUTE_TEXT_SIZE(text,textSize) if (textSize==0xFFFFFFFF) { textSize = Len(text);}
#define PREPATE_STRING_SOURCE_DESTINATION_PARAMS \
CHECK(destination, false, "Expecting a valid (non-null) destination string"); \
CHECK(source, false, "Expecting a valid (non-null) source parameter"); \
CHECK(maxDestinationSize > 0, false, "Expecting at least one character available in destination (maxDestinationSize should be bigger than 0)"); \
COMPUTE_TEXT_SIZE(source, sourceSize); \
CHECK(sourceSize < maxDestinationSize, false, "Current destination size (%d) is smaller than the size of the text (%d)", maxDestinationSize, sourceSize);
#define VALIDATE_STRINGS_TO_COMPARE \
CHECK(sir1, false, "Expecting a valid (non-null) first parameter !"); \
CHECK(sir2, false, "Expecting a valid (non-null) first parameter !"); \
const unsigned char *p1 = (const unsigned char *)sir1; \
const unsigned char *p2 = (const unsigned char *)sir2;
#define VALIDATE_ALLOCATED_SPACE(requiredSpace, returnValue) \
if ((requiredSpace) > (Allocated & 0x7FFFFFFF)) { \
CHECK(Grow(requiredSpace), returnValue, "Fail to allocate space for %d bytes", (requiredSpace)); \
}
#define MEMCOPY memcpy
char tempCharForReferenceReturn;
int c99_snprintf(char *outBuf, size_t size, const char *format, ...)
{
int count;
va_list ap;
va_start(ap, format);
count = vsnprintf(outBuf, size, format, ap);
va_end(ap);
return count;
}
#define snprintf c99_snprintf
//Statical functions
unsigned int AppCUI::Utils::String::Len(const char *string)
{
if (string==nullptr)
return 0;
const char* p = string;
while ((*string)!=0) { string++; }
return (unsigned int)(string-p);
}
bool AppCUI::Utils::String::Add(char *destination, const char *source, unsigned int maxDestinationSize, unsigned int destinationSize, unsigned int sourceSize, unsigned int * resultedDestinationSize)
{
PREPATE_STRING_SOURCE_DESTINATION_PARAMS;
COMPUTE_TEXT_SIZE(destination, destinationSize);
CHECK(destinationSize + sourceSize < maxDestinationSize, false, "A total space of %d bytes is required to add string (available is %d)", destinationSize + sourceSize, maxDestinationSize);
if (sourceSize > 0) {
MEMCOPY(destination+destinationSize, source, sourceSize);
}
destination[sourceSize+destinationSize] = 0;
if (resultedDestinationSize)
*resultedDestinationSize = sourceSize+destinationSize;
return true;
}
bool AppCUI::Utils::String::Set(char *destination, const char *source, unsigned int maxDestinationSize, unsigned int sourceSize, unsigned int * resultedDestinationSize)
{
PREPATE_STRING_SOURCE_DESTINATION_PARAMS;
if (sourceSize > 0) {
MEMCOPY(destination, source, sourceSize);
}
destination[sourceSize]=0;
if (resultedDestinationSize)
*resultedDestinationSize = sourceSize;
return true;
}
bool AppCUI::Utils::String::Equals(const char *sir1,const char *sir2,bool ignoreCase)
{
VALIDATE_STRINGS_TO_COMPARE;
if (ignoreCase)
{
while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) {
p1++;
p2++;
}
return ((*p2) == 0) && ((*p1)==0);
}
else {
while ((*p1) && (*p2) && ((*p1) == (*p2))) {
p1++;
p2++;
}
return ((*p2) == 0) && ((*p1) == 0);
}
}
bool AppCUI::Utils::String::StartsWith(const char *sir1, const char *sir2, bool ignoreCase)
{
VALIDATE_STRINGS_TO_COMPARE;
if (ignoreCase)
{
while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) {
p1++;
p2++;
}
return (*p2) == 0;
}
else {
while ((*p1) && (*p2) && ((*p1) == (*p2))) {
p1++;
p2++;
}
return (*p2) == 0;
}
}
bool AppCUI::Utils::String::EndsWith(const char *sir1, const char *sir2, bool ignoreCase, unsigned int sir1Size, unsigned int sir2Size)
{
VALIDATE_STRINGS_TO_COMPARE
COMPUTE_TEXT_SIZE(sir1, sir1Size);
COMPUTE_TEXT_SIZE(sir2, sir2Size);
if (sir2Size>sir1Size)
return false;
p1 += (sir2Size - sir1Size);
if (ignoreCase)
{
while ((*p1) && (*p2) && ((__lower_case_table__[*p1]) == (__lower_case_table__[*p2]))) {
p1++;
p2++;
}
return ((*p2) == 0) && ((*p1) == 0);
}
else {
while ((*p1) && (*p2) && ((*p1) == (*p2))) {
p1++;
p2++;
}
return ((*p2) == 0) && ((*p1) == 0);
}
}
//--------------------------------------------------- CONSTRUCTORI OBIECT ----------------------------------------------------------------
AppCUI::Utils::String::String(void)
{
Text = nullptr;
Size = Allocated = 0;
}
AppCUI::Utils::String::String(const AppCUI::Utils::String &s)
{
Text = nullptr;
Size = Allocated = 0;
if (Create(s.Size+32))
{
if (s.Text)
{
MEMCOPY(this->Text, s.Text, s.Size + 1);
this->Size = s.Size;
}
}
}
AppCUI::Utils::String::~String(void)
{
Destroy();
}
void AppCUI::Utils::String::Destroy()
{
if ((Text!=nullptr) && ((Allocated & STRING_FLAG_STACK_BUFFER)==0))
{
delete Text;
}
Text = nullptr;
Size = Allocated = 0;
}
bool AppCUI::Utils::String::Create(unsigned int initialAllocatedBufferSize)
{
CHECK(initialAllocatedBufferSize == 0, false, "initialAllocatedBufferSize must be bigger than 0 !");
initialAllocatedBufferSize = ((initialAllocatedBufferSize | 15) + 1) & 0x7FFFFFFF;
if (initialAllocatedBufferSize <= (Allocated & 0x7FFFFFFF))
{
*Text = 0;
Size = 0;
return true;
}
Destroy();
char * temp = new char[initialAllocatedBufferSize];
CHECK(temp, false, "Failed to allocate %d bytes", initialAllocatedBufferSize);
Text = temp;
Size = 0;
*Text = 0;
Allocated = initialAllocatedBufferSize;
return true;
}
bool AppCUI::Utils::String::Create(const char* text)
{
CHECK(text, false, "Expecting a non-null string !");
unsigned int len = String::Len(text);
CHECK(Create(len+1), false, "Fail to create string buffer with len: %d", len);
MEMCOPY(this->Text, text, len + 1);
Size = len + 1;
this->Text[len] = 0;
return true;
}
bool AppCUI::Utils::String::Create(char* buffer, unsigned int bufferSize, bool emptyString)
{
CHECK(buffer, false, "Expecting a valid (non-null) buffer");
CHECK(bufferSize>=1, false, "bufferSize must be bigger than 1");
CHECK(bufferSize < 0x7FFFFFFF, false, "bufferSize must be smaller than 0x7FFFFFFF");
Destroy();
Text = buffer;
Allocated = (bufferSize & 0x7FFFFFFF) | STRING_FLAG_STACK_BUFFER;
if (emptyString)
{
Size = 0;
Text[Size] = 0;
} else {
const char * e = buffer + bufferSize - 1;
Size = 0;
while ((buffer < e) && (*buffer))
{
buffer++;
Size++;
}
*buffer = 0;
}
return true;
}
void AppCUI::Utils::String::Clear()
{
if (Text)
{
*Text = 0;
Size = 0;
}
}
bool AppCUI::Utils::String::Realloc(unsigned int newSize)
{
if (newSize<=(Allocated & 0x7FFFFFFF))
return true;
return Grow(newSize);
}
bool AppCUI::Utils::String::Grow(unsigned int newSize)
{
newSize = ((newSize | 15) + 1) & 0x7FFFFFFF;
if (newSize <= (Allocated & 0x7FFFFFFF))
return true;
char * temp = new char[newSize];
CHECK(temp, false, "Failed to allocate: %d bytes", newSize);
if (Text)
{
MEMCOPY(temp, Text, Size + 1);
if ((Allocated & STRING_FLAG_STACK_BUFFER) == 0)
delete Text;
}
Text = temp;
Allocated = newSize;
return true;
}
// ============================================================================================[ADD FUNCTIONS]=====================
bool AppCUI::Utils::String::Add(const char *text,unsigned int txSize)
{
CHECK(text, false, "Expecting a non-null parameter !");
COMPUTE_TEXT_SIZE(text, txSize);
VALIDATE_ALLOCATED_SPACE(this->Size + txSize + 1, false);
MEMCOPY(this->Text + this->Size, text, txSize);
this->Size += txSize;
this->Text[this->Size] = 0;
return true;
}
bool AppCUI::Utils::String::Add(const String& text)
{
return this->Add(text.Text, text.Size);
}
bool AppCUI::Utils::String::Add(const String* text)
{
CHECK(text, false, "Expecting a non-null first parameter !");
return this->Add(text->Text, text->Size);
}
bool AppCUI::Utils::String::AddChar(char ch)
{
CHECK(ch, false, "NULL character can not be added !");
char temp[2];
temp[0]=ch;
temp[1]=0;
return this->Add(temp,1);
}
bool AppCUI::Utils::String::AddChars(char ch,unsigned int count)
{
CHECK(ch, false, "NULL character can not be added !");
CHECK(count, false, "'count' should be bigger than 0");
VALIDATE_ALLOCATED_SPACE(this->Size + count + 1, false);
char * p = this->Text + this->Size;
this->Size += count;
while (count) { *p = ch; p++; count--; }
*p = 0;
return true;
}
// ============================================================================================[SET FUNCTIONS]=====================
bool AppCUI::Utils::String::Set(const char *text,unsigned int txSize)
{
CHECK(text, false, "Expecting a non-null parameter !");
COMPUTE_TEXT_SIZE(text, txSize);
VALIDATE_ALLOCATED_SPACE(txSize + 1, false);
MEMCOPY(this->Text, text, txSize);
this->Size = txSize;
this->Text[this->Size] = 0;
return true;
}
bool AppCUI::Utils::String::Set(const AppCUI::Utils::String &text)
{
return this->Set(text.Text, text.Size);
}
bool AppCUI::Utils::String::Set(const AppCUI::Utils::String *text)
{
CHECK(text, false, "Expecting a non-null first parameter !");
return this->Set(text->Text, text->Size);
}
bool AppCUI::Utils::String::SetChars(char ch, unsigned int count)
{
CHECK(ch, false, "NULL character can not be added !");
CHECK(count, false, "'count' should be bigger than 0");
VALIDATE_ALLOCATED_SPACE(count + 1, false);
char * p = this->Text;
this->Size += count;
while (count) { *p = ch; p++; count--; }
*p = 0;
return true;
}
bool AppCUI::Utils::String::InsertChar(char character, unsigned int position)
{
CHECK(character, false, "NULL character can not be added !");
VALIDATE_ALLOCATED_SPACE(this->Size + 2, false);
CHECK(position <= this->Size, false, "Invalid insert offset: %d (should be between 0 and %d)", position, this->Size);
if (position == this->Size)
{
this->Text[this->Size++] = character;
this->Text[this->Size] = 0;
}
else {
memmove(this->Text + position + 1, this->Text + position, this->Size - position);
this->Text[position] = character;
this->Size++;
this->Text[this->Size] = 0;
}
return true;
}
bool AppCUI::Utils::String::DeleteChar(unsigned int position)
{
CHECK(position < this->Size, false, "Invalid delete offset: %d (should be between 0 and %d)", position, this->Size-1);
if ((position+1) == this->Size)
{
this->Size--;
this->Text[this->Size] = 0;
}
else {
memmove(this->Text + position, this->Text + position + 1, this->Size - (position + 1));
this->Size--;
this->Text[this->Size] = 0;
}
return true;
}
bool AppCUI::Utils::String::Delete(unsigned int start, unsigned int end)
{
CHECK(end <= this->Size, false, "Invalid delete offset: %d (should be between 0 and %d)", position, this->Size);
CHECK(start < end, false, "Start parameter (%d) should be smaller than End parameter (%d)", start, end);
if (end == this->Size)
{
this->Size = start;
this->Text[this->Size] = 0;
}
else {
memmove(this->Text + start, this->Text + end, this->Size - end);
this->Size-=(end-start);
this->Text[this->Size] = 0;
}
return true;
}
int AppCUI::Utils::String::GetChar(int index) const
{
if (Text==nullptr)
return 0;
if ((index>=0) && (index<(int)Size))
return Text[(unsigned int)index];
unsigned int idx = (unsigned int)(-index);
if (idx<Size)
return Text[Size-idx];
return 0;
}
bool AppCUI::Utils::String::SetChar(int index,char value)
{
CHECK(Text, false, "Text buffer was not allocated !");
if ((index>=0) && (index<(int)Size))
{
Text[index] = value;
return true;
}
unsigned int idx = (unsigned int)(-index);
if (idx < Size)
{
Text[Size+idx] = value;
return true;
}
RETURNERROR(false, "Invalid text index: %d for a text with length %d", index, this->Size);
}
bool AppCUI::Utils::String::SetFormat(const char *format, ...)
{
va_list args;
int len, len2;
CHECK(format, false, "Expecting a valid(non-null) format parameter !");
va_start( args, format );
len = vsnprintf(nullptr, 0, format, args);
va_end(args);
CHECK(len >= 0, false, "Invalid format (unable to format your string) !");
VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2, false);
va_start( args, format );
len2 = vsnprintf( Text, (Allocated & 0x7FFFFFFF)-1, format, args );
va_end (args);
if (len2 < 0) {
Clear();
RETURNERROR(false, "Fail on vsnprintf !");
}
this->Size = (unsigned int)len2;
Text[this->Size]=0;
return true;
}
bool AppCUI::Utils::String::AddFormat(const char *format, ...)
{
va_list args;
int len, len2;
CHECK(format, false, "Expecting a valid(non-null) format parameter !");
va_start(args, format);
len = vsnprintf(nullptr, 0, format, args);
va_end(args);
CHECK(len >= 0, false, "Invalid format (unable to format your string) !");
VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2 + this->Size, false);
va_start(args, format);
len2 = vsnprintf(Text, (Allocated & 0x7FFFFFFF) - 1, format, args);
va_end(args);
if (len2 < 0) {
Clear();
RETURNERROR(false, "Fail on vsnprintf !");
}
this->Size += (unsigned int)len2;
Text[this->Size] = 0;
return true;
}
const char* AppCUI::Utils::String::Format(const char *format, ...)
{
va_list args;
int len, len2;
CHECK(format, nullptr, "Expecting a valid(non-null) format parameter !");
va_start(args, format);
len = vsnprintf(nullptr, 0, format, args);
va_end(args);
CHECK(len >= 0, nullptr, "Invalid format (unable to format your string) !");
VALIDATE_ALLOCATED_SPACE(((unsigned int)len) + 2, nullptr);
va_start(args, format);
len2 = vsnprintf(Text, (Allocated & 0x7FFFFFFF) - 1, format, args);
va_end(args);
if (len2 < 0) {
Clear();
RETURNERROR(nullptr, "Fail on vsnprintf !");
}
this->Size = ((unsigned int)len2);
Text[this->Size] = 0;
return Text;
}
bool AppCUI::Utils::String::Truncate(unsigned int newText)
{
if ((newText<=Size) && (newText>=0))
{
Size=newText;
Text[Size]=0;
return true;
}
return false;
}
bool AppCUI::Utils::String::StartsWith(const char *text,bool ignoreCase) const
{
return String::StartsWith(Text,text,ignoreCase);
}
bool AppCUI::Utils::String::StartsWith(const AppCUI::Utils::String *text, bool ignoreCase) const
{
CHECK(text !=nullptr,false,"Expecting a non null parameter");
return String::StartsWith(Text,text->Text,ignoreCase);
}
bool AppCUI::Utils::String::StartsWith(const AppCUI::Utils::String &text, bool ignoreCase) const
{
return String::StartsWith(Text, text.Text, ignoreCase);
}
bool AppCUI::Utils::String::EndsWith(const char *ss, bool ignoreCase) const
{
return String::EndsWith(Text,ss,ignoreCase,Size);
}
bool AppCUI::Utils::String::EndsWith(const AppCUI::Utils::String *text, bool ignoreCase) const
{
CHECK(text != nullptr, false, "Expecting a non null parameter");
return String::EndsWith(Text,text->Text,ignoreCase,Size,text->Size);
}
bool AppCUI::Utils::String::EndsWith(const AppCUI::Utils::String &text, bool ignoreCase) const
{
return String::EndsWith(Text, text.Text, ignoreCase, Size, text.Size);
}
bool AppCUI::Utils::String::Equals(const char *text, bool ignoreCase) const
{
return String::Equals(this->Text, text, ignoreCase);
}
bool AppCUI::Utils::String::Equals(const String& text, bool ignoreCase) const
{
if (this->Size != text.Size)
return false;
return String::Equals(this->Text, text.Text, ignoreCase);
}
char& AppCUI::Utils::String::operator[] (int poz)
{
if ((Text==nullptr) || (Size==0))
{
tempCharForReferenceReturn = 0;
return tempCharForReferenceReturn;
}
if (poz < 0)
poz += (int)this->Size;
if (((poz+1) > (int)Size) || (poz<0))
{
tempCharForReferenceReturn = 0;
return tempCharForReferenceReturn;
}
return Text[poz];
} | 17,995 | 6,959 |
/* @file command_manager.h
* @date <date>
* @brief <Descriptions>
*
* Copyright (C) 2020 NIIC EDA
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <cstdio>
#include <mutex>
#include <stack>
#include "command_manager.h"
#include "db/util/box.h"
namespace open_edi {
namespace infra {
// using namespace opengeo;
std::mutex infra_mutex_;
CommandManager* CommandManager::instance_ = nullptr;
CommandManager* CommandManager::getCommandManager() {
if (instance_ == nullptr) {
if (infra_mutex_.try_lock()) {
instance_ = new CommandManager();
infra_mutex_.unlock();
}
}
return instance_;
}
int CommandManager::RegisterCommand(Command* v) {
std::map<std::string, Command*>::iterator iter = commands_.find(v->getName());
if (iter == commands_.end()) {
commands_[v->getName()] = v;
return 0;
} else {
return -1;
}
}
Command* CommandManager::getCommandByName(const char* name) {
std::map<std::string, Command*>::iterator iter = commands_.find(name);
if (iter != commands_.end())
return iter->second;
else
return nullptr;
}
Command* CommandManager::createCommandByName(const char* name) {
Command* command = new Command();
command->setName(name);
RegisterCommand(command);
return command;
}
Command* CommandManager::parseCommand(int argc, const char *argv[]) {
Command* cmd = getCommandManager()->getCommandByName(argv[0]);
if (!strcmp(argv[1], "--help")) {
message->info(cmd->getDescription().c_str());
for (int i = 0; i < cmd->getOptionNum(); i++) {
Option *opt = cmd->getOption(i);
if (opt == nullptr) {
message->issueMsg("INFRA", kGetOptionFail, kError);
}
message->info(opt->getDescription().c_str());
}
//return nullptr;
}
if (cmd != nullptr) {
int res = cmd->parser(argc, argv);
if (res != 0) {
message->info("mesage parse error\n");
return cmd; // whether return nulllptr
}
} else {
message->info("command not recoginized \n");
}
return cmd;
}
Command* CommandManager::createCommand(const char* cmd_name, const char* description, Option& opt_head) {
Command* command = new Command();
std::string name_cmd = cmd_name;
command->setName(cmd_name);
command->setDescription(description);
RegisterCommand(command);
Option* opt_ptr = &opt_head;
std::stack<Option*> opt_stack; // to reverse the sequence in the command
while (opt_ptr) {
opt_stack.push(opt_ptr);
opt_ptr = opt_ptr->getNext();
}
while (!opt_stack.empty()) {
command->addOption(opt_stack.top());
// message->info("add opt %s in create command \n", opt_stack.top()->getName().c_str());
opt_stack.pop();
}
return command;
}
Command* CommandManager::createCommand(const char* cmd_name, const char* description, Option& opt_head, OptionGroup& group_head) {
Command* command = new Command();
std::string name_cmd = cmd_name;
command->setName(cmd_name);
command->setDescription(description);
RegisterCommand(command);
Option* opt_ptr = &opt_head;
std::stack<Option*> opt_stack; // to reverse the sequence in the command
while (opt_ptr) {
opt_stack.push(opt_ptr);
opt_ptr = opt_ptr->getNext();
}
while (!opt_stack.empty()) {
command->addOption(opt_stack.top());
// message->info("add opt %s in create command \n", opt_stack.top()->getName().c_str());
opt_stack.pop();
}
OptionGroup* group_ptr = &group_head;
while (group_ptr) {
Option* opt1 = command->getOption(group_ptr->getOpt1Name().c_str());
if (opt1 == nullptr)
message->issueMsg("INFRA", kGroupGetOptionFail, kError, group_ptr->getOpt1Name().c_str());
group_ptr->setOpt1Ptr(opt1);
Option* opt2 = command->getOption(group_ptr->getOpt2Name().c_str());
if (opt2 == nullptr)
message->issueMsg("INFRA", kGroupGetOptionFail, kError, group_ptr->getOpt2Name().c_str());
group_ptr->setOpt2Ptr(opt2);
command->addGroup(group_ptr);
group_ptr = group_ptr->getNext();
}
return command;
}
} // namespace infra
} // namespace open_edi
| 4,542 | 1,428 |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2015-2015. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP
#define BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP
#ifndef BOOST_CONFIG_HPP
# include <boost/config.hpp>
#endif
#if defined(BOOST_HAS_PRAGMA_ONCE)
# pragma once
#endif
#include <boost/intrusive/detail/workaround.hpp>
#include <boost/intrusive/detail/mpl.hpp>
#include <boost/intrusive/detail/ebo_functor_holder.hpp>
namespace boost{
namespace intrusive{
template<class Key, class T, class KeyCompare, class KeyOfValue>
struct tree_value_compare
: public boost::intrusive::detail::ebo_functor_holder<KeyCompare>
{
typedef boost::intrusive::detail::ebo_functor_holder<KeyCompare> base_t;
typedef T value_type;
typedef KeyCompare key_compare;
typedef KeyOfValue key_of_value;
typedef Key key_type;
tree_value_compare()
: base_t()
{}
explicit tree_value_compare(const key_compare &kcomp)
: base_t(kcomp)
{}
tree_value_compare (const tree_value_compare &x)
: base_t(x.base_t::get())
{}
tree_value_compare &operator=(const tree_value_compare &x)
{ this->base_t::get() = x.base_t::get(); return *this; }
tree_value_compare &operator=(const key_compare &x)
{ this->base_t::get() = x; return *this; }
BOOST_INTRUSIVE_FORCEINLINE const key_compare &key_comp() const
{ return static_cast<const key_compare &>(*this); }
BOOST_INTRUSIVE_FORCEINLINE key_compare &key_comp()
{ return static_cast<key_compare &>(*this); }
template<class U>
struct is_key
: boost::intrusive::detail::is_same<const U, const key_type>
{};
template<class U>
const key_type & key_forward
(const U &key, typename boost::intrusive::detail::enable_if<is_key<U> >::type* = 0) const
{ return key; }
template<class U>
BOOST_INTRUSIVE_FORCEINLINE const key_type & key_forward
(const U &key, typename boost::intrusive::detail::disable_if<is_key<U> >::type* = 0) const
{ return KeyOfValue()(key); }
template<class KeyType, class KeyType2>
BOOST_INTRUSIVE_FORCEINLINE bool operator()(const KeyType &key1, const KeyType2 &key2) const
{ return key_compare::operator()(this->key_forward(key1), this->key_forward(key2)); }
template<class KeyType, class KeyType2>
BOOST_INTRUSIVE_FORCEINLINE bool operator()(const KeyType &key1, const KeyType2 &key2)
{ return key_compare::operator()(this->key_forward(key1), this->key_forward(key2)); }
};
} //namespace intrusive{
} //namespace boost{
#endif //#ifdef BOOST_INTRUSIVE_DETAIL_TREE_VALUE_COMPARE_HPP
| 2,990 | 1,087 |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011 Bryce Adelstein-Lelbach
// Copyright (c) 2011-2013 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
////////////////////////////////////////////////////////////////////////////////
#include <hpx/config.hpp>
#include <hpx/exception.hpp>
#include <hpx/hpx.hpp>
#include <hpx/runtime/agas/addressing_service.hpp>
#include <hpx/runtime/agas/big_boot_barrier.hpp>
#include <hpx/runtime/agas/component_namespace.hpp>
#include <hpx/runtime/agas/locality_namespace.hpp>
#include <hpx/runtime/agas/primary_namespace.hpp>
#include <hpx/runtime/agas/symbol_namespace.hpp>
#include <hpx/runtime/agas/server/component_namespace.hpp>
#include <hpx/runtime/agas/server/locality_namespace.hpp>
#include <hpx/runtime/agas/server/primary_namespace.hpp>
#include <hpx/runtime/agas/server/symbol_namespace.hpp>
#include <hpx/runtime/threads/thread_data.hpp>
#include <hpx/util/logging.hpp>
#include <hpx/util/runtime_configuration.hpp>
#include <hpx/include/performance_counters.hpp>
#include <hpx/performance_counters/counter_creators.hpp>
#if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400)
#include <hpx/lcos/broadcast.hpp>
#endif
#include <boost/format.hpp>
#include <boost/icl/closed_interval.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/serialization/vector.hpp>
namespace hpx { namespace agas
{
struct addressing_service::bootstrap_data_type
{ // {{{
bootstrap_data_type()
: primary_ns_server_()
, locality_ns_server_(&primary_ns_server_)
, component_ns_server_()
, symbol_ns_server_()
{}
void register_counter_types()
{
server::locality_namespace::register_counter_types();
server::primary_namespace::register_counter_types();
server::component_namespace::register_counter_types();
server::symbol_namespace::register_counter_types();
}
void register_server_instance(char const* servicename)
{
locality_ns_server_.register_server_instance(servicename);
primary_ns_server_.register_server_instance(servicename);
component_ns_server_.register_server_instance(servicename);
symbol_ns_server_.register_server_instance(servicename);
}
void unregister_server_instance(error_code& ec)
{
locality_ns_server_.unregister_server_instance(ec);
if (!ec) primary_ns_server_.unregister_server_instance(ec);
if (!ec) component_ns_server_.unregister_server_instance(ec);
if (!ec) symbol_ns_server_.unregister_server_instance(ec);
}
server::primary_namespace primary_ns_server_;
server::locality_namespace locality_ns_server_;
server::component_namespace component_ns_server_;
server::symbol_namespace symbol_ns_server_;
}; // }}}
struct addressing_service::hosted_data_type
{ // {{{
hosted_data_type()
: primary_ns_server_()
, symbol_ns_server_()
{}
void register_counter_types()
{
server::primary_namespace::register_counter_types();
server::symbol_namespace::register_counter_types();
}
void register_server_instance(char const* servicename
, boost::uint32_t locality_id)
{
primary_ns_server_.register_server_instance(servicename, locality_id);
symbol_ns_server_.register_server_instance(servicename, locality_id);
}
void unregister_server_instance(error_code& ec)
{
primary_ns_server_.unregister_server_instance(ec);
if (!ec) symbol_ns_server_.unregister_server_instance(ec);
}
locality_namespace locality_ns_;
component_namespace component_ns_;
server::primary_namespace primary_ns_server_;
server::symbol_namespace symbol_ns_server_;
}; // }}}
struct addressing_service::gva_cache_key
{ // {{{ gva_cache_key implementation
private:
typedef boost::icl::closed_interval<naming::gid_type, std::less>
key_type;
key_type key_;
public:
gva_cache_key()
: key_()
{}
explicit gva_cache_key(
naming::gid_type const& id_
, boost::uint64_t count_ = 1
)
: key_(naming::detail::get_stripped_gid(id_)
, naming::detail::get_stripped_gid(id_) + (count_ - 1))
{
BOOST_ASSERT(count_);
}
naming::gid_type get_gid() const
{
return boost::icl::lower(key_);
}
boost::uint64_t get_count() const
{
naming::gid_type const size = boost::icl::length(key_);
BOOST_ASSERT(size.get_msb() == 0);
return size.get_lsb();
}
friend bool operator<(
gva_cache_key const& lhs
, gva_cache_key const& rhs
)
{
return boost::icl::exclusive_less(lhs.key_, rhs.key_);
}
friend bool operator==(
gva_cache_key const& lhs
, gva_cache_key const& rhs
)
{
// Is lhs in rhs?
if (1 == lhs.get_count() && 1 != rhs.get_count())
return boost::icl::contains(rhs.key_, lhs.key_);
// Is rhs in lhs?
else if (1 != lhs.get_count() && 1 == rhs.get_count())
return boost::icl::contains(lhs.key_, lhs.key_);
// Direct hit
return lhs.key_ == rhs.key_;
}
}; // }}}
struct addressing_service::gva_erase_policy
{ // {{{ gva_erase_policy implementation
gva_erase_policy(
naming::gid_type const& id
, boost::uint64_t count
)
: entry(id, count)
{}
typedef std::pair<
gva_cache_key, boost::cache::entries::lfu_entry<gva>
> entry_type;
bool operator()(
entry_type const& p
) const
{
return p.first == entry;
}
gva_cache_key entry;
}; // }}}
addressing_service::addressing_service(
parcelset::parcelport& pp
, util::runtime_configuration const& ini_
, runtime_mode runtime_type_
)
: gva_cache_(new gva_cache_type)
, console_cache_(0)
, max_refcnt_requests_(ini_.get_agas_max_pending_refcnt_requests())
, refcnt_requests_count_(0)
, refcnt_requests_(new refcnt_requests_type)
, service_type(ini_.get_agas_service_mode())
, runtime_type(runtime_type_)
, caching_(ini_.get_agas_caching_mode())
, range_caching_(caching_ ? ini_.get_agas_range_caching_mode() : false)
, action_priority_(ini_.get_agas_dedicated_server() ?
threads::thread_priority_normal : threads::thread_priority_critical)
, here_() // defer initializing this
, rts_lva_(0)
, state_(starting)
, locality_()
{ // {{{
create_big_boot_barrier(pp, ini_);
if (caching_)
gva_cache_->reserve(ini_.get_agas_local_cache_size());
if (service_type == service_mode_bootstrap)
launch_bootstrap(ini_);
// now, boot the parcel port
pp.run(false);
}
void addressing_service::initialize()
{
if (service_type == service_mode_bootstrap)
{
get_big_boot_barrier().wait();
}
else
{
launch_hosted();
get_big_boot_barrier().wait(&hosted->primary_ns_server_,
&hosted->symbol_ns_server_);
}
set_status(running);
} // }}}
naming::locality const& addressing_service::get_here() const
{
if (!here_) {
runtime* rt = get_runtime_ptr();
BOOST_ASSERT(rt &&
rt->get_state() >= runtime::state_initialized &&
rt->get_state() < runtime::state_stopped);
here_ = rt->here();
}
return here_;
}
void* addressing_service::get_hosted_primary_ns_ptr() const
{
BOOST_ASSERT(0 != hosted.get());
return &hosted->primary_ns_server_;
}
void* addressing_service::get_hosted_symbol_ns_ptr() const
{
BOOST_ASSERT(0 != hosted.get());
return &hosted->symbol_ns_server_;
}
void* addressing_service::get_bootstrap_locality_ns_ptr() const
{
BOOST_ASSERT(0 != bootstrap.get());
return &bootstrap->locality_ns_server_;
}
void* addressing_service::get_bootstrap_primary_ns_ptr() const
{
BOOST_ASSERT(0 != bootstrap.get());
return &bootstrap->primary_ns_server_;
}
void* addressing_service::get_bootstrap_component_ns_ptr() const
{
BOOST_ASSERT(0 != bootstrap.get());
return &bootstrap->component_ns_server_;
}
void* addressing_service::get_bootstrap_symbol_ns_ptr() const
{
BOOST_ASSERT(0 != bootstrap.get());
return &bootstrap->symbol_ns_server_;
}
void addressing_service::launch_bootstrap(
util::runtime_configuration const& ini_
)
{ // {{{
bootstrap = boost::make_shared<bootstrap_data_type>();
runtime& rt = get_runtime();
naming::locality const ep = ini_.get_agas_locality();
naming::gid_type const here =
naming::get_gid_from_locality_id(HPX_AGAS_BOOTSTRAP_PREFIX);
naming::gid_type const locality_gid = bootstrap_locality_namespace_gid();
gva locality_gva(ep,
server::locality_namespace::get_component_type(), 1U,
static_cast<void*>(&bootstrap->locality_ns_server_));
locality_ns_addr_ = naming::address(ep,
server::locality_namespace::get_component_type(),
static_cast<void*>(&bootstrap->locality_ns_server_));
naming::gid_type const primary_gid = bootstrap_primary_namespace_gid();
gva primary_gva(ep,
server::primary_namespace::get_component_type(), 1U,
static_cast<void*>(&bootstrap->primary_ns_server_));
primary_ns_addr_ = naming::address(ep,
server::primary_namespace::get_component_type(),
static_cast<void*>(&bootstrap->primary_ns_server_));
naming::gid_type const component_gid = bootstrap_component_namespace_gid();
gva component_gva(ep,
server::component_namespace::get_component_type(), 1U,
static_cast<void*>(&bootstrap->component_ns_server_));
component_ns_addr_ = naming::address(ep,
server::component_namespace::get_component_type(),
static_cast<void*>(&bootstrap->component_ns_server_));
naming::gid_type const symbol_gid = bootstrap_symbol_namespace_gid();
gva symbol_gva(ep,
server::symbol_namespace::get_component_type(), 1U,
static_cast<void*>(&bootstrap->symbol_ns_server_));
symbol_ns_addr_ = naming::address(ep,
server::symbol_namespace::get_component_type(),
static_cast<void*>(&bootstrap->symbol_ns_server_));
set_local_locality(here);
rt.get_config().parse("assigned locality",
boost::str(boost::format("hpx.locality!=%1%")
% naming::get_locality_id_from_gid(here)));
boost::uint32_t num_threads = boost::lexical_cast<boost::uint32_t>(
ini_.get_entry("hpx.os_threads", boost::uint32_t(1)));
request locality_req(locality_ns_allocate, ep, 4, num_threads);
bootstrap->locality_ns_server_.remote_service(locality_req);
naming::gid_type runtime_support_gid1(here);
runtime_support_gid1.set_lsb(rt.get_runtime_support_lva());
naming::gid_type runtime_support_gid2(here);
runtime_support_gid2.set_lsb(boost::uint64_t(0));
gva runtime_support_address(ep
, components::get_component_type<components::server::runtime_support>()
, 1U, rt.get_runtime_support_lva());
request reqs[] =
{
request(primary_ns_bind_gid, locality_gid, locality_gva)
, request(primary_ns_bind_gid, primary_gid, primary_gva)
, request(primary_ns_bind_gid, component_gid, component_gva)
, request(primary_ns_bind_gid, symbol_gid, symbol_gva)
// , request(primary_ns_bind_gid, runtime_support_gid1, runtime_support_address)
// , request(primary_ns_bind_gid, runtime_support_gid2, runtime_support_address)
};
for (std::size_t i = 0; i < (sizeof(reqs) / sizeof(request)); ++i)
bootstrap->primary_ns_server_.remote_service(reqs[i]);
register_name("/0/agas/locality#0", here);
if (is_console())
register_name("/0/locality#console", here);
naming::gid_type lower, upper;
get_id_range(ep, HPX_INITIAL_GID_RANGE, lower, upper);
rt.get_id_pool().set_range(lower, upper);
// get_big_boot_barrier().wait();
// set_status(running);
} // }}}
void addressing_service::launch_hosted()
{ // {{{
hosted = boost::make_shared<hosted_data_type>();
// get_big_boot_barrier().wait(&hosted->primary_ns_server_);
// set_status(running);
} // }}}
void addressing_service::adjust_local_cache_size()
{ // {{{
// adjust the local AGAS cache size for the number of connected localities
if (caching_)
{
util::runtime_configuration const& cfg = get_runtime().get_config();
std::size_t local_cache_size = cfg.get_agas_local_cache_size();
std::size_t local_cache_size_per_thread =
cfg.get_agas_local_cache_size_per_thread();
std::size_t cache_size = (std::max)(local_cache_size,
local_cache_size_per_thread * std::size_t(get_num_overall_threads()));
if (cache_size > gva_cache_->capacity())
gva_cache_->reserve(cache_size);
LAGAS_(info) << (boost::format(
"addressing_service::adjust_local_cache_size, local_cache_size(%1%), "
"local_cache_size_per_thread(%2%), cache_size(%3%)")
% local_cache_size % local_cache_size_per_thread % cache_size);
}
} // }}}
void addressing_service::set_local_locality(naming::gid_type const& g)
{
locality_ = g;
if (is_bootstrap())
bootstrap->primary_ns_server_.set_local_locality(g);
else
hosted->primary_ns_server_.set_local_locality(g);
}
response addressing_service::service(
request const& req
, error_code& ec
)
{ // {{{
if (req.get_action_code() & primary_ns_service)
{
if (is_bootstrap())
return bootstrap->primary_ns_server_.service(req, ec);
return hosted->primary_ns_server_.service(req, ec);
}
else if (req.get_action_code() & component_ns_service)
{
if (is_bootstrap())
return bootstrap->component_ns_server_.service(req, ec);
return hosted->component_ns_.service(req, action_priority_, ec);
}
else if (req.get_action_code() & symbol_ns_service)
{
if (is_bootstrap())
return bootstrap->symbol_ns_server_.service(req, ec);
return hosted->symbol_ns_server_.service(req, ec);
}
else if (req.get_action_code() & locality_ns_service)
{
if (is_bootstrap())
return bootstrap->locality_ns_server_.service(req, ec);
return hosted->locality_ns_.service(req, action_priority_, ec);
}
HPX_THROWS_IF(ec, bad_action_code
, "addressing_service::service"
, "invalid action code encountered in request")
return response();
} // }}}
std::vector<response> addressing_service::bulk_service(
std::vector<request> const& req
, error_code& ec
)
{ // {{{
// FIXME: For now, we just send it to the primary namespace, assuming that
// most requests will end up there anyways. The primary namespace will
// route the requests to other namespaces (and the other namespaces would
// also route requests intended for the primary namespace).
if (is_bootstrap())
return bootstrap->primary_ns_server_.bulk_service(req, ec);
return hosted->primary_ns_server_.bulk_service(req, ec);
} // }}}
bool addressing_service::register_locality(
naming::locality const& ep
, naming::gid_type& prefix
, boost::uint32_t num_threads
, error_code& ec
)
{ // {{{
try {
request req(locality_ns_allocate, ep, 0, num_threads, prefix);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return false;
prefix = naming::get_gid_from_locality_id(rep.get_locality_id());
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::register_locality");
return false;
}
} // }}}
boost::uint32_t addressing_service::resolve_locality(
naming::locality const& ep
, error_code& ec
)
{ // {{{
try {
request req(locality_ns_resolve_locality, ep);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return 0;
return rep.get_locality_id();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_locality");
return 0;
}
} // }}}
// TODO: We need to ensure that the locality isn't unbound while it still holds
// referenced objects.
bool addressing_service::unregister_locality(
naming::locality const& ep
, error_code& ec
)
{ // {{{
try {
request req(locality_ns_free, ep);
response rep;
if (is_bootstrap())
bootstrap->unregister_server_instance(ec);
else
hosted->unregister_server_instance(ec);
if (ec)
return false;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return false;
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::unregister_locality");
return false;
}
} // }}}
bool addressing_service::get_console_locality(
naming::gid_type& prefix
, error_code& ec
)
{ // {{{
try {
if (get_status() != running)
{
if (&ec != &throws)
ec = make_success_code();
return false;
}
if (is_console())
{
prefix = get_local_locality();
if (&ec != &throws)
ec = make_success_code();
return true;
}
{
mutex_type::scoped_lock lock(console_cache_mtx_);
if (console_cache_)
{
prefix = naming::get_gid_from_locality_id(console_cache_);
if (&ec != &throws)
ec = make_success_code();
return true;
}
}
std::string key("/0/locality#console");
request req(symbol_ns_resolve, key);
response rep;
if (is_bootstrap())
rep = bootstrap->symbol_ns_server_.service(req, ec);
else
rep = stubs::symbol_namespace::service(key, req, action_priority_, ec);
if (!ec && (rep.get_gid() != naming::invalid_gid) &&
(rep.get_status() == success))
{
prefix = rep.get_gid();
boost::uint32_t console = naming::get_locality_id_from_gid(prefix);
{
mutex_type::scoped_lock lock(console_cache_mtx_);
if (!console_cache_) {
console_cache_ = console;
}
else {
BOOST_ASSERT(console_cache_ == console);
}
}
LAS_(debug) <<
( boost::format("caching console locality, prefix(%1%)")
% console);
return true;
}
return false;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_console_locality");
return false;
}
} // }}}
bool addressing_service::get_localities(
std::vector<naming::gid_type>& locality_ids
, components::component_type type
, error_code& ec
)
{ // {{{ get_locality_ids implementation
try {
if (type != components::component_invalid)
{
request req(component_ns_resolve_id, type);
response rep;
if (is_bootstrap())
rep = bootstrap->component_ns_server_.service(req, ec);
else
rep = hosted->component_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return false;
const std::vector<boost::uint32_t> p = rep.get_localities();
if (!p.size())
return false;
locality_ids.clear();
for (std::size_t i = 0; i < p.size(); ++i)
locality_ids.push_back(naming::get_gid_from_locality_id(p[i]));
return true;
}
else
{
request req(locality_ns_localities);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return false;
const std::vector<boost::uint32_t> p = rep.get_localities();
if (!p.size())
return false;
locality_ids.clear();
for (std::size_t i = 0; i < p.size(); ++i)
locality_ids.push_back(naming::get_gid_from_locality_id(p[i]));
return true;
}
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_locality_ids");
return false;
}
} // }}}
lcos::future<std::vector<naming::locality> >
addressing_service::get_resolved_localities_async()
{ // {{{ get_resolved_localities_async implementation
naming::id_type const target = bootstrap_locality_namespace_id();
request req(locality_ns_resolved_localities);
return stubs::locality_namespace::service_async<
std::vector<naming::locality> >(target, req);
} //}}}
///////////////////////////////////////////////////////////////////////////////
boost::uint32_t addressing_service::get_num_localities(
components::component_type type
, error_code& ec
)
{ // {{{ get_num_localities implementation
try {
if (type == components::component_invalid)
{
request req(locality_ns_num_localities, type);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return boost::uint32_t(-1);
return rep.get_num_localities();
}
request req(component_ns_num_localities, type);
response rep;
if (is_bootstrap())
rep = bootstrap->component_ns_server_.service(req, ec);
else
rep = hosted->component_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return boost::uint32_t(-1);
return rep.get_num_localities();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_localities");
}
return boost::uint32_t(-1);
} // }}}
lcos::future<boost::uint32_t> addressing_service::get_num_localities_async(
components::component_type type
)
{ // {{{ get_num_localities implementation
if (type == components::component_invalid)
{
naming::id_type const target = bootstrap_locality_namespace_id();
request req(locality_ns_num_localities, type);
return stubs::locality_namespace::service_async<boost::uint32_t>(target, req);
}
naming::id_type const target = bootstrap_component_namespace_id();
request req(component_ns_num_localities, type);
return stubs::component_namespace::service_async<boost::uint32_t>(target, req);
} // }}}
///////////////////////////////////////////////////////////////////////////////
boost::uint32_t addressing_service::get_num_overall_threads(
error_code& ec
)
{ // {{{ get_num_overall_threads implementation
try {
request req(locality_ns_num_threads);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return boost::uint32_t(0);
return rep.get_num_overall_threads();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_overall_threads");
}
return boost::uint32_t(0);
} // }}}
lcos::future<boost::uint32_t> addressing_service::get_num_overall_threads_async()
{ // {{{
naming::id_type const target = bootstrap_locality_namespace_id();
request req(locality_ns_num_threads);
return stubs::locality_namespace::service_async<boost::uint32_t>(target, req);
} // }}}
std::vector<boost::uint32_t> addressing_service::get_num_threads(
error_code& ec
)
{ // {{{ get_num_threads implementation
try {
request req(locality_ns_num_threads);
response rep;
if (is_bootstrap())
rep = bootstrap->locality_ns_server_.service(req, ec);
else
rep = hosted->locality_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return std::vector<boost::uint32_t>();
return rep.get_num_threads();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_num_threads");
}
return std::vector<boost::uint32_t>();
} // }}}
lcos::future<std::vector<boost::uint32_t> > addressing_service::get_num_threads_async()
{ // {{{
naming::id_type const target = bootstrap_locality_namespace_id();
request req(locality_ns_num_threads);
return stubs::locality_namespace::service_async<
std::vector<boost::uint32_t> >(target, req);
} // }}}
///////////////////////////////////////////////////////////////////////////////
components::component_type addressing_service::get_component_id(
std::string const& name
, error_code& ec
)
{ /// {{{
try {
request req(component_ns_bind_name, name);
response rep;
if (is_bootstrap())
rep = bootstrap->component_ns_server_.service(req, ec);
else
rep = hosted->component_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status()))
return components::component_invalid;
return rep.get_component_type();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_component_id");
return components::component_invalid;
}
} // }}}
void addressing_service::iterate_types(
iterate_types_function_type const& f
, error_code& ec
)
{ // {{{
try {
request req(component_ns_iterate_types, f);
if (is_bootstrap())
bootstrap->component_ns_server_.service(req, ec);
else
hosted->component_ns_.service(req, action_priority_, ec);
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_types");
}
} // }}}
std::string addressing_service::get_component_type_name(
components::component_type id
, error_code& ec
)
{ // {{{
try {
request req(component_ns_get_component_type_name, id);
response rep;
if (is_bootstrap())
rep = bootstrap->component_ns_server_.service(req, ec);
else
rep = hosted->component_ns_.service(req, action_priority_, ec);
return rep.get_component_typename();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_types");
}
return "<unknown>";
} // }}}
components::component_type addressing_service::register_factory(
boost::uint32_t prefix
, std::string const& name
, error_code& ec
)
{ // {{{
try {
request req(component_ns_bind_prefix, name, prefix);
response rep;
if (is_bootstrap())
rep = bootstrap->component_ns_server_.service(req, ec);
else
rep = hosted->component_ns_.service(req, action_priority_, ec);
if (ec || (success != rep.get_status() && no_success != rep.get_status()))
return components::component_invalid;
return rep.get_component_type();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::register_factory");
return components::component_invalid;
}
} // }}}
///////////////////////////////////////////////////////////////////////////////
bool addressing_service::get_id_range(
boost::uint64_t count
, naming::gid_type& lower_bound
, naming::gid_type& upper_bound
, error_code& ec
)
{ // {{{ get_id_range implementation
try {
// naming::locality() is an obsolete, dummy argument
request req(primary_ns_allocate, naming::locality(), count, boost::uint32_t(-1));
response rep;
if (is_bootstrap())
rep = bootstrap->primary_ns_server_.service(req, ec);
else
rep = hosted->primary_ns_server_.service(req, ec);
error const s = rep.get_status();
if (ec || (success != s && repeated_request != s))
return false;
lower_bound = rep.get_lower_bound();
upper_bound = rep.get_upper_bound();
return success == s;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::get_id_range");
return false;
}
} // }}}
bool addressing_service::bind_range(
naming::gid_type const& lower_id
, boost::uint64_t count
, naming::address const& baseaddr
, boost::uint64_t offset
, error_code& ec
)
{ // {{{ bind_range implementation
try {
naming::locality const& ep = baseaddr.locality_;
// Create a global virtual address from the legacy calling convention
// parameters.
gva const g(ep, baseaddr.type_, count, baseaddr.address_, offset);
request req(primary_ns_bind_gid, lower_id, g);
response rep;
if (is_bootstrap())
rep = bootstrap->primary_ns_server_.service(req, ec);
else
rep = hosted->primary_ns_server_.service(req, ec);
error const s = rep.get_status();
if (ec || (success != s && repeated_request != s))
return false;
if (caching_)
{
if (range_caching_)
// Put the range into the cache.
update_cache_entry(lower_id, g, ec);
else
{
// Only put the first GID in the range into the cache.
gva const first_g = g.resolve(lower_id, lower_id);
update_cache_entry(lower_id, first_g, ec);
}
}
if (ec)
return false;
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::bind_range");
return false;
}
} // }}}
bool addressing_service::unbind_range(
naming::gid_type const& lower_id
, boost::uint64_t count
, naming::address& addr
, error_code& ec
)
{ // {{{ unbind_range implementation
try {
request req(primary_ns_unbind_gid, lower_id, count);
response rep;
if (is_bootstrap())
rep = bootstrap->primary_ns_server_.service(req, ec);
else
rep = hosted->primary_ns_server_.service(req, ec);
if (ec || (success != rep.get_status()))
return false;
// I'm afraid that this will break the first form of paged caching,
// so it's commented out for now.
//cache_mutex_type::scoped_lock lock(hosted->gva_cache_mtx_);
//gva_erase_policy ep(lower_id, count);
//hosted->gva_cache_->erase(ep);
gva const& gaddr = rep.get_gva();
addr.locality_ = gaddr.endpoint;
addr.type_ = gaddr.type;
addr.address_ = gaddr.lva();
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::unbind_range");
return false;
}
} // }}}
/// This function will test whether the given address refers to an object
/// living on the locality of the caller. We rely completely on the local AGAS
/// cache and local AGAS instance, assuming that everything which is not in
/// the cache is not local.
bool addressing_service::is_local_address(
naming::gid_type const& id
, naming::address& addr
, error_code& ec
)
{
// Resolve the address of the GID.
// NOTE: We do not throw here for a reason; it is perfectly valid for the
// GID to not be found in the local AGAS instance.
if (!resolve(id, addr, ec) || ec)
return false;
return addr.locality_ == get_here();
}
bool addressing_service::is_local_address_cached(
naming::gid_type const& id
, naming::address& addr
, error_code& ec
)
{
// Try to resolve the address of the GID.
// NOTE: We do not throw here for a reason; it is perfectly valid for the
// GID to not be found in the cache.
if (!resolve_cached(id, addr, ec) || ec)
return false;
return addr.locality_ == get_here();
}
// Return true if at least one address is local.
bool addressing_service::is_local_address(
naming::gid_type const* gids
, naming::address* addrs
, std::size_t size
, boost::dynamic_bitset<>& locals
, error_code& ec
)
{
// Try the cache
if (caching_)
{
bool all_resolved = resolve_cached(gids, addrs, size, locals, ec);
if (ec)
return false;
if (all_resolved)
return locals.any(); // all destinations resolved
}
if (!resolve_full(gids, addrs, size, locals, ec) || ec)
return false;
return locals.any();
}
bool addressing_service::is_local_lva_encoded_address(
boost::uint64_t msb
)
{
// NOTE: This should still be migration safe.
return msb == get_local_locality().get_msb();
}
bool addressing_service::resolve_locally_known_addresses(
naming::gid_type const& id
, naming::address& addr
)
{
// LVA-encoded GIDs (located on this machine)
boost::uint64_t lsb = id.get_lsb();
boost::uint64_t msb = naming::detail::strip_credit_from_gid(id.get_msb());
if (is_local_lva_encoded_address(msb))
{
addr.locality_ = get_here();
// An LSB of 0 references the runtime support component
if (!rts_lva_)
rts_lva_ = get_runtime().get_runtime_support_lva();
if (0 == lsb || lsb == rts_lva_)
{
addr.type_ = components::component_runtime_support;
addr.address_ = rts_lva_;
}
else
{
addr.type_ = components::component_memory;
addr.address_ = lsb;
}
return true;
}
// authoritative AGAS component address resolution
if (HPX_AGAS_LOCALITY_NS_MSB == msb && HPX_AGAS_LOCALITY_NS_LSB == lsb)
{
addr = locality_ns_addr_;
return true;
}
if (HPX_AGAS_PRIMARY_NS_MSB == msb && HPX_AGAS_PRIMARY_NS_LSB == lsb)
{
addr = primary_ns_addr_;
return true;
}
if (HPX_AGAS_COMPONENT_NS_MSB == msb && HPX_AGAS_COMPONENT_NS_LSB == lsb)
{
addr = component_ns_addr_;
return true;
}
if (HPX_AGAS_SYMBOL_NS_MSB == msb && HPX_AGAS_SYMBOL_NS_LSB == lsb)
{
addr = symbol_ns_addr_;
return true;
}
return false;
} // }}}
bool addressing_service::resolve_full(
naming::gid_type const& id
, naming::address& addr
, error_code& ec
)
{ // {{{ resolve implementation
try {
// special cases
if (resolve_locally_known_addresses(id, addr))
return true;
request req(primary_ns_resolve_gid, id);
response rep;
if (is_bootstrap())
rep = bootstrap->primary_ns_server_.service(req, ec);
else
rep = hosted->primary_ns_server_.service(req, ec);
if (ec || (success != rep.get_status()))
return false;
// Resolve the gva to the real resolved address (which is just a gva
// with as fully resolved LVA and an offset of zero).
gva const g = rep.get_gva().resolve(id, rep.get_base_gid());
addr.locality_ = g.endpoint;
addr.type_ = g.type;
addr.address_ = g.lva();
if (caching_)
{
if (range_caching_)
// Put the gva range into the cache.
update_cache_entry(rep.get_base_gid(), rep.get_gva(), ec);
else
// Put the fully resolved gva into the cache.
update_cache_entry(id, g, ec);
}
if (ec)
return false;
if (&ec != &throws)
ec = make_success_code();
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_full");
return false;
}
} // }}}
bool addressing_service::resolve_cached(
naming::gid_type const& id
, naming::address& addr
, error_code& ec
)
{ // {{{ resolve_cached implementation
// special cases
if (resolve_locally_known_addresses(id, addr))
return true;
if (ec) return false;
// If caching is disabled, bail
if (!caching_)
{
if (&ec != &throws)
ec = make_success_code();
return false;
}
// first look up the requested item in the cache
gva_cache_key k(id);
gva_cache_key idbase;
gva_cache_type::entry_type e;
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
// Check if the entry is currently in the cache
if (gva_cache_->get_entry(k, idbase, e))
{
const boost::uint64_t id_msb
= naming::detail::strip_credit_from_gid(id.get_msb());
if (HPX_UNLIKELY(id_msb != idbase.get_gid().get_msb()))
{
HPX_THROWS_IF(ec, internal_server_error
, "addressing_service::resolve_cached"
, "bad entry in cache, MSBs of GID base and GID do not match");
return false;
}
gva const& g = e.get();
addr.locality_ = g.endpoint;
addr.type_ = g.type;
addr.address_ = g.lva(id, idbase.get_gid());
lock.unlock();
if (&ec != &throws)
ec = make_success_code();
LAS_(debug) <<
( boost::format(
"cache hit for address %1%, lva %2% (base %3%, lva %4%)")
% id
% reinterpret_cast<void*>(addr.address_)
% idbase.get_gid()
% reinterpret_cast<void*>(g.lva()));
return true;
}
if (&ec != &throws)
ec = make_success_code();
LAS_(debug) << (boost::format("cache miss for address %1%") % id);
return false;
} // }}}
hpx::future<naming::address> addressing_service::resolve_async(
naming::gid_type const& gid
)
{
// Try the cache.
if (caching_)
{
naming::address addr;
error_code ec;
if (resolve_cached(gid, addr, ec))
return make_ready_future(addr);
if (ec)
{
return make_error_future<naming::address>(
hpx::detail::access_exception(ec));
}
}
// now try the AGAS service
return resolve_full_async(gid);
}
naming::address addressing_service::resolve_full_postproc(
future<response>& f, naming::gid_type const& id
)
{
naming::address addr;
response rep = f.get();
if (success != rep.get_status())
{
HPX_THROW_EXCEPTION(bad_parameter,
"addressing_service::resolve_full_postproc",
"could no resolve global id");
return addr;
}
// Resolve the gva to the real resolved address (which is just a gva
// with as fully resolved LVA and an offset of zero).
gva const g = rep.get_gva().resolve(id, rep.get_base_gid());
addr.locality_ = g.endpoint;
addr.type_ = g.type;
addr.address_ = g.lva();
if (caching_)
{
if (range_caching_)
// Put the gva range into the cache.
update_cache_entry(rep.get_base_gid(), rep.get_gva());
else
// Put the fully resolved gva into the cache.
update_cache_entry(id, g);
}
return addr;
}
hpx::future<naming::address> addressing_service::resolve_full_async(
naming::gid_type const& gid
)
{
// handle special cases
naming::address addr;
if (resolve_locally_known_addresses(gid, addr))
return make_ready_future(addr);
// ask server
request req(primary_ns_resolve_gid, gid);
naming::id_type target(
stubs::primary_namespace::get_service_instance(gid)
, naming::id_type::unmanaged);
using util::placeholders::_1;
future<response> f = stubs::primary_namespace::service_async<response>(target, req);
return f.then(util::bind(&addressing_service::resolve_full_postproc, this, _1, gid));
}
///////////////////////////////////////////////////////////////////////////////
bool addressing_service::resolve_full(
naming::gid_type const* gids
, naming::address* addrs
, std::size_t count
, boost::dynamic_bitset<>& locals
, error_code& ec
)
{
locals.resize(count);
try {
std::vector<request> reqs;
reqs.reserve(count);
// special cases
for (std::size_t i = 0; i != count; ++i)
{
if (!addrs[i])
{
bool is_local = resolve_locally_known_addresses(gids[i], addrs[i]);
locals.set(i, is_local);
}
else
{
locals.set(i, true);
}
if (!addrs[i] && !locals.test(i))
{
reqs.push_back(request(primary_ns_resolve_gid, gids[i]));
}
}
if (reqs.empty()) {
// all gids have been resolved
if (&ec != &throws)
ec = make_success_code();
return true;
}
std::vector<response> reps;
if (is_bootstrap())
reps = bootstrap->primary_ns_server_.bulk_service(reqs, ec);
else
reps = hosted->primary_ns_server_.bulk_service(reqs, ec);
if (ec)
return false;
std::size_t j = 0;
for (std::size_t i = 0; i != count; ++i)
{
if (addrs[i] || locals.test(i))
continue;
BOOST_ASSERT(j < reps.size());
if (success != reps[j].get_status())
return false;
// Resolve the gva to the real resolved address (which is just a gva
// with as fully resolved LVA and an offset of zero).
gva const g = reps[j].get_gva().resolve(gids[i], reps[j].get_base_gid());
naming::address& addr = addrs[i];
addr.locality_ = g.endpoint;
addr.type_ = g.type;
addr.address_ = g.lva();
if (caching_)
{
if (range_caching_) {
// Put the gva range into the cache.
update_cache_entry(reps[j].get_base_gid(), reps[j].get_gva(), ec);
}
else {
// Put the fully resolved gva into the cache.
update_cache_entry(gids[i], g, ec);
}
}
if (ec)
return false;
++j;
}
if (&ec != &throws)
ec = make_success_code();
return true;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_full");
return false;
}
}
bool addressing_service::resolve_cached(
naming::gid_type const* gids
, naming::address* addrs
, std::size_t count
, boost::dynamic_bitset<>& locals
, error_code& ec
)
{
locals.resize(count);
std::size_t resolved = 0;
for (std::size_t i = 0; i != count; ++i)
{
if (!addrs[i] && !locals.test(i))
{
bool was_resolved = resolve_cached(gids[i], addrs[i], ec);
if (ec)
return false;
if (was_resolved)
++resolved;
if (addrs[i].locality_ == get_here())
locals.set(i, true);
}
else if (addrs[i].locality_ == get_here())
{
++resolved;
locals.set(i, true);
}
}
return resolved == count; // returns whether all have been resolved
}
///////////////////////////////////////////////////////////////////////////////
void addressing_service::route(
parcelset::parcel const& p
, HPX_STD_FUNCTION<void(boost::system::error_code const&, std::size_t)> const& f
)
{
// compose request
request req(primary_ns_route, p);
naming::gid_type const* gids = p.get_destinations();
naming::id_type const target(
stubs::primary_namespace::get_service_instance(gids[0])
, naming::id_type::unmanaged);
typedef server::primary_namespace::service_action action_type;
// Determine whether the gid is local or remote
naming::address addr;
if (is_local_address(target.get_gid(), addr))
{
// route through the local AGAS service instance
applier::detail::apply_l_p<action_type>(addr, action_priority_, req);
f(boost::system::error_code(), 0); // invoke callback
return;
}
// apply remotely, route through main AGAS service if the destination is
// a service instance
if (!addr)
{
if (stubs::primary_namespace::is_service_instance(gids[0]) ||
stubs::symbol_namespace::is_service_instance(gids[0]))
{
// construct wrapper parcel
parcelset::parcel route_p(bootstrap_primary_namespace_gid()
, primary_ns_addr_
, new hpx::actions::transfer_action<action_type>(action_priority_, req));
// send to the main AGAS instance for routing
hpx::applier::get_applier().get_parcel_handler().put_parcel(route_p, f);
return;
}
}
// apply directly as we have the resolved destination address
applier::detail::apply_r_p_cb<action_type>(addr, target, action_priority_
, f, req);
}
///////////////////////////////////////////////////////////////////////////////
void addressing_service::incref_apply(
naming::gid_type const& lower
, naming::gid_type const& upper
, boost::int64_t credit
)
{ // {{{ incref implementation
if (HPX_UNLIKELY(0 >= credit))
{
HPX_THROW_EXCEPTION(bad_parameter
, "addressing_service::incref_apply"
, boost::str(boost::format("invalid credit count of %1%") % credit));
return;
}
request req(primary_ns_change_credit_non_blocking, lower, upper, credit);
naming::id_type target(
stubs::primary_namespace::get_service_instance(lower)
, naming::id_type::unmanaged);
stubs::primary_namespace::service_non_blocking(target, req, action_priority_);
} // }}}
///////////////////////////////////////////////////////////////////////////////
lcos::future<bool> addressing_service::incref_async(
naming::gid_type const& lower
, naming::gid_type const& upper
, boost::int64_t credit
)
{ // {{{ incref implementation
if (HPX_UNLIKELY(0 >= credit))
{
HPX_THROW_EXCEPTION(bad_parameter
, "addressing_service::incref_async"
, boost::str(boost::format("invalid credit count of %1%") % credit));
return lcos::future<bool>();
}
request req(primary_ns_change_credit_non_blocking, lower, upper, credit);
naming::id_type target(
stubs::primary_namespace::get_service_instance(lower)
, naming::id_type::unmanaged);
return stubs::primary_namespace::service_async<bool>(target, req);
} // }}}
///////////////////////////////////////////////////////////////////////////////
void addressing_service::decref(
naming::gid_type const& lower
, naming::gid_type const& upper
, boost::int64_t credit
, error_code& ec
)
{ // {{{ decref implementation
if (HPX_UNLIKELY(0 == threads::get_self_ptr()))
{
// reschedule this call as an HPX thread
threads::register_thread_nullary(
HPX_STD_BIND(&addressing_service::decref, this,
lower, upper, credit, boost::ref(throws)),
"addressing_service::decref");
return;
}
if (HPX_UNLIKELY(0 >= credit))
{
HPX_THROWS_IF(ec, bad_parameter
, "addressing_service::decref"
, boost::str(boost::format("invalid credit count of %1%") % credit));
return;
}
try {
mutex_type::scoped_lock l(refcnt_requests_mtx_);
refcnt_requests_->apply(lower, upper
, util::incrementer<boost::int64_t>(-credit));
send_refcnt_requests(l, ec);
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::decref");
}
} // }}}
///////////////////////////////////////////////////////////////////////////////
bool addressing_service::register_name(
std::string const& name
, naming::gid_type const& id
, error_code& ec
)
{ // {{{
try {
request req(symbol_ns_bind, name, id);
response rep;
if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/')
rep = bootstrap->symbol_ns_server_.service(req, ec);
else
rep = stubs::symbol_namespace::service(name, req, action_priority_, ec);
return !ec && (success == rep.get_status());
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::register_name");
return false;
}
} // }}}
static void correct_credit_on_failure(future<bool> f, naming::id_type id,
boost::uint16_t mutable_gid_credit, boost::uint16_t new_gid_credit)
{
// Return the credit to the GID if the operation failed
if (f.has_exception() && mutable_gid_credit != 0)
naming::detail::add_credit_to_gid(id.get_gid(), new_gid_credit);
}
lcos::future<bool> addressing_service::register_name_async(
std::string const& name
, naming::id_type const& id
)
{ // {{{
// We need to modify the reference count.
naming::gid_type& mutable_gid = const_cast<naming::id_type&>(id).get_gid();
naming::gid_type new_gid;
// FIXME: combine incref with register_name, if needed
if (naming::detail::get_credit_from_gid(mutable_gid) != 0)
{
new_gid = naming::detail::split_credits_for_gid(mutable_gid);
// Credit exhaustion - we need to get more.
if (0 == naming::detail::get_credit_from_gid(new_gid))
{
BOOST_ASSERT(1 == naming::detail::get_credit_from_gid(mutable_gid));
naming::get_agas_client().incref(new_gid, 2 * HPX_INITIAL_GLOBALCREDIT);
naming::detail::add_credit_to_gid(new_gid, HPX_INITIAL_GLOBALCREDIT);
naming::detail::add_credit_to_gid(mutable_gid, HPX_INITIAL_GLOBALCREDIT);
}
}
else {
new_gid = mutable_gid;
}
request req(symbol_ns_bind, name, new_gid);
future<bool> f = stubs::symbol_namespace::service_async<bool>(
name, req, action_priority_);
using HPX_STD_PLACEHOLDERS::_1;
f.then(
HPX_STD_BIND(correct_credit_on_failure, _1, id,
naming::detail::get_credit_from_gid(mutable_gid),
naming::detail::get_credit_from_gid(new_gid))
);
return f;
} // }}}
///////////////////////////////////////////////////////////////////////////////
bool addressing_service::unregister_name(
std::string const& name
, naming::gid_type& id
, error_code& ec
)
{ // {{{
try {
request req(symbol_ns_unbind, name);
response rep;
if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/')
rep = bootstrap->symbol_ns_server_.service(req, ec);
else
rep = stubs::symbol_namespace::service(name, req, action_priority_, ec);
if (!ec && (success == rep.get_status()))
{
id = rep.get_gid();
return true;
}
return false;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::unregister_name");
return false;
}
} // }}}
lcos::future<naming::id_type> addressing_service::unregister_name_async(
std::string const& name
)
{ // {{{
request req(symbol_ns_unbind, name);
return stubs::symbol_namespace::service_async<naming::id_type>(
name, req, action_priority_);
} // }}}
///////////////////////////////////////////////////////////////////////////////
bool addressing_service::resolve_name(
std::string const& name
, naming::gid_type& id
, error_code& ec
)
{ // {{{
try {
request req(symbol_ns_resolve, name);
response rep;
if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/')
rep = bootstrap->symbol_ns_server_.service(req, ec);
else
rep = stubs::symbol_namespace::service(name, req, action_priority_, ec);
if (!ec && (success == rep.get_status()))
{
id = rep.get_gid();
return true;
}
else
return false;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::resolve_name");
return false;
}
} // }}}
lcos::future<naming::id_type> addressing_service::resolve_name_async(
std::string const& name
)
{ // {{{
request req(symbol_ns_resolve, name);
return stubs::symbol_namespace::service_async<naming::id_type>(
name, req, action_priority_);
} // }}}
}}
#if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400)
///////////////////////////////////////////////////////////////////////////////
typedef hpx::agas::server::symbol_namespace::service_action
symbol_namespace_service_action;
HPX_REGISTER_BROADCAST_ACTION_DECLARATION(symbol_namespace_service_action)
HPX_REGISTER_BROADCAST_ACTION(symbol_namespace_service_action)
#endif
namespace hpx { namespace agas
{
/// Invoke the supplied hpx::function for every registered global name
bool addressing_service::iterate_ids(
iterate_names_function_type const& f
, error_code& ec
)
{ // {{{
try {
request req(symbol_ns_iterate_names, f);
#if !defined(HPX_GCC_VERSION) || (HPX_GCC_VERSION > 40400)
symbol_namespace_service_action act;
lcos::broadcast(act, hpx::find_all_localities(), req).get(ec);
#else
BOOST_FOREACH(naming::id_type id, hpx::find_all_localities())
{
naming::id_type service_id(
stubs::symbol_namespace::get_service_instance(id.get_gid(), ec),
naming::id_type::unmanaged);
if (ec) return false;
stubs::symbol_namespace::service(service_id, req, action_priority_, ec);
if (ec) return false;
}
#endif
return !ec;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::iterate_ids");
return false;
}
} // }}}
void addressing_service::insert_cache_entry(
naming::gid_type const& gid
, gva const& g
, error_code& ec
)
{ // {{{
if (!caching_)
{
// If caching is disabled, we silently pretend success.
return;
}
try {
// The entry in AGAS for a locality's RTS component has a count of 0,
// so we convert it to 1 here so that the cache doesn't break.
const boost::uint64_t count = (g.count ? g.count : 1);
LAS_(debug) <<
( boost::format("inserting entry into cache, gid(%1%), count(%2%)")
% gid % count);
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
const gva_cache_key key(gid, count);
if (!gva_cache_->insert(key, g))
{
// Figure out who we collided with.
gva_cache_key idbase;
gva_cache_type::entry_type e;
if (!gva_cache_->get_entry(key, idbase, e))
// This is impossible under sane conditions.
HPX_THROWS_IF(ec, invalid_data
, "addressing_service::insert_cache_entry"
, "data corruption or lock error occurred in cache");
LAS_(warning) <<
( boost::format(
"aborting insert due to key collision in cache, "
"new_gid(%1%), new_count(%2%), old_gid(%3%), old_count(%4%)"
) % gid % count % idbase.get_gid() % idbase.get_count());
}
if (&ec != &throws)
ec = make_success_code();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::insert_cache_entry");
}
} // }}}
bool check_for_collisions(
addressing_service::gva_cache_key const& new_key
, addressing_service::gva_cache_key const& old_key
)
{
return (new_key.get_gid() == old_key.get_gid())
&& (new_key.get_count() == old_key.get_count());
}
void addressing_service::update_cache_entry(
naming::gid_type const& gid
, gva const& g
, error_code& ec
)
{ // {{{
if (!caching_)
{
// If caching is disabled, we silently pretend success.
return;
}
try {
// The entry in AGAS for a locality's RTS component has a count of 0,
// so we convert it to 1 here so that the cache doesn't break.
const boost::uint64_t count = (g.count ? g.count : 1);
LAS_(debug) <<
( boost::format(
"updating cache entry: gid(%1%), count(%2%)"
) % gid % count);
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
const gva_cache_key key(gid, count);
if (!gva_cache_->update_if(key, g, check_for_collisions))
{
// Figure out who we collided with.
gva_cache_key idbase;
gva_cache_type::entry_type e;
if (!gva_cache_->get_entry(key, idbase, e))
{
// This is impossible under sane conditions.
HPX_THROWS_IF(ec, invalid_data
, "addressing_service::update_cache_entry"
, "data corruption or lock error occurred in cache");
return;
}
LAS_(warning) <<
( boost::format(
"aborting update due to key collision in cache, "
"new_gid(%1%), new_count(%2%), old_gid(%3%), old_count(%4%)"
) % gid % count % idbase.get_gid() % idbase.get_count());
}
if (&ec != &throws)
ec = make_success_code();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::update_cache_entry");
}
} // }}}
void addressing_service::clear_cache(
error_code& ec
)
{ // {{{
if (!caching_)
{
// If caching is disabled, we silently pretend success.
return;
}
try {
LAS_(warning) << "clearing cache";
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
gva_cache_->clear();
if (&ec != &throws)
ec = make_success_code();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::clear_cache");
}
} // }}}
namespace detail
{
// get action code from counter type
namespace_action_code retrieve_action_code(
std::string const& name
, error_code& ec
)
{
performance_counters::counter_path_elements p;
performance_counters::get_counter_path_elements(name, p, ec);
if (ec) return invalid_request;
if (p.objectname_ != "agas")
{
HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_code",
"unknown performance counter (unrelated to AGAS)");
return invalid_request;
}
// component_ns
for (std::size_t i = 0;
i != num_component_namespace_services;
++i)
{
if (p.countername_ == component_namespace_services[i].name_)
return component_namespace_services[i].code_;
}
// locality_ns
for (std::size_t i = 0;
i != num_locality_namespace_services;
++i)
{
if (p.countername_ == locality_namespace_services[i].name_)
return locality_namespace_services[i].code_;
}
// primary_ns
for (std::size_t i = 0;
i != num_primary_namespace_services;
++i)
{
if (p.countername_ == primary_namespace_services[i].name_)
return primary_namespace_services[i].code_;
}
// symbol_ns
for (std::size_t i = 0;
i != num_symbol_namespace_services;
++i)
{
if (p.countername_ == symbol_namespace_services[i].name_)
return symbol_namespace_services[i].code_;
}
HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_code",
"unknown performance counter (unrelated to AGAS)");
return invalid_request;
}
// get service action code from counter type
namespace_action_code retrieve_action_service_code(
std::string const& name
, error_code& ec
)
{
performance_counters::counter_path_elements p;
performance_counters::get_counter_path_elements(name, p, ec);
if (ec) return invalid_request;
if (p.objectname_ != "agas")
{
HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_service_code",
"unknown performance counter (unrelated to AGAS)");
return invalid_request;
}
// component_ns
for (std::size_t i = 0;
i != num_component_namespace_services;
++i)
{
if (p.countername_ == component_namespace_services[i].name_)
return component_namespace_services[i].service_code_;
}
// locality_ns
for (std::size_t i = 0;
i != num_locality_namespace_services;
++i)
{
if (p.countername_ == locality_namespace_services[i].name_)
return locality_namespace_services[i].service_code_;
}
// primary_ns
for (std::size_t i = 0;
i != num_primary_namespace_services;
++i)
{
if (p.countername_ == primary_namespace_services[i].name_)
return primary_namespace_services[i].service_code_;
}
// symbol_ns
for (std::size_t i = 0;
i != num_symbol_namespace_services;
++i)
{
if (p.countername_ == symbol_namespace_services[i].name_)
return symbol_namespace_services[i].service_code_;
}
HPX_THROWS_IF(ec, bad_parameter, "retrieve_action_service_code",
"unknown performance counter (unrelated to AGAS)");
return invalid_request;
}
}
bool addressing_service::retrieve_statistics_counter(
std::string const& name
, naming::gid_type& counter
, error_code& ec
)
{
try {
// retrieve counter type
namespace_action_code service_code =
detail::retrieve_action_service_code(name, ec);
if (invalid_request == service_code) return false;
// compose request
request req(service_code, name);
response rep;
if (is_bootstrap() && name.size() >= 2 && name[1] == '0' && name[0] == '/')
rep = bootstrap->symbol_ns_server_.service(req, ec);
else
rep = stubs::symbol_namespace::service(name, req, action_priority_, ec);
if (!ec && (success == rep.get_status()))
{
counter = rep.get_statistics_counter();
return true;
}
return false;
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::query_statistics");
return false;
}
}
///////////////////////////////////////////////////////////////////////////////
// Helper functions to access the current cache statistics
std::size_t addressing_service::get_cache_hits(bool reset)
{
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
return gva_cache_->get_statistics().hits(reset);
}
std::size_t addressing_service::get_cache_misses(bool reset)
{
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
return gva_cache_->get_statistics().misses(reset);
}
std::size_t addressing_service::get_cache_evictions(bool reset)
{
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
return gva_cache_->get_statistics().evictions(reset);
}
std::size_t addressing_service::get_cache_insertions(bool reset)
{
cache_mutex_type::scoped_lock lock(gva_cache_mtx_);
return gva_cache_->get_statistics().insertions(reset);
}
/// Install performance counter types exposing properties from the local cache.
void addressing_service::register_counter_types()
{ // {{{
// install
HPX_STD_FUNCTION<boost::int64_t(bool)> cache_hits(
boost::bind(&addressing_service::get_cache_hits, this, ::_1));
HPX_STD_FUNCTION<boost::int64_t(bool)> cache_misses(
boost::bind(&addressing_service::get_cache_misses, this, ::_1));
HPX_STD_FUNCTION<boost::int64_t(bool)> cache_evictions(
boost::bind(&addressing_service::get_cache_evictions, this, ::_1));
HPX_STD_FUNCTION<boost::int64_t(bool)> cache_insertions(
boost::bind(&addressing_service::get_cache_insertions, this, ::_1));
performance_counters::generic_counter_type_data const counter_types[] =
{
{ "/agas/count/cache-hits", performance_counters::counter_raw,
"returns the number of cache hits while accessing the AGAS cache",
HPX_PERFORMANCE_COUNTER_V1,
boost::bind(&performance_counters::locality_raw_counter_creator,
_1, cache_hits, _2),
&performance_counters::locality_counter_discoverer,
""
},
{ "/agas/count/cache-misses", performance_counters::counter_raw,
"returns the number of cache misses while accessing the AGAS cache",
HPX_PERFORMANCE_COUNTER_V1,
boost::bind(&performance_counters::locality_raw_counter_creator,
_1, cache_misses, _2),
&performance_counters::locality_counter_discoverer,
""
},
{ "/agas/count/cache-evictions", performance_counters::counter_raw,
"returns the number of cache evictions from the AGAS cache",
HPX_PERFORMANCE_COUNTER_V1,
boost::bind(&performance_counters::locality_raw_counter_creator,
_1, cache_evictions, _2),
&performance_counters::locality_counter_discoverer,
""
},
{ "/agas/count/cache-insertions", performance_counters::counter_raw,
"returns the number of cache insertions into the AGAS cache",
HPX_PERFORMANCE_COUNTER_V1,
boost::bind(&performance_counters::locality_raw_counter_creator,
_1, cache_insertions, _2),
&performance_counters::locality_counter_discoverer,
""
}
};
performance_counters::install_counter_types(
counter_types, sizeof(counter_types)/sizeof(counter_types[0]));
if (is_bootstrap()) {
// install counters for services
bootstrap->register_counter_types();
// always register root server as 'locality#0'
bootstrap->register_server_instance("locality#0/");
}
else {
// install counters for services
hosted->register_counter_types();
boost::uint32_t locality_id =
naming::get_locality_id_from_gid(get_local_locality());
std::string str("locality#" + boost::lexical_cast<std::string>(locality_id) + "/");
hosted->register_server_instance(str.c_str(), locality_id);
}
} // }}}
void addressing_service::garbage_collect_non_blocking(
error_code& ec
)
{
mutex_type::scoped_lock l(refcnt_requests_mtx_);
send_refcnt_requests_non_blocking(l, ec);
}
void addressing_service::garbage_collect(
error_code& ec
)
{
mutex_type::scoped_lock l(refcnt_requests_mtx_);
send_refcnt_requests_sync(l, ec);
}
void addressing_service::send_refcnt_requests(
addressing_service::mutex_type::scoped_lock& l
, error_code& ec
)
{
if (!l.owns_lock())
{
HPX_THROWS_IF(ec, lock_error
, "addressing_service::send_refcnt_requests"
, "mutex is not locked");
return;
}
if (max_refcnt_requests_ == ++refcnt_requests_count_)
send_refcnt_requests_non_blocking(l, ec);
else if (&ec != &throws)
ec = make_success_code();
}
void addressing_service::send_refcnt_requests_non_blocking(
addressing_service::mutex_type::scoped_lock& l
, error_code& ec
)
{
try {
boost::shared_ptr<refcnt_requests_type> p(new refcnt_requests_type);
p.swap(refcnt_requests_);
refcnt_requests_count_ = 0;
l.unlock();
BOOST_FOREACH(refcnt_requests_type::const_reference e, *p)
{
naming::gid_type lower(boost::icl::lower(e.key()));
request const req(
primary_ns_change_credit_non_blocking
, lower
, boost::icl::upper(e.key())
, e.data());
naming::id_type target(
stubs::primary_namespace::get_service_instance(lower)
, naming::id_type::unmanaged);
stubs::primary_namespace::service_non_blocking(
target, req, action_priority_);
}
if (&ec != &throws)
ec = make_success_code();
}
catch (hpx::exception const& e) {
HPX_RETHROWS_IF(ec, e, "addressing_service::send_refcnt_requests");
}
}
void addressing_service::send_refcnt_requests_sync(
addressing_service::mutex_type::scoped_lock& l
, error_code& ec
)
{
boost::shared_ptr<refcnt_requests_type> p(new refcnt_requests_type);
p.swap(refcnt_requests_);
refcnt_requests_count_ = 0;
l.unlock();
std::vector<hpx::future<response> > lazy_results;
BOOST_FOREACH(refcnt_requests_type::const_reference e, *p)
{
naming::gid_type lower(boost::icl::lower(e.key()));
request const req(primary_ns_change_credit_sync
, lower
, boost::icl::upper(e.key())
, e.data());
naming::id_type target(
stubs::primary_namespace::get_service_instance(lower)
, naming::id_type::unmanaged);
lazy_results.push_back(
stubs::primary_namespace::service_async<response>(
target, req, action_priority_));
}
wait_all(lazy_results);
BOOST_FOREACH(hpx::future<response> const& f, lazy_results)
{
response const& rep = f.get();
if (success != rep.get_status())
{
HPX_THROWS_IF(ec, rep.get_status(),
"addressing_service::send_refcnt_requests_sync",
"could not decrement reference count");
return;
}
}
if (&ec != &throws)
ec = make_success_code();
}
}}
| 71,550 | 23,028 |
#include <kernel/mutex.h>
mutex::mutex()
: locked(ATOMIC_FLAG_INIT)
{
}
void mutex::lock()
{
// For now we have no way to tell, so keep this in.
if (locked.test_and_set(std::memory_order_acquire)) {
// We'd rather not be woken up by a signal
queue.wait(0, [&]() {
return !locked.test_and_set(std::memory_order_acquire);
});
}
}
void mutex::unlock()
{
locked.clear(std::memory_order_release);
queue.wakeup();
}
| 473 | 178 |
#include "CORE_Audio.h"
#include "CORE_Resources.h"
#include "SDL_Mixer.h"
#include <string>
std::map<std::string, Mix_Chunk*> sounds;
std::map<std::string, Mix_Music*> music;
namespace CORE_Audio
{
Mix_Chunk* getSound(std::string name)
{
Mix_Chunk* ret = NULL;
if (sounds.find(name) != sounds.end()) {
ret = sounds[name];
}
else {
CORE_SystemIO::error("Sound " + name + " not found");
}
return ret;
}
Mix_Music* getMusic(std::string name)
{
Mix_Music* ret = NULL;
if (music.find(name) != music.end()) {
ret = music[name];
}
else {
CORE_SystemIO::error("Music track " + name + " not found");
}
return ret;
}
void handle(Event e)
{
}
bool start()
{
if (SDL_INIT_AUDIO < 0)
{
//TODO log error instead
printf("SDL Audio initialization failed");
return false;
}
if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0)
{
//TODO log error instead
printf("Failed to open SDL_Audio\n");
return false;
}
return true;
}
Mix_Music* loadMusic(std::string filename)
{
Mix_Music* musicToLoad = Mix_LoadMUS(filename.c_str());
if (musicToLoad == NULL)
{
CORE_SystemIO::error("Could not load music file " + filename);
}
return musicToLoad;
}
Mix_Chunk* loadSound(std::string filename)
{
Mix_Chunk* chunkToLoad = Mix_LoadWAV(filename.c_str());
if (chunkToLoad == NULL)
{
CORE_SystemIO::error("Could not load sound file " + filename);
}
return chunkToLoad;
}
void addTrack(std::string trackName, std::string filename)
{
if (music.find(trackName) != music.end())
{
CORE_SystemIO::error("Track " + trackName + " already loaded");
return;
}
Mix_Music* newTrack = loadMusic(filename);
if (newTrack)
{
music[trackName] = newTrack;
}
}
void addSound(std::string soundName, std::string filename)
{
if (sounds.find(soundName) != sounds.end())
{
CORE_SystemIO::error("Sound " + soundName + " already loaded");
return;
}
Mix_Chunk* newTrack = loadSound(filename);
if (newTrack)
{
sounds[soundName] = newTrack;
}
}
void startMusicLoop(std::string name)
{
Mix_Music* track = getMusic(name);
if(track)
Mix_PlayMusic(track, -1);
}
void pauseMusic()
{
Mix_PauseMusic();
}
void resumeMusic()
{
Mix_ResumeMusic();
}
void playSound(std::string name)
{
Mix_Chunk* toPlay = getSound(name);
if (toPlay)
Mix_PlayChannel(-1, toPlay, 0);
}
}
| 2,576 | 1,121 |
/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.org */
/* */
/* Copyright (c) 2005-2010, Michele Bosi */
/* All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or without modification, */
/* are permitted provided that the following conditions are met: */
/* */
/* - Redistributions of source code must retain the above copyright notice, this */
/* list of conditions and the following disclaimer. */
/* */
/* - Redistributions in binary form must reproduce the above copyright notice, this */
/* list of conditions and the following disclaimer in the documentation and/or */
/* other materials provided with the distribution. */
/* */
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND */
/* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED */
/* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE */
/* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR */
/* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES */
/* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; */
/* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON */
/* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT */
/* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
/* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
/* */
/**************************************************************************************/
#ifndef Transform_INCLUDE_ONCE
#define Transform_INCLUDE_ONCE
#include <vlCore/vlnamespace.hpp>
#include <vlCore/Object.hpp>
#include <vlCore/Matrix4.hpp>
#include <vector>
#include <set>
#include <algorithm>
namespace vl
{
class Camera;
//------------------------------------------------------------------------------
// Transform
//------------------------------------------------------------------------------
/** Implements a 4x4 matrix transform used to define the position and orientation of an Actor.
*
* Transforms can be linked together to create a tree-like hierarchy.
*
* \par Optimizing Your Transforms
*
* - Don't use them unless strictly necessary: if an Actor uses an I (identity) transform you do not need one, just call \p vl::Actor::setTransform(NULL).
*
* - Don't create Transform hierarchies if not needed. Just call setLocalAndWorldMatrix() per-Transform if you have a set of parent-less Transforms.
*
* - If the root of a hierarchy is an I (identity) transform, let VL know it by calling \p setAssumeIdentityWorldMatrix(true). This will save
* unnecessary matrix multiplications when calling computeWorldMatrix() / computeWorldMatrixRecursive().
*
* - Call computeWorldMatrix() / computeWorldMatrixRecursive() not at each frame but only if the local matrix has actually changed.
*
* - Do not add a Transform hierarchy to vl::Rendering::transform() if such Transforms are not animated every frame.
*
* - Remember: VL does not require your Actors to have a Transform or such Transforms to be part of any hierarchy, it just expect that the
* worldMatrix() of an Actor's Transform (if it has any) is up to date at rendering time. How and when they are updated can be fine
* tuned by the user according to the specific application needs.
*
* \sa setLocalAndWorldMatrix(), setAssumeIdentityWorldMatrix(), Rendering::transform()
* \sa Actor, Rendering, Effect, Renderable, Geometry */
class VLCORE_EXPORT Transform: public Object
{
VL_INSTRUMENT_CLASS(vl::Transform, Object)
public:
/** Constructor. */
Transform(): mWorldMatrixUpdateTick(0), mAssumeIdentityWorldMatrix(false), mParent(NULL)
{
VL_DEBUG_SET_OBJECT_NAME()
#if VL_TRANSFORM_USER_DATA
mTransformUserData = NULL;
#endif
}
/** Constructor. The \p matrix parameter is used to set both the local and world matrix. */
Transform(const mat4& matrix): mWorldMatrixUpdateTick(0), mAssumeIdentityWorldMatrix(false), mParent(NULL)
{
VL_DEBUG_SET_OBJECT_NAME()
#if VL_TRANSFORM_USER_DATA
mTransformUserData = NULL;
#endif
setLocalMatrix(matrix);
setWorldMatrix(matrix);
}
/** Destructor. */
~Transform();
/** Returns the parent Transform. */
const Transform* parent() const { return mParent; }
/** Returns the parent Transform. */
Transform* parent() { return mParent; }
/** Utility function equivalent to \p setLocalMatrix( mat4::getTranslation(x,y,z)*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void translate(real x, real y, real z);
/** Utility function equivalent to \p setLocalMatrix( mat4::getTranslation(t)*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void translate(const vec3& t);
/** Utility function equivalent to \p setLocalMatrix( mat4::getScaling(x,y,z)*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void scale(real x, real y, real z);
/** Utility function equivalent to \p setLocalMatrix( mat4::getRotation(degrees,x,y,z)*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void rotate(real degrees, real x, real y, real z);
/** Utility function equivalent to \p setLocalMatrix( mat4::getRotation(from,to)*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void rotate(const vec3& from, const vec3& to);
/** Utility function equivalent to \p setLocalMatrix( m*localMatrix() ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void preMultiply(const mat4& m);
/** Utility function equivalent to \p setLocalMatrix( localMatrix()*m ).
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void postMultiply(const mat4& m);
/** The matrix representing the transform's local space.
* After calling this you might want to call computeWorldMatrix() or computeWorldMatrixRecursive(). */
void setLocalMatrix(const mat4& m)
{
mLocalMatrix = m;
}
/** The matrix representing the transform's local space. */
const mat4& localMatrix() const
{
return mLocalMatrix;
}
/** Normally you should not use directly this function, call it only if you are sure you cannot do otherwise.
* Usually you want to call computeWorldMatrix() or computeWorldMatrixRecursive().
* Calling this function will also increment the worldMatrixUpdateTick(). */
void setWorldMatrix(const mat4& matrix)
{
mWorldMatrix = matrix;
++mWorldMatrixUpdateTick;
}
/** Returns the world matrix used for rendering. */
const mat4& worldMatrix() const
{
return mWorldMatrix;
}
/** Sets both the local and the world matrices.
* This function is useful to quickly set those Transforms that do not have a parent, for which
* is equivalent to: \p setLocalMatrix(matrix); \p computeWorldMatrix(NULL); */
void setLocalAndWorldMatrix(const mat4& matrix)
{
mLocalMatrix = matrix;
setWorldMatrix(matrix);
}
/** Returns the internal update tick used to avoid unnecessary computations. The world matrix thick
* gets incremented every time the setWorldMatrix() or setLocalAndWorldMatrix() functions are called. */
long long worldMatrixUpdateTick() const { return mWorldMatrixUpdateTick; }
/** If set to true the world matrix of this transform will always be considered and identity.
* Is usually used to save calculations for top Transforms with many sub-Transforms. */
void setAssumeIdentityWorldMatrix(bool assume_I) { mAssumeIdentityWorldMatrix = assume_I; }
/** If set to true the world matrix of this transform will always be considered and identity.
* Is usually used to save calculations for top Transforms with many sub-Transforms. */
bool assumeIdentityWorldMatrix() { return mAssumeIdentityWorldMatrix; }
/** Computes the world matrix by concatenating the parent's world matrix with its own local matrix. */
virtual void computeWorldMatrix(Camera* /*camera*/ = NULL)
{
if( assumeIdentityWorldMatrix() )
{
setWorldMatrix(mat4());
}
else
/* top Transforms are usually assumeIdentityWorldMatrix() == true for performance reasons */
if( parent() && !parent()->assumeIdentityWorldMatrix() )
{
setWorldMatrix( parent()->worldMatrix() * localMatrix() );
}
else
setWorldMatrix( localMatrix() );
}
/** Computes the world matrix by concatenating the parent's world matrix with its local matrix, recursively descending to the children. */
void computeWorldMatrixRecursive(Camera* camera = NULL)
{
computeWorldMatrix(camera);
for(size_t i=0; i<mChildren.size(); ++i)
mChildren[i]->computeWorldMatrixRecursive(camera);
}
/** Returns the matrix computed concatenating this Transform's local matrix with the local matrices of all its parents. */
mat4 getComputedWorldMatrix()
{
mat4 world = localMatrix();
Transform* par = parent();
while(par)
{
world = par->localMatrix() * world;
par = par->parent();
}
return world;
}
// --- --- children management --- ---
/** Returns the array containing the child Transforms. */
const ref<Transform>* children() const { if (mChildren.empty()) return NULL; else return &mChildren[0]; }
/** Returns the array containing the child Transforms. */
ref<Transform>* children() { if (mChildren.empty()) return NULL; else return &mChildren[0]; }
/** Returns the number of child Transform. */
size_t childrenCount() const { return mChildren.size(); }
/** Adds a child transform. */
void addChild(Transform* child)
{
VL_CHECK(child != NULL)
VL_CHECK(child->mParent == NULL)
mChildren.push_back(child);
child->mParent = this;
}
/** Adds \p count children transforms. */
void addChildren(Transform*const* children, size_t count)
{
VL_CHECK(children != NULL)
if (count)
{
size_t insert_point = mChildren.size();
mChildren.resize(mChildren.size() + count);
vl::ref<Transform>* ptr = &mChildren[insert_point];
for(size_t i=0; i<count; ++i, ++ptr)
{
VL_CHECK(children[i]->mParent == NULL);
children[i]->mParent = this;
(*ptr) = children[i];
}
}
}
void addChildren(const ref<Transform>* children, size_t count)
{
VL_CHECK(children != NULL)
if (count)
{
size_t insert_point = mChildren.size();
mChildren.resize(mChildren.size() + count);
vl::ref<Transform>* ptr = &mChildren[insert_point];
for(size_t i=0; i<count; ++i)
{
VL_CHECK(children[i]->mParent == NULL);
ptr[i] = children[i];
ptr[i]->mParent = this;
}
}
}
void addChildren(const std::vector< ref<Transform> >& children)
{
if (children.size())
addChildren( &children[0], children.size() );
}
/** Adds the specified \p children transforms. */
void addChildren(const std::vector< Transform* >& children)
{
if (children.size())
addChildren( &children[0], children.size() );
}
/** Sets the \p index-th child. */
void setChild(int index, Transform* child)
{
VL_CHECK(child)
VL_CHECK( index < (int)mChildren.size() )
mChildren[index]->mParent = NULL;
mChildren[index] = child;
mChildren[index]->mParent = this;
}
/** Returns the last child. */
const Transform* lastChild() const { return mChildren.back().get(); }
/** Returns the last child. */
Transform* lastChild() { return mChildren.back().get(); }
/** Removes the given \p child Transform. */
void eraseChild(const Transform* child)
{
VL_CHECK(child != NULL)
std::vector< ref<Transform> >::iterator it;
it = std::find(mChildren.begin(), mChildren.end(), child);
VL_CHECK(it != mChildren.end())
if (it != mChildren.end())
{
(*it)->mParent = NULL;
mChildren.erase(it);
}
}
/** Removes \p count children Transforms starting at position \p index. */
void eraseChildren(int index, int count)
{
VL_CHECK( index + count <= (int)mChildren.size() );
for(int j=index; j<index+count; ++j)
mChildren[j]->mParent = NULL;
for(int i=index+count, j=index; i<(int)mChildren.size(); ++i, ++j)
mChildren[j] = mChildren[i];
mChildren.resize( mChildren.size() - count );
}
/** Removes all the children of a Transform. */
void eraseAllChildren()
{
for(int i=0; i<(int)mChildren.size(); ++i)
mChildren[i]->mParent = NULL;
mChildren.clear();
}
/** Removes all the children of a Transform recursively descending the hierarchy. */
void eraseAllChildrenRecursive()
{
for(int i=0; i<(int)mChildren.size(); ++i)
{
mChildren[i]->eraseAllChildrenRecursive();
mChildren[i]->mParent = NULL;
}
mChildren.clear();
}
/** Disassembles a hierarchy of Transforms like eraseAllChildrenRecursive() does plus assigns the local matrix to equal the world matrix. */
void flattenHierarchy()
{
for(int i=0; i<(int)mChildren.size(); ++i)
{
mChildren[i]->setLocalAndWorldMatrix( mChildren[i]->worldMatrix() );
mChildren[i]->eraseAllChildrenRecursive();
mChildren[i]->mParent = NULL;
}
mChildren.clear();
}
/** Erases a Transform from it's parent and sets the local matrix to be equal to the world matrix. */
void removeFromParent()
{
if (parent())
{
mParent->eraseChild(this);
setLocalMatrix( worldMatrix() );
}
}
/** Minimizes the amount of memory used to store the children Transforms. */
void shrink()
{
std::vector< ref<Transform> > tmp (mChildren);
mChildren.swap(tmp);
}
/** Minimizes recursively the amount of memory used to store the children Transforms. */
void shrinkRecursive()
{
shrink();
for(size_t i=0; i<mChildren.size(); ++i)
mChildren[i]->shrinkRecursive();
}
/** Reserves space for \p count children. This function is very useful when you need to add one by one a large number of children transforms.
* \note This function does not affect the number of children, it only reallocates the buffer used to store them
* so that it's large enough to \p eventually contain \p count of them. This will make subsequent calls to addChild() quicker
* as fewer or no reallocations of the buffer will be needed. */
void reserveChildren(size_t count) { mChildren.reserve(count); }
/** Checks whether there are duplicated entries in the Transform's children list. */
bool hasDuplicatedChildren() const
{
std::set<const Transform*> tr_set;
for(size_t i=0; i<mChildren.size(); ++i)
tr_set.insert( mChildren[i].get() );
return tr_set.size() != mChildren.size();
}
#if VL_TRANSFORM_USER_DATA
public:
void setTransformUserData(void* data) { mTransformUserData = data; }
const void* transformUserData() const { return mTransformUserData; }
void* transformUserData() { return mTransformUserData; }
private:
void* mTransformUserData;
#endif
protected:
mat4 mLocalMatrix;
mat4 mWorldMatrix;
long long mWorldMatrixUpdateTick;
bool mAssumeIdentityWorldMatrix;
std::vector< ref<Transform> > mChildren;
Transform* mParent;
};
}
#endif
| 17,742 | 4,997 |
/* Shiny Hunt - Legendary Reset
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
//#include "CommonFramework/InferenceInfra/VisualInferenceRoutines.h"
#include "CommonFramework/InferenceInfra/VisualInferenceSession.h"
#include "PokemonLA/Inference/Objects/PokemonLA_BubbleDetector.h"
#include "PokemonLA/Inference/Objects/PokemonLA_ArcDetector.h"
#include "PokemonLA/Inference/Objects/PokemonLA_QuestMarkDetector.h"
#include "PokemonLA/Inference/Objects/PokemonLA_FlagDetector.h"
#include "PokemonLA_OverworldWatcher.h"
namespace PokemonAutomation{
namespace NintendoSwitch{
namespace PokemonLA{
OverworldWatcher_Descriptor::OverworldWatcher_Descriptor()
: RunnableSwitchProgramDescriptor(
"PokemonLA:OverworldWatcher",
STRING_POKEMON + " LA", "Overworld Watcher",
"",
"This is a test program that simply observes the game and labels things of interest. "
"This program doesn't really do anything.",
FeedbackType::REQUIRED, true,
PABotBaseLevel::PABOTBASE_12KB
)
{}
OverworldWatcher::OverworldWatcher(const OverworldWatcher_Descriptor& descriptor)
: SingleSwitchProgramInstance(descriptor)
{
}
void OverworldWatcher::program(SingleSwitchProgramEnvironment& env){
BubbleDetector bubbles;
ArcDetector arcs;
QuestMarkDetector quest_marks;
FlagDetector flags;
WhiteObjectWatcher watcher(
env.console,
{0, 0, 1, 1},
{
{bubbles, false},
{arcs, false},
{quest_marks, false},
{flags, false},
}
);
#if 0
watcher.process_frame(env.console.video().snapshot(), std::chrono::system_clock::now());
#else
{
VisualInferenceSession session(env, env.console, env.console, env.console);
session += watcher;
session.run();
}
#endif
env.wait_for(std::chrono::seconds(60));
}
}
}
}
| 1,911 | 628 |
/*=========================================================================
Program: DICOM for VTK
Copyright (c) 2012-2015 David Gobbi
All rights reserved.
See Copyright.txt or http://dgobbi.github.io/bsd3.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#include "vtkScancoCTReader.h"
#include <vtkSmartPointer.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// from dicomcli
#include "mainmacro.h"
// print the version
void printVersion(FILE *file, const char *cp)
{
fprintf(file, "%s %s\n", cp, DICOM_VERSION);
fprintf(file, "\n"
"Copyright (c) 2012-2015, David Gobbi.\n\n"
"This software is distributed under an open-source license. See the\n"
"Copyright.txt file that comes with the vtk-dicom source distribution.\n"
"\n");
}
// print the help
void printUsage(FILE *file, const char *cp)
{
fprintf(file, "usage:\n"
" %s file\n", cp);
fprintf(file, "options:\n"
" --help Print a brief help message.\n"
" --version Print the software version.\n\n");
}
// print the help
void printHelp(FILE *file, const char *cp)
{
printUsage(file, cp);
fprintf(file, "Dump the header from a .isq, .rad, or .aim file.\n\n");
}
// remove path portion of filename
const char *fileBasename(const char *filename)
{
const char *cp = filename + strlen(filename);
while (cp != filename && cp[-1] != '\\' && cp[-1] != '/') { --cp; }
return cp;
}
// This program will convert
MAINMACRO(argc, argv)
{
int rval = 0;
if (argc < 2)
{
printUsage(stdout, fileBasename(argv[0]));
return rval;
}
else if (argc == 2 && strcmp(argv[1], "--help") == 0)
{
printHelp(stdout, fileBasename(argv[0]));
return rval;
}
else if (argc == 2 && strcmp(argv[1], "--version") == 0)
{
printVersion(stdout, fileBasename(argv[0]));
return rval;
}
vtkSmartPointer<vtkScancoCTReader> reader =
vtkSmartPointer<vtkScancoCTReader>::New();
reader->SetFileName(argv[1]);
reader->UpdateInformation();
double origin[3], spacing[3], dvec[3];
int extent[6], ivec[3];
reader->GetDataOrigin(origin);
reader->GetDataSpacing(spacing);
reader->GetDataExtent(extent);
cout << "Version: " << reader->GetVersion() << "\n";
cout << "CreationDate: " << reader->GetCreationDate() << "\n";
if (strncmp(reader->GetVersion(), "AIMDATA", 7) == 0)
{
cout << "ModificationDate: " << reader->GetModificationDate() << "\n";
cout << "Position: "
<< static_cast<int>(origin[0]/spacing[0] + 0.5) << " "
<< static_cast<int>(origin[1]/spacing[1] + 0.5) << " "
<< static_cast<int>(origin[2]/spacing[2] + 0.5) << "\n";
cout << "Dimensions: "
<< (extent[1] - extent[0] + 1) << " "
<< (extent[3] - extent[2] + 1) << " "
<< (extent[5] - extent[4] + 1) << "\n";
cout << "ElementSize: "
<< spacing[0] << " " << spacing[1] << " " << spacing[2] << " [mm]\n";
cout << "DataType: "
<< (reader->GetDataScalarType() == VTK_SHORT ? "short\n" : "byte\n");
}
reader->GetScanDimensionsPixels(ivec);
cout << "ScanDimensionsPixels: "
<< ivec[0] << " " << ivec[1] << " " << ivec[2] << "\n";
reader->GetScanDimensionsPhysical(dvec);
cout << "ScanDimensionsPhysical: "
<< dvec[0] << " " << dvec[1] << " " << dvec[2] << " [mm]\n";
cout << "PatientName: " << reader->GetPatientName() << "\n";
cout << "PatientIndex: " << reader->GetPatientIndex() << "\n";
cout << "MeasurementIndex: " << reader->GetMeasurementIndex() << "\n";
cout << "Site: " << reader->GetSite() << "\n";
cout << "ScannerID: " << reader->GetScannerID() << "\n";
cout << "ScannerType: " << reader->GetScannerType() << "\n";
cout << "PositionSlice1: " << reader->GetStartPosition() << " [mm]\n";
cout << "ReferenceLine: " << reader->GetReferenceLine() << " [mm]\n";
cout << "NumberOfSamples: " << reader->GetNumberOfSamples() << "\n";
cout << "NumberOfProjections: " << reader->GetNumberOfProjections() << "\n";
cout << "ScanDistance: " << reader->GetScanDistance() << " [mm]\n";
cout << "SampleTime: " << reader->GetSampleTime() << " [ms]\n";
cout << "SliceThickness: " << reader->GetSliceThickness() << " [mm]\n";
cout << "SliceIncrement: " << reader->GetSliceIncrement() << " [mm]\n";
cout << "ReconstructionAlg: " << reader->GetReconstructionAlg() << "\n";
cout << "Energy: " << reader->GetEnergy() << " [kV]\n";
cout << "Intensity: " << reader->GetIntensity() << " [mA]\n";
cout << "MuScaling: " << reader->GetMuScaling() << " [cm]\n";
reader->GetDataRange(dvec);
cout << "DataRange: " << dvec[0] << " " << dvec[1] << "\n";
cout << "CalibrationData: " << reader->GetCalibrationData() << "\n";
cout << "RescaleType: " << reader->GetRescaleType() << "\n";
cout << "RescaleUnits: " << reader->GetRescaleUnits() << "\n";
cout << "RescaleSlope: " << reader->GetRescaleSlope() << "\n";
cout << "RescaleIntercept: " << reader->GetRescaleIntercept() << "\n";
cout << "MuWater: " << reader->GetMuWater() << " [cm^-1]\n";
cout << "HeaderSize: " << reader->GetHeaderSize() << "\n";
return 0;
}
| 5,357 | 1,979 |
////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2001-2004.
// -------------------------------------------------------------------------
// File name: EntityObject.cpp
// Version: v1.00
// Created: 18/5/2004 by Timur.
// Compilers: Visual Studio.NET 2003
// Description:
// -------------------------------------------------------------------------
// History:
//
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "EntityObject.h"
#include "Entity.h"
#include "Force.h"
#include <IRenderer.h>
#include <IEntityRenderState.h>
#include <I3DEngine.h>
#include <ICryAnimation.h>
#include <RenderObjectDefines.h>
#include <IGeomCache.h>
#define MAX_CHARACTER_LOD 10
namespace
{
Matrix34 sIdentMatrix = Matrix34::CreateIdentity();
}
//////////////////////////////////////////////////////////////////////////
CEntityObject::~CEntityObject()
{
ReleaseObjects();
if (m_pXForm)
delete m_pXForm;
FreeCameraSpacePos();
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::ReleaseObjects()
{
if (pStatObj)
{
pStatObj->Release();
pStatObj = NULL;
}
else if (pCharacter)
{
if (ISkeletonAnim* pSkeletonAnim = pCharacter->GetISkeletonAnim())
pSkeletonAnim->SetEventCallback(0, 0);
if (ISkeletonPose* pSkeletonPose = pCharacter->GetISkeletonPose())
pSkeletonPose->DestroyCharacterPhysics(0);
pCharacter->Release();
pCharacter = NULL;
}
else if (pLight)
{
pLight->ReleaseNode();
pLight = NULL;
}
else if (IParticleEmitter* pEmitter = GetParticleEmitter())
{
pEmitter->Activate(false);
pEmitter->Release();
pEmitter->SetEntity(NULL, 0);
pChildRenderNode = 0;
}
else if (pChildRenderNode)
{
pChildRenderNode->ReleaseNode();
pChildRenderNode = 0;
}
else if (pFoliage)
{
pFoliage->Release();
pFoliage = 0;
}
if(m_pRNTmpData)
gEnv->p3DEngine->FreeRNTmpData(&m_pRNTmpData);
assert(!m_pRNTmpData);
}
bool CEntityObject::GetLocalBounds( AABB &bounds )
{
if (pStatObj)
{
bounds.Add(pStatObj->GetAABB());
return true;
}
if (pCharacter)
{
bounds.Add(pCharacter->GetAABB());
return true;
}
if (pLight)
{
bounds.Add(Vec3Constants<float>::fVec3_Zero, 0.1f);
return true;
}
if (pChildRenderNode)
{
pChildRenderNode->GetLocalBounds(bounds);
return true;
}
return false;
}
//////////////////////////////////////////////////////////////////////////
IParticleEmitter* CEntityObject::GetParticleEmitter() const
{
if (pChildRenderNode && pChildRenderNode->GetRenderNodeType() == eERType_ParticleEmitter)
return static_cast<IParticleEmitter*>(pChildRenderNode);
else
return NULL;
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetParent( CEntityObject *pParentSlot )
{
pParent = pParentSlot;
if (!m_pXForm)
m_pXForm = new SEntityObjectXForm;
bWorldTMValid = false;
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetLocalTM( const Matrix34 &localTM )
{
if (!m_pXForm)
m_pXForm = new SEntityObjectXForm;
m_pXForm->localTM = localTM;
bWorldTMValid = false;
if (pParent)
{
pParent->bWorldTMValid = false;
}
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetCameraSpacePos( const Vec3 &cameraSpacePos )
{
if(m_pCameraSpacePos == NULL)
{
m_pCameraSpacePos = new Vec3;
}
*m_pCameraSpacePos = cameraSpacePos;
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::GetCameraSpacePos( Vec3 &cameraSpacePos )
{
if(m_pCameraSpacePos)
{
cameraSpacePos = *m_pCameraSpacePos;
}
else
{
cameraSpacePos = ZERO;
}
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::FreeCameraSpacePos()
{
SAFE_DELETE(m_pCameraSpacePos);
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::UpdateWorldTM( CEntity *pEntity )
{
if (!pParent)
{
// Add entity matrix as parent.
if (!m_pXForm)
m_worldTM = pEntity->GetWorldTM_Fast();
else
m_worldTM = pEntity->GetWorldTM_Fast() * m_pXForm->localTM;
}
else
{
if (!m_pXForm)
m_worldTM = pParent->GetWorldTM(pEntity);
else
m_worldTM = pParent->GetWorldTM(pEntity) * m_pXForm->localTM;
}
bWorldTMValid = true;
bObjectMoved = true;
}
//////////////////////////////////////////////////////////////////////////
const Matrix34& CEntityObject::GetLocalTM() const
{
if (m_pXForm)
return m_pXForm->localTM;
return sIdentMatrix;
};
//////////////////////////////////////////////////////////////////////////
const Matrix34& CEntityObject::GetWorldTM( CEntity *pEntity )
{
if (!bWorldTMValid)
{
UpdateWorldTM(pEntity);
}
return m_worldTM;
}
//////////////////////////////////////////////////////////////////////////
bool CEntityObject::Render( CEntity *pEntity,SRendParams &rParams,int nRndFlags,CRenderProxy *pRenderProxy, const SRenderingPassInfo &passInfo )
{
bool bDrawn = false;
if (!bWorldTMValid)
{
UpdateWorldTM(pEntity);
}
// Override with custom slot material.
IMaterial *pPrevMtl = rParams.pMaterial;
if (pMaterial)
rParams.pMaterial = pMaterial;
int nOldObjectFlags = rParams.dwFObjFlags;
rParams.dwFObjFlags |= dwFObjFlags;
if(flags & ENTITY_SLOT_RENDER_AFTER_POSTPROCESSING)
{
rParams.dwFObjFlags |= FOB_RENDER_AFTER_POSTPROCESSING;
}
#ifdef SEG_WORLD
rParams.nCustomFlags |= (1 << (COB_SW_SHIFT + pEntity->GetSwObjDebugFlag()));
#endif // SEG_WORLD
//////////////////////////////////////////////////////////////////////////
rParams.pInstance = this;
const bool bIsInCameraSpace = (flags & ENTITY_SLOT_RENDER_NEAREST) != 0;
// Draw static object.
if (pStatObj)
{
rParams.pMatrix = &m_worldTM;
rParams.dwFObjFlags |= FOB_TRANS_MASK;
rParams.pFoliage = pFoliage;
rParams.ppRNTmpData = &m_pRNTmpData;
rParams.nSubObjHideMask = nSubObjHideMask;
// make sure object motion blur can be applied to this object
if(bObjectMoved)
{
rParams.dwFObjFlags |= FOB_DYNAMIC_OBJECT;
bObjectMoved = false;
}
Matrix34 entityTM;
if (bIsInCameraSpace)
{
rParams.pMatrix = &entityTM;
entityTM = m_worldTM;
// Camera space
if(m_pCameraSpacePos)
{
// Use camera space relative position
entityTM.SetTranslation(*m_pCameraSpacePos);
}
else
{
// We don't have camera space relative position, so calculate it out from world space
// (This will not have the precision advantages of camera space rendering)
entityTM.AddTranslation(-gEnv->pSystem->GetViewCamera().GetPosition());
}
}
if(rParams.pMatrix->IsValid())
pStatObj->Render( rParams, passInfo );
else
EntityWarning("CEntityObject::Render: Invalid world matrix: %s", pEntity->GetEntityTextDescription());
bDrawn = true;
}
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
// Draw character.
if (pCharacter)
{
QuatTS Offset;
Matrix34 PhysLocation(pEntity->GetWorldTM());
if (m_pXForm)
Offset = QuatTS(m_pXForm->localTM);
else
{
//CRY_FIXME(03,12,2009,"Animation & Rendering of entities needs to be re-written to avoid derivation of local offset due to float inaccuracy - Richard Semmens");
if(!Matrix34::IsEquivalent(PhysLocation,m_worldTM))
{
Matrix34 invPhysLocation = PhysLocation.GetInverted();
Matrix34 matOffset = invPhysLocation * m_worldTM;
Offset = QuatTS(matOffset);
}
else
{
Offset.SetIdentity();
}
}
if (bIsInCameraSpace)
{
// Camera space
if(m_pCameraSpacePos)
{
// Use camera space relative position
const Matrix33 camRot = Matrix33(gEnv->pSystem->GetViewCamera().GetViewMatrix());
PhysLocation.SetTranslation(*m_pCameraSpacePos * camRot);
}
else
{
// We don't have camera space relative position, so calculate it out from world space
// (This will not have the precision advantages of camera space rendering)
PhysLocation.AddTranslation(-gEnv->pSystem->GetViewCamera().GetPosition());
}
Offset.SetIdentity();
}
rParams.pMatrix = &PhysLocation;
//rParams.pInstance = pCharacter;
// Disable hand-placed (static) decals on characters
rParams.dwFObjFlags |= FOB_DYNAMIC_OBJECT;
bool updated = false;
pCharacter->Render( rParams, Offset, passInfo, &updated );
if(updated)
{
pRenderProxy->ClearFlags(CRenderProxy::FLAG_BBOX_VALID_LOCAL);
//pRenderProxy->CalcLocalBounds();
}
bDrawn = true;
const uint32 renderProxyFlags = pRenderProxy->GetFlags();
if( !passInfo.IsShadowPass() || (renderProxyFlags & CRenderProxy::FLAG_ANIMATE_OFFSCREEN_SHADOW))
{
// If We render character, make sure it is also gets animation activated.
if (!pEntity->m_bInActiveList)
pEntity->ActivateForNumUpdates(8);
}
}
if (pChildRenderNode)
{
rParams.pMatrix = &m_worldTM;
//rParams.pInstance = pChildRenderNode;
pChildRenderNode->m_dwRndFlags = nRndFlags;
pChildRenderNode->Render( rParams, passInfo );
}
//////////////////////////////////////////////////////////////////////////
rParams.pMaterial = pPrevMtl;
rParams.dwFObjFlags = nOldObjectFlags;
if ( !passInfo.IsShadowPass() ) // Should also ignore rendering into the recursion.
{
if (pFoliage)
{
pFoliage->SetFlags(pFoliage->GetFlags() & ~IFoliage::FLAG_FROZEN | -(int)(rParams.nMaterialLayers&MTL_LAYER_FROZEN) & IFoliage::FLAG_FROZEN);
static ICVar *g_pWindActivationDist = gEnv->pConsole->GetCVar("e_FoliageWindActivationDist");
float maxdist = g_pWindActivationDist ? g_pWindActivationDist->GetFVal() : 0.0f;
Vec3 pos = m_worldTM.GetTranslation();
if (pStatObj && (gEnv->pSystem->GetViewCamera().GetPosition()-pos).len2()<sqr(maxdist) && gEnv->p3DEngine->GetWind(AABB(pos),false).len2()>101.0f)
pStatObj->PhysicalizeFoliage(pEntity->GetPhysics(),m_worldTM,pFoliage,0,4);
}
}
return bDrawn;
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::OnXForm( CEntity *pEntity )
{
UpdateWorldTM(pEntity);
if(!m_worldTM.IsValid())
{
EntityWarning("CEntityObject::OnXForm: Invalid world matrix: %s", pEntity->GetEntityTextDescription());
return;
}
if (pLight)
{
ILightSource *pLightSource = pLight;
// Update light positions.
CDLight *pDLight = &pLightSource->GetLightProperties();
pDLight->SetPosition( m_worldTM.GetTranslation() );
pDLight->SetMatrix(m_worldTM);
pDLight->m_sName = pEntity->GetName(); // For debugging only.
pDLight->m_nEntityId = pEntity->GetId();
pEntity->UpdateLightClipBounds(*pDLight);
pLightSource->SetMatrix(m_worldTM);
}
if (pChildRenderNode)
{
pChildRenderNode->SetMatrix( m_worldTM );
}
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::OnEntityEvent( CEntity *pEntity, SEntityEvent const& event )
{
if (pChildRenderNode)
pChildRenderNode->OnEntityEvent( pEntity, event );
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::OnNotSeenTimeout()
{
//if (pCharacter)
// pCharacter->ReleaseTemporaryResources();
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::Update( CEntity *pEntity,bool bVisible,bool &bBoundsChanged )
{
bBoundsChanged = false;
if (pCharacter)
{
int characterFlags = pCharacter->GetFlags();
if ((flags&ENTITY_SLOT_RENDER) || (characterFlags & CS_FLAG_UPDATE_ALWAYS))
{
bBoundsChanged = true; // Lets bounds of character change constantly.
if (characterFlags & CS_FLAG_UPDATE)
{
if (!bWorldTMValid)
UpdateWorldTM(pEntity);
QuatTS AnimatedCharacter = QuatTS( m_worldTM );
const CCamera& camera = GetISystem()->GetViewCamera();
float fDistance = (camera.GetPosition() - AnimatedCharacter.t).GetLength();
float fZoomFactor = 0.001f + 0.999f*(RAD2DEG(camera.GetFov())/60.f);
SAnimationProcessParams params;
params.locationAnimation = AnimatedCharacter;
params.bOnRender = 0;
params.zoomAdjustedDistanceFromCamera = fDistance*fZoomFactor;
pCharacter->StartAnimationProcessing(params);
}
}
}
#if defined(USE_GEOM_CACHES)
else
{
IGeomCacheRenderNode *pGeomCacheRenderNode = GetGeomCacheRenderNode();
if (pGeomCacheRenderNode && pGeomCacheRenderNode->DidBoundsChange())
{
bBoundsChanged = true;
}
}
#endif
}
void CEntityObject::GetMemoryUsage( ICrySizer *pSizer ) const
{
{
SIZER_COMPONENT_NAME(pSizer,"CEntityObject Allocator");
pSizer->AddObject(g_Alloc_EntitySlot);
}
pSizer->AddObject(pCharacter);
pSizer->AddObject(pStatObj);
pSizer->AddObject(pLight);
pSizer->AddObject(pChildRenderNode);
pSizer->AddObject(pMaterial);
}
//////////////////////////////////////////////////////////////////////////
| 12,992 | 4,758 |
#include "PCH.h"
#include "DiffuseBSDF.h"
#include "Math/SamplingHelpers.h"
namespace rt {
using namespace math;
const char* DiffuseBSDF::GetName() const
{
return "diffuse";
}
bool DiffuseBSDF::Sample(SamplingContext& ctx) const
{
const float NdotV = ctx.outgoingDir.z;
if (NdotV < CosEpsilon)
{
return false;
}
ctx.outIncomingDir = SamplingHelpers::GetHemishpereCos(ctx.sample);
ctx.outPdf = ctx.outIncomingDir.z * RT_INV_PI;
ctx.outColor = ctx.materialParam.baseColor;
ctx.outEventType = DiffuseReflectionEvent;
return true;
}
const RayColor DiffuseBSDF::Evaluate(const EvaluationContext& ctx, float* outDirectPdfW, float* outReversePdfW) const
{
const float NdotV = ctx.outgoingDir.z;
const float NdotL = -ctx.incomingDir.z;
if (NdotV > CosEpsilon && NdotL > CosEpsilon)
{
if (outDirectPdfW)
{
// cos-weighted hemisphere distribution
*outDirectPdfW = NdotL * RT_INV_PI;
}
if (outReversePdfW)
{
// cos-weighted hemisphere distribution
*outReversePdfW = NdotV * RT_INV_PI;
}
return ctx.materialParam.baseColor * RayColor(NdotL * RT_INV_PI);
}
return RayColor::Zero();
}
float DiffuseBSDF::Pdf(const EvaluationContext& ctx, PdfDirection dir) const
{
const float NdotV = ctx.outgoingDir.z;
const float NdotL = -ctx.incomingDir.z;
if (NdotV > CosEpsilon && NdotL > CosEpsilon)
{
if (dir == ForwardPdf)
{
return NdotL * RT_INV_PI;
}
else
{
return NdotV * RT_INV_PI;
}
}
return 0.0f;
}
} // namespace rt
| 1,688 | 626 |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template <typename T1>
struct VirtActionInvoker1
{
typedef void (*Action)(void*, T1, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2>
struct VirtActionInvoker2
{
typedef void (*Action)(void*, T1, T2, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, p2, invokeData.method);
}
};
struct VirtActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, invokeData.method);
}
};
template <typename T1, typename T2, typename T3>
struct VirtActionInvoker3
{
typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename T1, typename T2, typename T3, typename T4>
struct VirtActionInvoker4
{
typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename R, typename T1>
struct VirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2, typename T3>
struct GenericVirtActionInvoker3
{
typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename T1, typename T2, typename T3, typename T4>
struct GenericVirtActionInvoker4
{
typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename R, typename T1>
struct GenericVirtFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_virtual_invoke_data(method, obj, &invokeData);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2, typename T3>
struct InterfaceActionInvoker3
{
typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename T1, typename T2, typename T3, typename T4>
struct InterfaceActionInvoker4
{
typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename R, typename T1>
struct InterfaceFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeClass* declaringInterface, RuntimeObject* obj, T1 p1)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_interface_invoke_data(slot, obj, declaringInterface);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
template <typename T1, typename T2, typename T3>
struct GenericInterfaceActionInvoker3
{
typedef void (*Action)(void*, T1, T2, T3, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, invokeData.method);
}
};
template <typename T1, typename T2, typename T3, typename T4>
struct GenericInterfaceActionInvoker4
{
typedef void (*Action)(void*, T1, T2, T3, T4, const RuntimeMethod*);
static inline void Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1, T2 p2, T3 p3, T4 p4)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData);
((Action)invokeData.methodPtr)(obj, p1, p2, p3, p4, invokeData.method);
}
};
template <typename R, typename T1>
struct GenericInterfaceFuncInvoker1
{
typedef R (*Func)(void*, T1, const RuntimeMethod*);
static inline R Invoke (const RuntimeMethod* method, RuntimeObject* obj, T1 p1)
{
VirtualInvokeData invokeData;
il2cpp_codegen_get_generic_interface_invoke_data(method, obj, &invokeData);
return ((Func)invokeData.methodPtr)(obj, p1, invokeData.method);
}
};
// System.Action`1<System.Object>
struct Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0;
// System.Action`1<UnityEngine.XR.WSA.Input.GestureErrorEventArgs>
struct Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldCanceledEventArgs>
struct Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldCompletedEventArgs>
struct Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldStartedEventArgs>
struct Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCanceledEventArgs>
struct Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCompletedEventArgs>
struct Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationStartedEventArgs>
struct Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationUpdatedEventArgs>
struct Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>
struct Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>
struct Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>
struct Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>
struct Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C;
// System.Action`1<UnityEngine.XR.WSA.Input.RecognitionEndedEventArgs>
struct Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7;
// System.Action`1<UnityEngine.XR.WSA.Input.RecognitionStartedEventArgs>
struct Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E;
// System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>
struct Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12;
// System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>
struct Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4;
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1;
// System.ArgumentNullException
struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD;
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.Dictionary`2/Entry<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>[]
struct EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60;
// System.Collections.Generic.Dictionary`2/KeyCollection<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>
struct KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6;
// System.Collections.Generic.Dictionary`2/ValueCollection<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>
struct ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Object>
struct Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.EventSystems.PointerEventData>
struct Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>
struct Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10;
// System.Collections.Generic.IEqualityComparer`1<System.Int32>
struct IEqualityComparer_1_t7B82AA0F8B96BAAA21E36DDF7A1FE4348BDDBE95;
// System.Collections.Generic.List`1<System.Int32>
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226;
// System.Collections.Generic.List`1<UnityEngine.EventSystems.BaseInputModule>
struct List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26;
// System.Collections.Generic.List`1<UnityEngine.EventSystems.EventSystem>
struct List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B;
// System.Collections.Generic.List`1<UnityEngine.EventSystems.RaycastResult>
struct List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52;
// System.Collections.Generic.List`1<UnityEngine.GameObject>
struct List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B;
// System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>
struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0;
// System.Collections.IDictionary
struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7;
// System.Comparison`1<UnityEngine.EventSystems.RaycastResult>
struct Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13;
// System.Delegate
struct Delegate_t;
// System.DelegateData
struct DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE;
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196;
// System.IAsyncResult
struct IAsyncResult_t8E194308510B375B42432981AE5E7488C458D598;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.IntPtr[]
struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD;
// System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>
struct Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD;
// System.Reflection.MethodInfo
struct MethodInfo_t;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770;
// System.String
struct String_t;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// UnityEngine.Audio.AudioSpatializerMicrosoft
struct AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83;
// UnityEngine.AudioSource
struct AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C;
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34;
// UnityEngine.Camera/CameraCallback
struct CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0;
// UnityEngine.Collider
struct Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF;
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621;
// UnityEngine.EventSystems.AxisEventData
struct AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442;
// UnityEngine.EventSystems.BaseEventData
struct BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5;
// UnityEngine.EventSystems.BaseInput
struct BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82;
// UnityEngine.EventSystems.BaseInputModule
struct BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939;
// UnityEngine.EventSystems.BaseRaycaster
struct BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966;
// UnityEngine.EventSystems.EventSystem
struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77;
// UnityEngine.EventSystems.HoloLensInput
struct HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04;
// UnityEngine.EventSystems.HoloLensInputModule
struct HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB;
// UnityEngine.EventSystems.PointerEventData
struct PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63;
// UnityEngine.EventSystems.PointerInputModule
struct PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C;
// UnityEngine.EventSystems.PointerInputModule/MouseState
struct MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7;
// UnityEngine.EventSystems.StandaloneInputModule
struct StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5;
// UnityEngine.EventSystems.UIBehaviour
struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70;
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598;
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C;
// UnityEngine.MeshCollider
struct MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE;
// UnityEngine.MeshFilter
struct MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0;
// UnityEngine.MeshRenderer
struct MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED;
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429;
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
// UnityEngine.PhysicMaterial
struct PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8;
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20;
// UnityEngine.RectTransform/ReapplyDrivenProperties
struct ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D;
// UnityEngine.Renderer
struct Renderer_t0556D67DD582620D1F495627EDE30D03284151F4;
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA;
// UnityEngine.XR.WSA.Input.GestureRecognizer
struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE;
// UnityEngine.XR.WSA.Input.GestureRecognizer/GestureErrorDelegate
struct GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084;
// UnityEngine.XR.WSA.Input.GestureRecognizer/HoldCanceledEventDelegate
struct HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2;
// UnityEngine.XR.WSA.Input.GestureRecognizer/HoldCompletedEventDelegate
struct HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A;
// UnityEngine.XR.WSA.Input.GestureRecognizer/HoldStartedEventDelegate
struct HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2;
// UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationCanceledEventDelegate
struct ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917;
// UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationCompletedEventDelegate
struct ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4;
// UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationStartedEventDelegate
struct ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0;
// UnityEngine.XR.WSA.Input.GestureRecognizer/ManipulationUpdatedEventDelegate
struct ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406;
// UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationCanceledEventDelegate
struct NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954;
// UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationCompletedEventDelegate
struct NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3;
// UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationStartedEventDelegate
struct NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF;
// UnityEngine.XR.WSA.Input.GestureRecognizer/NavigationUpdatedEventDelegate
struct NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A;
// UnityEngine.XR.WSA.Input.GestureRecognizer/RecognitionEndedEventDelegate
struct RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B;
// UnityEngine.XR.WSA.Input.GestureRecognizer/RecognitionStartedEventDelegate
struct RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214;
// UnityEngine.XR.WSA.Input.GestureRecognizer/TappedEventDelegate
struct TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F;
// UnityEngine.XR.WSA.SpatialMappingBase
struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54;
// UnityEngine.XR.WSA.SpatialMappingBase/Surface
struct Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D;
// UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback
struct SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592;
// UnityEngine.XR.WSA.SpatialMappingCollider
struct SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2;
// UnityEngine.XR.WSA.SpatialMappingContext
struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956;
// UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass12_0
struct U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692;
// UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass13_0
struct U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89;
// UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback
struct GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6;
// UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest[]
struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD;
// UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C;
// UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord[]
struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1;
// UnityEngine.XR.WSA.SpatialMappingRenderer
struct SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB;
// UnityEngine.XR.WSA.SurfaceData
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66;
// UnityEngine.XR.WSA.SurfaceObserver
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864;
// UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate
struct SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1;
// UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate
struct SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092;
// UnityEngine.XR.WSA.WorldAnchor
struct WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE;
// UnityEngine.XR.WSA.WorldAnchor/OnTrackingChangedDelegate
struct OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253;
IL2CPP_EXTERN_C RuntimeClass* Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeField* U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15____D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0_FieldInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral05C07D1FCAF258FA9A5BB24E01F6316B3F11BE63;
IL2CPP_EXTERN_C String_t* _stringLiteral0BA701B50A5948064432E087F10E47BBBB8F47F6;
IL2CPP_EXTERN_C String_t* _stringLiteral19EA9A5EB531CE393DCA73F73B60048CF49D5D7E;
IL2CPP_EXTERN_C String_t* _stringLiteral307527C227AC648BB119BCB457EBB8466E79827C;
IL2CPP_EXTERN_C String_t* _stringLiteral31CF5C222B7921A07D0A9EF275277FC32788832F;
IL2CPP_EXTERN_C String_t* _stringLiteral3D9A40DDD9AF3D33ED1C157EA10B0DD27C405802;
IL2CPP_EXTERN_C String_t* _stringLiteral44A541D01189AFFA834A25E0A93A328341730C75;
IL2CPP_EXTERN_C String_t* _stringLiteral62234BEF4038675D8DA131376AEB172897EAB03D;
IL2CPP_EXTERN_C String_t* _stringLiteral82AA2F03AC2CF34CF663318762D43CC36CFFC6C1;
IL2CPP_EXTERN_C String_t* _stringLiteral83D748A4D24B0945189E5C60B86FCDCF5E71A290;
IL2CPP_EXTERN_C String_t* _stringLiteral85EE1AFFF61EEAA487746F3F8C1685BB1C03665C;
IL2CPP_EXTERN_C String_t* _stringLiteralA5720A5DE163F01678ACB0606AF0EEED421C94EB;
IL2CPP_EXTERN_C String_t* _stringLiteralAC5BF571DE9975A9AA7E383FF7EA6E291929C5DE;
IL2CPP_EXTERN_C String_t* _stringLiteralAE9F75EABE0850F0B8A701C7B2478D0F8C395D79;
IL2CPP_EXTERN_C String_t* _stringLiteralB782D9835143821E697B67407CCFB082FE6322A9;
IL2CPP_EXTERN_C String_t* _stringLiteralDD1FA74A105812D05EDBBA6CA1731A9A0C697ED4;
IL2CPP_EXTERN_C String_t* _stringLiteralEB6EF0B99606BAD040095156CE2B1FAAC0C59C6A;
IL2CPP_EXTERN_C String_t* _stringLiteralF9641356B56AB3E220318DB9A52C7620EC3E8076;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_RuntimeMethod_var;
IL2CPP_EXTERN_C const uint32_t AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1BUnity_XR_WindowsMR_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010Unity_XR_WindowsMR_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_MetadataUsageId;
struct Delegate_t_marshaled_com;
struct Delegate_t_marshaled_pinvoke;
struct Exception_t_marshaled_com;
struct Exception_t_marshaled_pinvoke;
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C;;
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com;
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com;;
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke;
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke;;
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66;;
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com;
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com;;
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke;
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke;;
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864;;
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com;
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com;;
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke;
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke;;
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86;
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD;
struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t1C9214707077BD8585D010C1E3AE7AB53D01423B
{
public:
public:
};
// System.Object
struct Il2CppArrayBounds;
// System.Array
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>
struct Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 : public RuntimeObject
{
public:
// System.Int32[] System.Collections.Generic.Dictionary`2::buckets
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___buckets_0;
// System.Collections.Generic.Dictionary`2_Entry<TKey,TValue>[] System.Collections.Generic.Dictionary`2::entries
EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* ___entries_1;
// System.Int32 System.Collections.Generic.Dictionary`2::count
int32_t ___count_2;
// System.Int32 System.Collections.Generic.Dictionary`2::version
int32_t ___version_3;
// System.Int32 System.Collections.Generic.Dictionary`2::freeList
int32_t ___freeList_4;
// System.Int32 System.Collections.Generic.Dictionary`2::freeCount
int32_t ___freeCount_5;
// System.Collections.Generic.IEqualityComparer`1<TKey> System.Collections.Generic.Dictionary`2::comparer
RuntimeObject* ___comparer_6;
// System.Collections.Generic.Dictionary`2_KeyCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::keys
KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * ___keys_7;
// System.Collections.Generic.Dictionary`2_ValueCollection<TKey,TValue> System.Collections.Generic.Dictionary`2::values
ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * ___values_8;
// System.Object System.Collections.Generic.Dictionary`2::_syncRoot
RuntimeObject * ____syncRoot_9;
public:
inline static int32_t get_offset_of_buckets_0() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___buckets_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_buckets_0() const { return ___buckets_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_buckets_0() { return &___buckets_0; }
inline void set_buckets_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___buckets_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___buckets_0), (void*)value);
}
inline static int32_t get_offset_of_entries_1() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___entries_1)); }
inline EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* get_entries_1() const { return ___entries_1; }
inline EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60** get_address_of_entries_1() { return &___entries_1; }
inline void set_entries_1(EntryU5BU5D_t17D4C9628A2D23EEBCAA795C5F1AAD7A4C42CF60* value)
{
___entries_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___entries_1), (void*)value);
}
inline static int32_t get_offset_of_count_2() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___count_2)); }
inline int32_t get_count_2() const { return ___count_2; }
inline int32_t* get_address_of_count_2() { return &___count_2; }
inline void set_count_2(int32_t value)
{
___count_2 = value;
}
inline static int32_t get_offset_of_version_3() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___version_3)); }
inline int32_t get_version_3() const { return ___version_3; }
inline int32_t* get_address_of_version_3() { return &___version_3; }
inline void set_version_3(int32_t value)
{
___version_3 = value;
}
inline static int32_t get_offset_of_freeList_4() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___freeList_4)); }
inline int32_t get_freeList_4() const { return ___freeList_4; }
inline int32_t* get_address_of_freeList_4() { return &___freeList_4; }
inline void set_freeList_4(int32_t value)
{
___freeList_4 = value;
}
inline static int32_t get_offset_of_freeCount_5() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___freeCount_5)); }
inline int32_t get_freeCount_5() const { return ___freeCount_5; }
inline int32_t* get_address_of_freeCount_5() { return &___freeCount_5; }
inline void set_freeCount_5(int32_t value)
{
___freeCount_5 = value;
}
inline static int32_t get_offset_of_comparer_6() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___comparer_6)); }
inline RuntimeObject* get_comparer_6() const { return ___comparer_6; }
inline RuntimeObject** get_address_of_comparer_6() { return &___comparer_6; }
inline void set_comparer_6(RuntimeObject* value)
{
___comparer_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___comparer_6), (void*)value);
}
inline static int32_t get_offset_of_keys_7() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___keys_7)); }
inline KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * get_keys_7() const { return ___keys_7; }
inline KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 ** get_address_of_keys_7() { return &___keys_7; }
inline void set_keys_7(KeyCollection_tFAE3E69598B93CA315C7A4F3ED96F27C5102F8C6 * value)
{
___keys_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___keys_7), (void*)value);
}
inline static int32_t get_offset_of_values_8() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ___values_8)); }
inline ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * get_values_8() const { return ___values_8; }
inline ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 ** get_address_of_values_8() { return &___values_8; }
inline void set_values_8(ValueCollection_tE9D45A1597E4E32B2E96FDE952D6265CD93A4924 * value)
{
___values_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___values_8), (void*)value);
}
inline static int32_t get_offset_of__syncRoot_9() { return static_cast<int32_t>(offsetof(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10, ____syncRoot_9)); }
inline RuntimeObject * get__syncRoot_9() const { return ____syncRoot_9; }
inline RuntimeObject ** get_address_of__syncRoot_9() { return &____syncRoot_9; }
inline void set__syncRoot_9(RuntimeObject * value)
{
____syncRoot_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_9), (void*)value);
}
};
// System.Collections.Generic.List`1<System.Int32>
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____items_1)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__items_1() const { return ____items_1; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_StaticFields, ____emptyArray_5)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get__emptyArray_5() const { return ____emptyArray_5; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord>
struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____items_1)); }
inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* get__items_1() const { return ____items_1; }
inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_StaticFields, ____emptyArray_5)); }
inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* get__emptyArray_5() const { return ____emptyArray_5; }
inline SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
// UnityEngine.EventSystems.AbstractEventData
struct AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6 : public RuntimeObject
{
public:
// System.Boolean UnityEngine.EventSystems.AbstractEventData::m_Used
bool ___m_Used_0;
public:
inline static int32_t get_offset_of_m_Used_0() { return static_cast<int32_t>(offsetof(AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6, ___m_Used_0)); }
inline bool get_m_Used_0() const { return ___m_Used_0; }
inline bool* get_address_of_m_Used_0() { return &___m_Used_0; }
inline void set_m_Used_0(bool value)
{
___m_Used_0 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingContext
struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 : public RuntimeObject
{
public:
// System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord> UnityEngine.XR.WSA.SpatialMappingContext::m_Components
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * ___m_Components_2;
// UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest[] UnityEngine.XR.WSA.SpatialMappingContext::m_InFlightRequests
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* ___m_InFlightRequests_3;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::m_InFlightSurfaces
int32_t ___m_InFlightSurfaces_4;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::m_NextIndex
int32_t ___m_NextIndex_5;
public:
inline static int32_t get_offset_of_m_Components_2() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_Components_2)); }
inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * get_m_Components_2() const { return ___m_Components_2; }
inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 ** get_address_of_m_Components_2() { return &___m_Components_2; }
inline void set_m_Components_2(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * value)
{
___m_Components_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Components_2), (void*)value);
}
inline static int32_t get_offset_of_m_InFlightRequests_3() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_InFlightRequests_3)); }
inline SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* get_m_InFlightRequests_3() const { return ___m_InFlightRequests_3; }
inline SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD** get_address_of_m_InFlightRequests_3() { return &___m_InFlightRequests_3; }
inline void set_m_InFlightRequests_3(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* value)
{
___m_InFlightRequests_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_InFlightRequests_3), (void*)value);
}
inline static int32_t get_offset_of_m_InFlightSurfaces_4() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_InFlightSurfaces_4)); }
inline int32_t get_m_InFlightSurfaces_4() const { return ___m_InFlightSurfaces_4; }
inline int32_t* get_address_of_m_InFlightSurfaces_4() { return &___m_InFlightSurfaces_4; }
inline void set_m_InFlightSurfaces_4(int32_t value)
{
___m_InFlightSurfaces_4 = value;
}
inline static int32_t get_offset_of_m_NextIndex_5() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956, ___m_NextIndex_5)); }
inline int32_t get_m_NextIndex_5() const { return ___m_NextIndex_5; }
inline int32_t* get_address_of_m_NextIndex_5() { return &___m_NextIndex_5; }
inline void set_m_NextIndex_5(int32_t value)
{
___m_NextIndex_5 = value;
}
};
struct SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields
{
public:
// UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::instance
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * ___instance_0;
public:
inline static int32_t get_offset_of_instance_0() { return static_cast<int32_t>(offsetof(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields, ___instance_0)); }
inline SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * get_instance_0() const { return ___instance_0; }
inline SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 ** get_address_of_instance_0() { return &___instance_0; }
inline void set_instance_0(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * value)
{
___instance_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instance_0), (void*)value);
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0
struct U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 : public RuntimeObject
{
public:
// UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::smComponent
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent_0;
public:
inline static int32_t get_offset_of_smComponent_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692, ___smComponent_0)); }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_smComponent_0() const { return ___smComponent_0; }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_smComponent_0() { return &___smComponent_0; }
inline void set_smComponent_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value)
{
___smComponent_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___smComponent_0), (void*)value);
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0
struct U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 : public RuntimeObject
{
public:
// UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::smComponent
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent_0;
public:
inline static int32_t get_offset_of_smComponent_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89, ___smComponent_0)); }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_smComponent_0() const { return ___smComponent_0; }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_smComponent_0() { return &___smComponent_0; }
inline void set_smComponent_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value)
{
___smComponent_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___smComponent_0), (void*)value);
}
};
// UnityEngine.XR.WSA.SurfaceObserver
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 : public RuntimeObject
{
public:
// System.Int32 UnityEngine.XR.WSA.SurfaceObserver::m_Observer
int32_t ___m_Observer_1;
public:
inline static int32_t get_offset_of_m_Observer_1() { return static_cast<int32_t>(offsetof(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864, ___m_Observer_1)); }
inline int32_t get_m_Observer_1() const { return ___m_Observer_1; }
inline int32_t* get_address_of_m_Observer_1() { return &___m_Observer_1; }
inline void set_m_Observer_1(int32_t value)
{
___m_Observer_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SurfaceObserver
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke
{
int32_t ___m_Observer_1;
};
// Native definition for COM marshalling of UnityEngine.XR.WSA.SurfaceObserver
struct SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com
{
int32_t ___m_Observer_1;
};
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D12
struct __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A
{
public:
union
{
struct
{
union
{
};
};
uint8_t __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A__padding[12];
};
public:
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>
struct KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
int32_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE, ___key_0)); }
inline int32_t get_key_0() const { return ___key_0; }
inline int32_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(int32_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value);
}
};
// System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>
struct KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248
{
public:
// TKey System.Collections.Generic.KeyValuePair`2::key
int32_t ___key_0;
// TValue System.Collections.Generic.KeyValuePair`2::value
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248, ___key_0)); }
inline int32_t get_key_0() const { return ___key_0; }
inline int32_t* get_address_of_key_0() { return &___key_0; }
inline void set_key_0(int32_t value)
{
___key_0 = value;
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248, ___value_1)); }
inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * get_value_1() const { return ___value_1; }
inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___value_1), (void*)value);
}
};
// System.DateTime
struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132
{
public:
// System.UInt64 System.DateTime::dateData
uint64_t ___dateData_44;
public:
inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132, ___dateData_44)); }
inline uint64_t get_dateData_44() const { return ___dateData_44; }
inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; }
inline void set_dateData_44(uint64_t value)
{
___dateData_44 = value;
}
};
struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields
{
public:
// System.Int32[] System.DateTime::DaysToMonth365
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth365_29;
// System.Int32[] System.DateTime::DaysToMonth366
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth366_30;
// System.DateTime System.DateTime::MinValue
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MinValue_31;
// System.DateTime System.DateTime::MaxValue
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MaxValue_32;
public:
inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth365_29)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; }
inline void set_DaysToMonth365_29(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___DaysToMonth365_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth365_29), (void*)value);
}
inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth366_30)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; }
inline void set_DaysToMonth366_30(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___DaysToMonth366_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___DaysToMonth366_30), (void*)value);
}
inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MinValue_31)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MinValue_31() const { return ___MinValue_31; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MinValue_31() { return &___MinValue_31; }
inline void set_MinValue_31(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___MinValue_31 = value;
}
inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MaxValue_32)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MaxValue_32() const { return ___MaxValue_32; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MaxValue_32() { return &___MaxValue_32; }
inline void set_MaxValue_32(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___MaxValue_32 = value;
}
};
// System.Double
struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409
{
public:
// System.Double System.Double::m_value
double ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409, ___m_value_0)); }
inline double get_m_value_0() const { return ___m_value_0; }
inline double* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(double value)
{
___m_value_0 = value;
}
};
struct Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields
{
public:
// System.Double System.Double::NegativeZero
double ___NegativeZero_7;
public:
inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t358B8F23BDC52A5DD700E727E204F9F7CDE12409_StaticFields, ___NegativeZero_7)); }
inline double get_NegativeZero_7() const { return ___NegativeZero_7; }
inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; }
inline void set_NegativeZero_7(double value)
{
___NegativeZero_7 = value;
}
};
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Single
struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// UnityEngine.EventSystems.BaseEventData
struct BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 : public AbstractEventData_t636F385820C291DAE25897BCEB4FBCADDA3B75F6
{
public:
// UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseEventData::m_EventSystem
EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * ___m_EventSystem_1;
public:
inline static int32_t get_offset_of_m_EventSystem_1() { return static_cast<int32_t>(offsetof(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5, ___m_EventSystem_1)); }
inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * get_m_EventSystem_1() const { return ___m_EventSystem_1; }
inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 ** get_address_of_m_EventSystem_1() { return &___m_EventSystem_1; }
inline void set_m_EventSystem_1(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * value)
{
___m_EventSystem_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystem_1), (void*)value);
}
};
// UnityEngine.Quaternion
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___identityQuaternion_4 = value;
}
};
// UnityEngine.Vector2
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D
{
public:
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
};
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___zeroVector_2)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___oneVector_3)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___upVector_4)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_upVector_4() const { return ___upVector_4; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___downVector_5)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_downVector_5() const { return ___downVector_5; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___leftVector_6)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___rightVector_7)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___negativeInfinityVector_9 = value;
}
};
// UnityEngine.Vector3
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
public:
inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___x_2)); }
inline float get_x_2() const { return ___x_2; }
inline float* get_address_of_x_2() { return &___x_2; }
inline void set_x_2(float value)
{
___x_2 = value;
}
inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___y_3)); }
inline float get_y_3() const { return ___y_3; }
inline float* get_address_of_y_3() { return &___y_3; }
inline void set_y_3(float value)
{
___y_3 = value;
}
inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___z_4)); }
inline float get_z_4() const { return ___z_4; }
inline float* get_address_of_z_4() { return &___z_4; }
inline void set_z_4(float value)
{
___z_4 = value;
}
};
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___zeroVector_5)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___oneVector_6)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___upVector_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_upVector_7() const { return ___upVector_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___downVector_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_downVector_8() const { return ___downVector_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___leftVector_9)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___rightVector_10)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___forwardVector_11)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___backVector_12)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_backVector_12() const { return ___backVector_12; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___negativeInfinityVector_14 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C
{
public:
// UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_Component
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0;
// UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_OnDataReady
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___m_OnDataReady_1;
// UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_GetHighestPri
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___m_GetHighestPri_2;
// UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::m_SurfaceObserver
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___m_SurfaceObserver_3;
public:
inline static int32_t get_offset_of_m_Component_0() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_Component_0)); }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * get_m_Component_0() const { return ___m_Component_0; }
inline SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 ** get_address_of_m_Component_0() { return &___m_Component_0; }
inline void set_m_Component_0(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * value)
{
___m_Component_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Component_0), (void*)value);
}
inline static int32_t get_offset_of_m_OnDataReady_1() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_OnDataReady_1)); }
inline SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * get_m_OnDataReady_1() const { return ___m_OnDataReady_1; }
inline SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 ** get_address_of_m_OnDataReady_1() { return &___m_OnDataReady_1; }
inline void set_m_OnDataReady_1(SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * value)
{
___m_OnDataReady_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDataReady_1), (void*)value);
}
inline static int32_t get_offset_of_m_GetHighestPri_2() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_GetHighestPri_2)); }
inline GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * get_m_GetHighestPri_2() const { return ___m_GetHighestPri_2; }
inline GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 ** get_address_of_m_GetHighestPri_2() { return &___m_GetHighestPri_2; }
inline void set_m_GetHighestPri_2(GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * value)
{
___m_GetHighestPri_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_GetHighestPri_2), (void*)value);
}
inline static int32_t get_offset_of_m_SurfaceObserver_3() { return static_cast<int32_t>(offsetof(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C, ___m_SurfaceObserver_3)); }
inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * get_m_SurfaceObserver_3() const { return ___m_SurfaceObserver_3; }
inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 ** get_address_of_m_SurfaceObserver_3() { return &___m_SurfaceObserver_3; }
inline void set_m_SurfaceObserver_3(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * value)
{
___m_SurfaceObserver_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SurfaceObserver_3), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke
{
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0;
Il2CppMethodPointer ___m_OnDataReady_1;
Il2CppMethodPointer ___m_GetHighestPri_2;
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke ___m_SurfaceObserver_3;
};
// Native definition for COM marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
struct SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com
{
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___m_Component_0;
Il2CppMethodPointer ___m_OnDataReady_1;
Il2CppMethodPointer ___m_GetHighestPri_2;
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com* ___m_SurfaceObserver_3;
};
// UnityEngine.XR.WSA.SurfaceId
struct SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF
{
public:
// System.Int32 UnityEngine.XR.WSA.SurfaceId::handle
int32_t ___handle_0;
public:
inline static int32_t get_offset_of_handle_0() { return static_cast<int32_t>(offsetof(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF, ___handle_0)); }
inline int32_t get_handle_0() const { return ___handle_0; }
inline int32_t* get_address_of_handle_0() { return &___handle_0; }
inline void set_handle_0(int32_t value)
{
___handle_0 = value;
}
};
// <PrivateImplementationDetails>
struct U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15 : public RuntimeObject
{
public:
public:
};
struct U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15_StaticFields
{
public:
// <PrivateImplementationDetails>___StaticArrayInitTypeSizeU3D12 <PrivateImplementationDetails>::D15896F389DBE7C4EB4B27E5CA408E92D08149C9
__StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0;
public:
inline static int32_t get_offset_of_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() { return static_cast<int32_t>(offsetof(U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15_StaticFields, ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0)); }
inline __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A get_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() const { return ___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0; }
inline __StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A * get_address_of_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0() { return &___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0; }
inline void set_D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0(__StaticArrayInitTypeSizeU3D12_t2C6CE973482F1CB780ED3B1C1157C595705E4F5A value)
{
___D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0 = value;
}
};
// System.Collections.Generic.Dictionary`2_Enumerator<System.Int32,System.Object>
struct Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::dictionary
Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::current
KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___dictionary_0)); }
inline Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___current_3)); }
inline KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL);
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
// System.Collections.Generic.Dictionary`2_Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>
struct Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B
{
public:
// System.Collections.Generic.Dictionary`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::dictionary
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___dictionary_0;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::version
int32_t ___version_1;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::index
int32_t ___index_2;
// System.Collections.Generic.KeyValuePair`2<TKey,TValue> System.Collections.Generic.Dictionary`2_Enumerator::current
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 ___current_3;
// System.Int32 System.Collections.Generic.Dictionary`2_Enumerator::getEnumeratorRetType
int32_t ___getEnumeratorRetType_4;
public:
inline static int32_t get_offset_of_dictionary_0() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___dictionary_0)); }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_dictionary_0() const { return ___dictionary_0; }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_dictionary_0() { return &___dictionary_0; }
inline void set_dictionary_0(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value)
{
___dictionary_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___dictionary_0), (void*)value);
}
inline static int32_t get_offset_of_version_1() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___version_1)); }
inline int32_t get_version_1() const { return ___version_1; }
inline int32_t* get_address_of_version_1() { return &___version_1; }
inline void set_version_1(int32_t value)
{
___version_1 = value;
}
inline static int32_t get_offset_of_index_2() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___index_2)); }
inline int32_t get_index_2() const { return ___index_2; }
inline int32_t* get_address_of_index_2() { return &___index_2; }
inline void set_index_2(int32_t value)
{
___index_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___current_3)); }
inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 get_current_3() const { return ___current_3; }
inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___value_1), (void*)NULL);
}
inline static int32_t get_offset_of_getEnumeratorRetType_4() { return static_cast<int32_t>(offsetof(Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B, ___getEnumeratorRetType_4)); }
inline int32_t get_getEnumeratorRetType_4() const { return ___getEnumeratorRetType_4; }
inline int32_t* get_address_of_getEnumeratorRetType_4() { return &___getEnumeratorRetType_4; }
inline void set_getEnumeratorRetType_4(int32_t value)
{
___getEnumeratorRetType_4 = value;
}
};
// System.Collections.Generic.List`1_Enumerator<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord>
struct Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406
{
public:
// System.Collections.Generic.List`1<T> System.Collections.Generic.List`1_Enumerator::list
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * ___list_0;
// System.Int32 System.Collections.Generic.List`1_Enumerator::index
int32_t ___index_1;
// System.Int32 System.Collections.Generic.List`1_Enumerator::version
int32_t ___version_2;
// T System.Collections.Generic.List`1_Enumerator::current
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___current_3;
public:
inline static int32_t get_offset_of_list_0() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___list_0)); }
inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * get_list_0() const { return ___list_0; }
inline List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 ** get_address_of_list_0() { return &___list_0; }
inline void set_list_0(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * value)
{
___list_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___list_0), (void*)value);
}
inline static int32_t get_offset_of_index_1() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___index_1)); }
inline int32_t get_index_1() const { return ___index_1; }
inline int32_t* get_address_of_index_1() { return &___index_1; }
inline void set_index_1(int32_t value)
{
___index_1 = value;
}
inline static int32_t get_offset_of_version_2() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___version_2)); }
inline int32_t get_version_2() const { return ___version_2; }
inline int32_t* get_address_of_version_2() { return &___version_2; }
inline void set_version_2(int32_t value)
{
___version_2 = value;
}
inline static int32_t get_offset_of_current_3() { return static_cast<int32_t>(offsetof(Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406, ___current_3)); }
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C get_current_3() const { return ___current_3; }
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * get_address_of_current_3() { return &___current_3; }
inline void set_current_3(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value)
{
___current_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_Component_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___current_3))->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
};
// System.Delegate
struct Delegate_t : public RuntimeObject
{
public:
// System.IntPtr System.Delegate::method_ptr
Il2CppMethodPointer ___method_ptr_0;
// System.IntPtr System.Delegate::invoke_impl
intptr_t ___invoke_impl_1;
// System.Object System.Delegate::m_target
RuntimeObject * ___m_target_2;
// System.IntPtr System.Delegate::method
intptr_t ___method_3;
// System.IntPtr System.Delegate::delegate_trampoline
intptr_t ___delegate_trampoline_4;
// System.IntPtr System.Delegate::extra_arg
intptr_t ___extra_arg_5;
// System.IntPtr System.Delegate::method_code
intptr_t ___method_code_6;
// System.Reflection.MethodInfo System.Delegate::method_info
MethodInfo_t * ___method_info_7;
// System.Reflection.MethodInfo System.Delegate::original_method_info
MethodInfo_t * ___original_method_info_8;
// System.DelegateData System.Delegate::data
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
// System.Boolean System.Delegate::method_is_virtual
bool ___method_is_virtual_10;
public:
inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_ptr_0)); }
inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; }
inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; }
inline void set_method_ptr_0(Il2CppMethodPointer value)
{
___method_ptr_0 = value;
}
inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t, ___invoke_impl_1)); }
inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; }
inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; }
inline void set_invoke_impl_1(intptr_t value)
{
___invoke_impl_1 = value;
}
inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t, ___m_target_2)); }
inline RuntimeObject * get_m_target_2() const { return ___m_target_2; }
inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; }
inline void set_m_target_2(RuntimeObject * value)
{
___m_target_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_target_2), (void*)value);
}
inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_3)); }
inline intptr_t get_method_3() const { return ___method_3; }
inline intptr_t* get_address_of_method_3() { return &___method_3; }
inline void set_method_3(intptr_t value)
{
___method_3 = value;
}
inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t, ___delegate_trampoline_4)); }
inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; }
inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; }
inline void set_delegate_trampoline_4(intptr_t value)
{
___delegate_trampoline_4 = value;
}
inline static int32_t get_offset_of_extra_arg_5() { return static_cast<int32_t>(offsetof(Delegate_t, ___extra_arg_5)); }
inline intptr_t get_extra_arg_5() const { return ___extra_arg_5; }
inline intptr_t* get_address_of_extra_arg_5() { return &___extra_arg_5; }
inline void set_extra_arg_5(intptr_t value)
{
___extra_arg_5 = value;
}
inline static int32_t get_offset_of_method_code_6() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_code_6)); }
inline intptr_t get_method_code_6() const { return ___method_code_6; }
inline intptr_t* get_address_of_method_code_6() { return &___method_code_6; }
inline void set_method_code_6(intptr_t value)
{
___method_code_6 = value;
}
inline static int32_t get_offset_of_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_info_7)); }
inline MethodInfo_t * get_method_info_7() const { return ___method_info_7; }
inline MethodInfo_t ** get_address_of_method_info_7() { return &___method_info_7; }
inline void set_method_info_7(MethodInfo_t * value)
{
___method_info_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___method_info_7), (void*)value);
}
inline static int32_t get_offset_of_original_method_info_8() { return static_cast<int32_t>(offsetof(Delegate_t, ___original_method_info_8)); }
inline MethodInfo_t * get_original_method_info_8() const { return ___original_method_info_8; }
inline MethodInfo_t ** get_address_of_original_method_info_8() { return &___original_method_info_8; }
inline void set_original_method_info_8(MethodInfo_t * value)
{
___original_method_info_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___original_method_info_8), (void*)value);
}
inline static int32_t get_offset_of_data_9() { return static_cast<int32_t>(offsetof(Delegate_t, ___data_9)); }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * get_data_9() const { return ___data_9; }
inline DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE ** get_address_of_data_9() { return &___data_9; }
inline void set_data_9(DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * value)
{
___data_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___data_9), (void*)value);
}
inline static int32_t get_offset_of_method_is_virtual_10() { return static_cast<int32_t>(offsetof(Delegate_t, ___method_is_virtual_10)); }
inline bool get_method_is_virtual_10() const { return ___method_is_virtual_10; }
inline bool* get_address_of_method_is_virtual_10() { return &___method_is_virtual_10; }
inline void set_method_is_virtual_10(bool value)
{
___method_is_virtual_10 = value;
}
};
// Native definition for P/Invoke marshalling of System.Delegate
struct Delegate_t_marshaled_pinvoke
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// Native definition for COM marshalling of System.Delegate
struct Delegate_t_marshaled_com
{
intptr_t ___method_ptr_0;
intptr_t ___invoke_impl_1;
Il2CppIUnknown* ___m_target_2;
intptr_t ___method_3;
intptr_t ___delegate_trampoline_4;
intptr_t ___extra_arg_5;
intptr_t ___method_code_6;
MethodInfo_t * ___method_info_7;
MethodInfo_t * ___original_method_info_8;
DelegateData_t1BF9F691B56DAE5F8C28C5E084FDE94F15F27BBE * ___data_9;
int32_t ___method_is_virtual_10;
};
// System.Exception
struct Exception_t : public RuntimeObject
{
public:
// System.String System.Exception::_className
String_t* ____className_1;
// System.String System.Exception::_message
String_t* ____message_2;
// System.Collections.IDictionary System.Exception::_data
RuntimeObject* ____data_3;
// System.Exception System.Exception::_innerException
Exception_t * ____innerException_4;
// System.String System.Exception::_helpURL
String_t* ____helpURL_5;
// System.Object System.Exception::_stackTrace
RuntimeObject * ____stackTrace_6;
// System.String System.Exception::_stackTraceString
String_t* ____stackTraceString_7;
// System.String System.Exception::_remoteStackTraceString
String_t* ____remoteStackTraceString_8;
// System.Int32 System.Exception::_remoteStackIndex
int32_t ____remoteStackIndex_9;
// System.Object System.Exception::_dynamicMethods
RuntimeObject * ____dynamicMethods_10;
// System.Int32 System.Exception::_HResult
int32_t ____HResult_11;
// System.String System.Exception::_source
String_t* ____source_12;
// System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
// System.Diagnostics.StackTrace[] System.Exception::captured_traces
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
// System.IntPtr[] System.Exception::native_trace_ips
IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15;
public:
inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); }
inline String_t* get__className_1() const { return ____className_1; }
inline String_t** get_address_of__className_1() { return &____className_1; }
inline void set__className_1(String_t* value)
{
____className_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____className_1), (void*)value);
}
inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); }
inline String_t* get__message_2() const { return ____message_2; }
inline String_t** get_address_of__message_2() { return &____message_2; }
inline void set__message_2(String_t* value)
{
____message_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&____message_2), (void*)value);
}
inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); }
inline RuntimeObject* get__data_3() const { return ____data_3; }
inline RuntimeObject** get_address_of__data_3() { return &____data_3; }
inline void set__data_3(RuntimeObject* value)
{
____data_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&____data_3), (void*)value);
}
inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); }
inline Exception_t * get__innerException_4() const { return ____innerException_4; }
inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; }
inline void set__innerException_4(Exception_t * value)
{
____innerException_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____innerException_4), (void*)value);
}
inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); }
inline String_t* get__helpURL_5() const { return ____helpURL_5; }
inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; }
inline void set__helpURL_5(String_t* value)
{
____helpURL_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____helpURL_5), (void*)value);
}
inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); }
inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; }
inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; }
inline void set__stackTrace_6(RuntimeObject * value)
{
____stackTrace_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTrace_6), (void*)value);
}
inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); }
inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; }
inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; }
inline void set__stackTraceString_7(String_t* value)
{
____stackTraceString_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&____stackTraceString_7), (void*)value);
}
inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); }
inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; }
inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; }
inline void set__remoteStackTraceString_8(String_t* value)
{
____remoteStackTraceString_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&____remoteStackTraceString_8), (void*)value);
}
inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); }
inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; }
inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; }
inline void set__remoteStackIndex_9(int32_t value)
{
____remoteStackIndex_9 = value;
}
inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); }
inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; }
inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; }
inline void set__dynamicMethods_10(RuntimeObject * value)
{
____dynamicMethods_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&____dynamicMethods_10), (void*)value);
}
inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); }
inline int32_t get__HResult_11() const { return ____HResult_11; }
inline int32_t* get_address_of__HResult_11() { return &____HResult_11; }
inline void set__HResult_11(int32_t value)
{
____HResult_11 = value;
}
inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); }
inline String_t* get__source_12() const { return ____source_12; }
inline String_t** get_address_of__source_12() { return &____source_12; }
inline void set__source_12(String_t* value)
{
____source_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&____source_12), (void*)value);
}
inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; }
inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value)
{
____safeSerializationManager_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&____safeSerializationManager_13), (void*)value);
}
inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; }
inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value)
{
___captured_traces_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___captured_traces_14), (void*)value);
}
inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; }
inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value)
{
___native_trace_ips_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___native_trace_ips_15), (void*)value);
}
};
struct Exception_t_StaticFields
{
public:
// System.Object System.Exception::s_EDILock
RuntimeObject * ___s_EDILock_0;
public:
inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); }
inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; }
inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; }
inline void set_s_EDILock_0(RuntimeObject * value)
{
___s_EDILock_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_EDILock_0), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.Exception
struct Exception_t_marshaled_pinvoke
{
char* ____className_1;
char* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_pinvoke* ____innerException_4;
char* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
char* ____stackTraceString_7;
char* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
char* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// Native definition for COM marshalling of System.Exception
struct Exception_t_marshaled_com
{
Il2CppChar* ____className_1;
Il2CppChar* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_com* ____innerException_4;
Il2CppChar* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
Il2CppChar* ____stackTraceString_7;
Il2CppChar* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
Il2CppChar* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// System.RuntimeFieldHandle
struct RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF
{
public:
// System.IntPtr System.RuntimeFieldHandle::value
intptr_t ___value_0;
public:
inline static int32_t get_offset_of_value_0() { return static_cast<int32_t>(offsetof(RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF, ___value_0)); }
inline intptr_t get_value_0() const { return ___value_0; }
inline intptr_t* get_address_of_value_0() { return &___value_0; }
inline void set_value_0(intptr_t value)
{
___value_0 = value;
}
};
// UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize
struct RoomSize_tB93882F64484BCB88CAFB5B1640341AB4E9F16B4
{
public:
// System.Int32 UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RoomSize_tB93882F64484BCB88CAFB5B1640341AB4E9F16B4, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.Bounds
struct Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890
{
public:
// UnityEngine.Vector3 UnityEngine.Bounds::m_Center
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Center_0;
// UnityEngine.Vector3 UnityEngine.Bounds::m_Extents
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Extents_1;
public:
inline static int32_t get_offset_of_m_Center_0() { return static_cast<int32_t>(offsetof(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890, ___m_Center_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Center_0() const { return ___m_Center_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Center_0() { return &___m_Center_0; }
inline void set_m_Center_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Center_0 = value;
}
inline static int32_t get_offset_of_m_Extents_1() { return static_cast<int32_t>(offsetof(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890, ___m_Extents_1)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Extents_1() const { return ___m_Extents_1; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Extents_1() { return &___m_Extents_1; }
inline void set_m_Extents_1(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Extents_1 = value;
}
};
// UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode
struct MouseEmulationMode_t9C3B344772D72BE993BBB5A0849D22D9DBDAEC41
{
public:
// System.Int32 UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(MouseEmulationMode_t9C3B344772D72BE993BBB5A0849D22D9DBDAEC41, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.EventSystems.PointerEventData_InputButton
struct InputButton_tCC7470F9FD2AFE525243394F0215B47D4BF86AB0
{
public:
// System.Int32 UnityEngine.EventSystems.PointerEventData_InputButton::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InputButton_tCC7470F9FD2AFE525243394F0215B47D4BF86AB0, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.EventSystems.RaycastResult
struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91
{
public:
// UnityEngine.GameObject UnityEngine.EventSystems.RaycastResult::m_GameObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0;
// UnityEngine.EventSystems.BaseRaycaster UnityEngine.EventSystems.RaycastResult::module
BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1;
// System.Single UnityEngine.EventSystems.RaycastResult::distance
float ___distance_2;
// System.Single UnityEngine.EventSystems.RaycastResult::index
float ___index_3;
// System.Int32 UnityEngine.EventSystems.RaycastResult::depth
int32_t ___depth_4;
// System.Int32 UnityEngine.EventSystems.RaycastResult::sortingLayer
int32_t ___sortingLayer_5;
// System.Int32 UnityEngine.EventSystems.RaycastResult::sortingOrder
int32_t ___sortingOrder_6;
// UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldPosition
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7;
// UnityEngine.Vector3 UnityEngine.EventSystems.RaycastResult::worldNormal
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8;
// UnityEngine.Vector2 UnityEngine.EventSystems.RaycastResult::screenPosition
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9;
public:
inline static int32_t get_offset_of_m_GameObject_0() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___m_GameObject_0)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_GameObject_0() const { return ___m_GameObject_0; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_GameObject_0() { return &___m_GameObject_0; }
inline void set_m_GameObject_0(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_GameObject_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_GameObject_0), (void*)value);
}
inline static int32_t get_offset_of_module_1() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___module_1)); }
inline BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * get_module_1() const { return ___module_1; }
inline BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 ** get_address_of_module_1() { return &___module_1; }
inline void set_module_1(BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * value)
{
___module_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___module_1), (void*)value);
}
inline static int32_t get_offset_of_distance_2() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___distance_2)); }
inline float get_distance_2() const { return ___distance_2; }
inline float* get_address_of_distance_2() { return &___distance_2; }
inline void set_distance_2(float value)
{
___distance_2 = value;
}
inline static int32_t get_offset_of_index_3() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___index_3)); }
inline float get_index_3() const { return ___index_3; }
inline float* get_address_of_index_3() { return &___index_3; }
inline void set_index_3(float value)
{
___index_3 = value;
}
inline static int32_t get_offset_of_depth_4() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___depth_4)); }
inline int32_t get_depth_4() const { return ___depth_4; }
inline int32_t* get_address_of_depth_4() { return &___depth_4; }
inline void set_depth_4(int32_t value)
{
___depth_4 = value;
}
inline static int32_t get_offset_of_sortingLayer_5() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___sortingLayer_5)); }
inline int32_t get_sortingLayer_5() const { return ___sortingLayer_5; }
inline int32_t* get_address_of_sortingLayer_5() { return &___sortingLayer_5; }
inline void set_sortingLayer_5(int32_t value)
{
___sortingLayer_5 = value;
}
inline static int32_t get_offset_of_sortingOrder_6() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___sortingOrder_6)); }
inline int32_t get_sortingOrder_6() const { return ___sortingOrder_6; }
inline int32_t* get_address_of_sortingOrder_6() { return &___sortingOrder_6; }
inline void set_sortingOrder_6(int32_t value)
{
___sortingOrder_6 = value;
}
inline static int32_t get_offset_of_worldPosition_7() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___worldPosition_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_worldPosition_7() const { return ___worldPosition_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_worldPosition_7() { return &___worldPosition_7; }
inline void set_worldPosition_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___worldPosition_7 = value;
}
inline static int32_t get_offset_of_worldNormal_8() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___worldNormal_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_worldNormal_8() const { return ___worldNormal_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_worldNormal_8() { return &___worldNormal_8; }
inline void set_worldNormal_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___worldNormal_8 = value;
}
inline static int32_t get_offset_of_screenPosition_9() { return static_cast<int32_t>(offsetof(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91, ___screenPosition_9)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_screenPosition_9() const { return ___screenPosition_9; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_screenPosition_9() { return &___screenPosition_9; }
inline void set_screenPosition_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___screenPosition_9 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.EventSystems.RaycastResult
struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91_marshaled_pinvoke
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0;
BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1;
float ___distance_2;
float ___index_3;
int32_t ___depth_4;
int32_t ___sortingLayer_5;
int32_t ___sortingOrder_6;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9;
};
// Native definition for COM marshalling of UnityEngine.EventSystems.RaycastResult
struct RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91_marshaled_com
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_GameObject_0;
BaseRaycaster_tC7F6105A89F54A38FBFC2659901855FDBB0E3966 * ___module_1;
float ___distance_2;
float ___index_3;
int32_t ___depth_4;
int32_t ___sortingLayer_5;
int32_t ___sortingOrder_6;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldPosition_7;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___worldNormal_8;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPosition_9;
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// UnityEngine.Pose
struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29
{
public:
// UnityEngine.Vector3 UnityEngine.Pose::position
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position_0;
// UnityEngine.Quaternion UnityEngine.Pose::rotation
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation_1;
public:
inline static int32_t get_offset_of_position_0() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___position_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_position_0() const { return ___position_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_position_0() { return &___position_0; }
inline void set_position_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___position_0 = value;
}
inline static int32_t get_offset_of_rotation_1() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___rotation_1)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_rotation_1() const { return ___rotation_1; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_rotation_1() { return &___rotation_1; }
inline void set_rotation_1(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___rotation_1 = value;
}
};
struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields
{
public:
// UnityEngine.Pose UnityEngine.Pose::k_Identity
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___k_Identity_2;
public:
inline static int32_t get_offset_of_k_Identity_2() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields, ___k_Identity_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_k_Identity_2() const { return ___k_Identity_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_k_Identity_2() { return &___k_Identity_2; }
inline void set_k_Identity_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___k_Identity_2 = value;
}
};
// UnityEngine.Rendering.ShadowCastingMode
struct ShadowCastingMode_t699023357D66025632B533A17D0FB1E4548141FF
{
public:
// System.Int32 UnityEngine.Rendering.ShadowCastingMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ShadowCastingMode_t699023357D66025632B533A17D0FB1E4548141FF, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.GestureRecognizer
struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.XR.WSA.Input.GestureRecognizer::m_Recognizer
intptr_t ___m_Recognizer_0;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCanceled
Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * ___HoldCanceled_1;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCompleted
Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * ___HoldCompleted_2;
// System.Action`1<UnityEngine.XR.WSA.Input.HoldStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::HoldStarted
Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * ___HoldStarted_3;
// System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::Tapped
Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___Tapped_4;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCanceled
Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * ___ManipulationCanceled_5;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCompleted
Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * ___ManipulationCompleted_6;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationStarted
Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * ___ManipulationStarted_7;
// System.Action`1<UnityEngine.XR.WSA.Input.ManipulationUpdatedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationUpdated
Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * ___ManipulationUpdated_8;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCanceled
Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___NavigationCanceled_9;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCompleted
Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___NavigationCompleted_10;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationStarted
Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___NavigationStarted_11;
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationUpdated
Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___NavigationUpdated_12;
// System.Action`1<UnityEngine.XR.WSA.Input.RecognitionEndedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionEnded
Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * ___RecognitionEnded_13;
// System.Action`1<UnityEngine.XR.WSA.Input.RecognitionStartedEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionStarted
Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * ___RecognitionStarted_14;
// System.Action`1<UnityEngine.XR.WSA.Input.GestureErrorEventArgs> UnityEngine.XR.WSA.Input.GestureRecognizer::GestureError
Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * ___GestureError_15;
// UnityEngine.XR.WSA.Input.GestureRecognizer_HoldCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCanceledEvent
HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * ___HoldCanceledEvent_16;
// UnityEngine.XR.WSA.Input.GestureRecognizer_HoldCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldCompletedEvent
HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * ___HoldCompletedEvent_17;
// UnityEngine.XR.WSA.Input.GestureRecognizer_HoldStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::HoldStartedEvent
HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * ___HoldStartedEvent_18;
// UnityEngine.XR.WSA.Input.GestureRecognizer_TappedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::TappedEvent
TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * ___TappedEvent_19;
// UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCanceledEvent
ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * ___ManipulationCanceledEvent_20;
// UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationCompletedEvent
ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * ___ManipulationCompletedEvent_21;
// UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationStartedEvent
ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * ___ManipulationStartedEvent_22;
// UnityEngine.XR.WSA.Input.GestureRecognizer_ManipulationUpdatedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::ManipulationUpdatedEvent
ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * ___ManipulationUpdatedEvent_23;
// UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationCanceledEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCanceledEvent
NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * ___NavigationCanceledEvent_24;
// UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationCompletedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationCompletedEvent
NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * ___NavigationCompletedEvent_25;
// UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationStartedEvent
NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * ___NavigationStartedEvent_26;
// UnityEngine.XR.WSA.Input.GestureRecognizer_NavigationUpdatedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::NavigationUpdatedEvent
NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * ___NavigationUpdatedEvent_27;
// UnityEngine.XR.WSA.Input.GestureRecognizer_RecognitionEndedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionEndedEvent
RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * ___RecognitionEndedEvent_28;
// UnityEngine.XR.WSA.Input.GestureRecognizer_RecognitionStartedEventDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::RecognitionStartedEvent
RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * ___RecognitionStartedEvent_29;
// UnityEngine.XR.WSA.Input.GestureRecognizer_GestureErrorDelegate UnityEngine.XR.WSA.Input.GestureRecognizer::GestureErrorEvent
GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * ___GestureErrorEvent_30;
public:
inline static int32_t get_offset_of_m_Recognizer_0() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___m_Recognizer_0)); }
inline intptr_t get_m_Recognizer_0() const { return ___m_Recognizer_0; }
inline intptr_t* get_address_of_m_Recognizer_0() { return &___m_Recognizer_0; }
inline void set_m_Recognizer_0(intptr_t value)
{
___m_Recognizer_0 = value;
}
inline static int32_t get_offset_of_HoldCanceled_1() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCanceled_1)); }
inline Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * get_HoldCanceled_1() const { return ___HoldCanceled_1; }
inline Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B ** get_address_of_HoldCanceled_1() { return &___HoldCanceled_1; }
inline void set_HoldCanceled_1(Action_1_t5DB3D8F91CD6BEB6D429ED4A29CC61B44CDD8A4B * value)
{
___HoldCanceled_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldCanceled_1), (void*)value);
}
inline static int32_t get_offset_of_HoldCompleted_2() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCompleted_2)); }
inline Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * get_HoldCompleted_2() const { return ___HoldCompleted_2; }
inline Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 ** get_address_of_HoldCompleted_2() { return &___HoldCompleted_2; }
inline void set_HoldCompleted_2(Action_1_t37D466E712A7A553C87729F5DD58DC77C8A89FF0 * value)
{
___HoldCompleted_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldCompleted_2), (void*)value);
}
inline static int32_t get_offset_of_HoldStarted_3() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldStarted_3)); }
inline Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * get_HoldStarted_3() const { return ___HoldStarted_3; }
inline Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E ** get_address_of_HoldStarted_3() { return &___HoldStarted_3; }
inline void set_HoldStarted_3(Action_1_t9A7EBE66F02FBEEDDB83D150DBABC2F2728C7F8E * value)
{
___HoldStarted_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldStarted_3), (void*)value);
}
inline static int32_t get_offset_of_Tapped_4() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___Tapped_4)); }
inline Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * get_Tapped_4() const { return ___Tapped_4; }
inline Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 ** get_address_of_Tapped_4() { return &___Tapped_4; }
inline void set_Tapped_4(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * value)
{
___Tapped_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Tapped_4), (void*)value);
}
inline static int32_t get_offset_of_ManipulationCanceled_5() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCanceled_5)); }
inline Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * get_ManipulationCanceled_5() const { return ___ManipulationCanceled_5; }
inline Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E ** get_address_of_ManipulationCanceled_5() { return &___ManipulationCanceled_5; }
inline void set_ManipulationCanceled_5(Action_1_tB13B2372B219E1C2C06EFDBCE8BD7EE041A2EB5E * value)
{
___ManipulationCanceled_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCanceled_5), (void*)value);
}
inline static int32_t get_offset_of_ManipulationCompleted_6() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCompleted_6)); }
inline Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * get_ManipulationCompleted_6() const { return ___ManipulationCompleted_6; }
inline Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F ** get_address_of_ManipulationCompleted_6() { return &___ManipulationCompleted_6; }
inline void set_ManipulationCompleted_6(Action_1_t3D75FAEDED813354B2965399C726ABFD1A5EBC3F * value)
{
___ManipulationCompleted_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCompleted_6), (void*)value);
}
inline static int32_t get_offset_of_ManipulationStarted_7() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationStarted_7)); }
inline Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * get_ManipulationStarted_7() const { return ___ManipulationStarted_7; }
inline Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E ** get_address_of_ManipulationStarted_7() { return &___ManipulationStarted_7; }
inline void set_ManipulationStarted_7(Action_1_t6DC7BD1E28CAAD24387D527C634AB60FA116325E * value)
{
___ManipulationStarted_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationStarted_7), (void*)value);
}
inline static int32_t get_offset_of_ManipulationUpdated_8() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationUpdated_8)); }
inline Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * get_ManipulationUpdated_8() const { return ___ManipulationUpdated_8; }
inline Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC ** get_address_of_ManipulationUpdated_8() { return &___ManipulationUpdated_8; }
inline void set_ManipulationUpdated_8(Action_1_t6F72821471F95D09FC84BC9F98573CD2139C23DC * value)
{
___ManipulationUpdated_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationUpdated_8), (void*)value);
}
inline static int32_t get_offset_of_NavigationCanceled_9() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCanceled_9)); }
inline Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * get_NavigationCanceled_9() const { return ___NavigationCanceled_9; }
inline Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B ** get_address_of_NavigationCanceled_9() { return &___NavigationCanceled_9; }
inline void set_NavigationCanceled_9(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * value)
{
___NavigationCanceled_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationCanceled_9), (void*)value);
}
inline static int32_t get_offset_of_NavigationCompleted_10() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCompleted_10)); }
inline Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * get_NavigationCompleted_10() const { return ___NavigationCompleted_10; }
inline Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 ** get_address_of_NavigationCompleted_10() { return &___NavigationCompleted_10; }
inline void set_NavigationCompleted_10(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * value)
{
___NavigationCompleted_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationCompleted_10), (void*)value);
}
inline static int32_t get_offset_of_NavigationStarted_11() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationStarted_11)); }
inline Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * get_NavigationStarted_11() const { return ___NavigationStarted_11; }
inline Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E ** get_address_of_NavigationStarted_11() { return &___NavigationStarted_11; }
inline void set_NavigationStarted_11(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * value)
{
___NavigationStarted_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationStarted_11), (void*)value);
}
inline static int32_t get_offset_of_NavigationUpdated_12() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationUpdated_12)); }
inline Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * get_NavigationUpdated_12() const { return ___NavigationUpdated_12; }
inline Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C ** get_address_of_NavigationUpdated_12() { return &___NavigationUpdated_12; }
inline void set_NavigationUpdated_12(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * value)
{
___NavigationUpdated_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationUpdated_12), (void*)value);
}
inline static int32_t get_offset_of_RecognitionEnded_13() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionEnded_13)); }
inline Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * get_RecognitionEnded_13() const { return ___RecognitionEnded_13; }
inline Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 ** get_address_of_RecognitionEnded_13() { return &___RecognitionEnded_13; }
inline void set_RecognitionEnded_13(Action_1_tE903BE1931BE14124CF0EFF594B91436F631E6E7 * value)
{
___RecognitionEnded_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RecognitionEnded_13), (void*)value);
}
inline static int32_t get_offset_of_RecognitionStarted_14() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionStarted_14)); }
inline Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * get_RecognitionStarted_14() const { return ___RecognitionStarted_14; }
inline Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E ** get_address_of_RecognitionStarted_14() { return &___RecognitionStarted_14; }
inline void set_RecognitionStarted_14(Action_1_tCDC01C5032C70E5DD6217277758BBB3991DC7A8E * value)
{
___RecognitionStarted_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RecognitionStarted_14), (void*)value);
}
inline static int32_t get_offset_of_GestureError_15() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___GestureError_15)); }
inline Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * get_GestureError_15() const { return ___GestureError_15; }
inline Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B ** get_address_of_GestureError_15() { return &___GestureError_15; }
inline void set_GestureError_15(Action_1_t86FE98C3236EF6A6C38460C0B9FE2D8262E44B6B * value)
{
___GestureError_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___GestureError_15), (void*)value);
}
inline static int32_t get_offset_of_HoldCanceledEvent_16() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCanceledEvent_16)); }
inline HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * get_HoldCanceledEvent_16() const { return ___HoldCanceledEvent_16; }
inline HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 ** get_address_of_HoldCanceledEvent_16() { return &___HoldCanceledEvent_16; }
inline void set_HoldCanceledEvent_16(HoldCanceledEventDelegate_t5073A875A657B659A55D9111BF52AFA5E8FA22C2 * value)
{
___HoldCanceledEvent_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldCanceledEvent_16), (void*)value);
}
inline static int32_t get_offset_of_HoldCompletedEvent_17() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldCompletedEvent_17)); }
inline HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * get_HoldCompletedEvent_17() const { return ___HoldCompletedEvent_17; }
inline HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A ** get_address_of_HoldCompletedEvent_17() { return &___HoldCompletedEvent_17; }
inline void set_HoldCompletedEvent_17(HoldCompletedEventDelegate_tE1C05DE1BDD2AF5B15D561CE9EEB23259CAD0A7A * value)
{
___HoldCompletedEvent_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldCompletedEvent_17), (void*)value);
}
inline static int32_t get_offset_of_HoldStartedEvent_18() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___HoldStartedEvent_18)); }
inline HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * get_HoldStartedEvent_18() const { return ___HoldStartedEvent_18; }
inline HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 ** get_address_of_HoldStartedEvent_18() { return &___HoldStartedEvent_18; }
inline void set_HoldStartedEvent_18(HoldStartedEventDelegate_t79DBAFBD8DB4A33E282665E171EF7F7903DA57B2 * value)
{
___HoldStartedEvent_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___HoldStartedEvent_18), (void*)value);
}
inline static int32_t get_offset_of_TappedEvent_19() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___TappedEvent_19)); }
inline TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * get_TappedEvent_19() const { return ___TappedEvent_19; }
inline TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F ** get_address_of_TappedEvent_19() { return &___TappedEvent_19; }
inline void set_TappedEvent_19(TappedEventDelegate_tC33CDAA9CA071369B711FA5FDE947E122072D34F * value)
{
___TappedEvent_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TappedEvent_19), (void*)value);
}
inline static int32_t get_offset_of_ManipulationCanceledEvent_20() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCanceledEvent_20)); }
inline ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * get_ManipulationCanceledEvent_20() const { return ___ManipulationCanceledEvent_20; }
inline ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 ** get_address_of_ManipulationCanceledEvent_20() { return &___ManipulationCanceledEvent_20; }
inline void set_ManipulationCanceledEvent_20(ManipulationCanceledEventDelegate_t5D62D76C35A55841145479B9708F35A667B42917 * value)
{
___ManipulationCanceledEvent_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCanceledEvent_20), (void*)value);
}
inline static int32_t get_offset_of_ManipulationCompletedEvent_21() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationCompletedEvent_21)); }
inline ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * get_ManipulationCompletedEvent_21() const { return ___ManipulationCompletedEvent_21; }
inline ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 ** get_address_of_ManipulationCompletedEvent_21() { return &___ManipulationCompletedEvent_21; }
inline void set_ManipulationCompletedEvent_21(ManipulationCompletedEventDelegate_tFBC536B9D0EED5699871DB3855AA02653F35B6A4 * value)
{
___ManipulationCompletedEvent_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationCompletedEvent_21), (void*)value);
}
inline static int32_t get_offset_of_ManipulationStartedEvent_22() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationStartedEvent_22)); }
inline ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * get_ManipulationStartedEvent_22() const { return ___ManipulationStartedEvent_22; }
inline ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 ** get_address_of_ManipulationStartedEvent_22() { return &___ManipulationStartedEvent_22; }
inline void set_ManipulationStartedEvent_22(ManipulationStartedEventDelegate_tECC88952F89E480F898CF5710A0A47D1BA85C9F0 * value)
{
___ManipulationStartedEvent_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationStartedEvent_22), (void*)value);
}
inline static int32_t get_offset_of_ManipulationUpdatedEvent_23() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___ManipulationUpdatedEvent_23)); }
inline ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * get_ManipulationUpdatedEvent_23() const { return ___ManipulationUpdatedEvent_23; }
inline ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 ** get_address_of_ManipulationUpdatedEvent_23() { return &___ManipulationUpdatedEvent_23; }
inline void set_ManipulationUpdatedEvent_23(ManipulationUpdatedEventDelegate_t521F96EEF0CE5D99D54AA2AB2D075CBD66D46406 * value)
{
___ManipulationUpdatedEvent_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___ManipulationUpdatedEvent_23), (void*)value);
}
inline static int32_t get_offset_of_NavigationCanceledEvent_24() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCanceledEvent_24)); }
inline NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * get_NavigationCanceledEvent_24() const { return ___NavigationCanceledEvent_24; }
inline NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 ** get_address_of_NavigationCanceledEvent_24() { return &___NavigationCanceledEvent_24; }
inline void set_NavigationCanceledEvent_24(NavigationCanceledEventDelegate_tA82EB6DFFB53212C7FADC09362EA424CEEF2A954 * value)
{
___NavigationCanceledEvent_24 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationCanceledEvent_24), (void*)value);
}
inline static int32_t get_offset_of_NavigationCompletedEvent_25() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationCompletedEvent_25)); }
inline NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * get_NavigationCompletedEvent_25() const { return ___NavigationCompletedEvent_25; }
inline NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 ** get_address_of_NavigationCompletedEvent_25() { return &___NavigationCompletedEvent_25; }
inline void set_NavigationCompletedEvent_25(NavigationCompletedEventDelegate_tF2B1D25EF7819624117F3C6E25E70F80B238F5D3 * value)
{
___NavigationCompletedEvent_25 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationCompletedEvent_25), (void*)value);
}
inline static int32_t get_offset_of_NavigationStartedEvent_26() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationStartedEvent_26)); }
inline NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * get_NavigationStartedEvent_26() const { return ___NavigationStartedEvent_26; }
inline NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF ** get_address_of_NavigationStartedEvent_26() { return &___NavigationStartedEvent_26; }
inline void set_NavigationStartedEvent_26(NavigationStartedEventDelegate_tC56D514B35B7270BBE8D21E15C435EDBA84F1AEF * value)
{
___NavigationStartedEvent_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationStartedEvent_26), (void*)value);
}
inline static int32_t get_offset_of_NavigationUpdatedEvent_27() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___NavigationUpdatedEvent_27)); }
inline NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * get_NavigationUpdatedEvent_27() const { return ___NavigationUpdatedEvent_27; }
inline NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A ** get_address_of_NavigationUpdatedEvent_27() { return &___NavigationUpdatedEvent_27; }
inline void set_NavigationUpdatedEvent_27(NavigationUpdatedEventDelegate_t5802B4B5608A4D915714D70A5A51C82C6E34C69A * value)
{
___NavigationUpdatedEvent_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___NavigationUpdatedEvent_27), (void*)value);
}
inline static int32_t get_offset_of_RecognitionEndedEvent_28() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionEndedEvent_28)); }
inline RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * get_RecognitionEndedEvent_28() const { return ___RecognitionEndedEvent_28; }
inline RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B ** get_address_of_RecognitionEndedEvent_28() { return &___RecognitionEndedEvent_28; }
inline void set_RecognitionEndedEvent_28(RecognitionEndedEventDelegate_t00AB7FD9F0C0070CA19697B832E58151348F700B * value)
{
___RecognitionEndedEvent_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RecognitionEndedEvent_28), (void*)value);
}
inline static int32_t get_offset_of_RecognitionStartedEvent_29() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___RecognitionStartedEvent_29)); }
inline RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * get_RecognitionStartedEvent_29() const { return ___RecognitionStartedEvent_29; }
inline RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 ** get_address_of_RecognitionStartedEvent_29() { return &___RecognitionStartedEvent_29; }
inline void set_RecognitionStartedEvent_29(RecognitionStartedEventDelegate_t8C076BC7E24C0326F46F8EBB3B3CB7495027B214 * value)
{
___RecognitionStartedEvent_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___RecognitionStartedEvent_29), (void*)value);
}
inline static int32_t get_offset_of_GestureErrorEvent_30() { return static_cast<int32_t>(offsetof(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE, ___GestureErrorEvent_30)); }
inline GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * get_GestureErrorEvent_30() const { return ___GestureErrorEvent_30; }
inline GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 ** get_address_of_GestureErrorEvent_30() { return &___GestureErrorEvent_30; }
inline void set_GestureErrorEvent_30(GestureErrorDelegate_tFA3E7E6A9E25ADFB4D2FF30E7CD521937F795084 * value)
{
___GestureErrorEvent_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___GestureErrorEvent_30), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.Input.GestureRecognizer
struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_marshaled_pinvoke
{
intptr_t ___m_Recognizer_0;
Il2CppMethodPointer ___HoldCanceled_1;
Il2CppMethodPointer ___HoldCompleted_2;
Il2CppMethodPointer ___HoldStarted_3;
Il2CppMethodPointer ___Tapped_4;
Il2CppMethodPointer ___ManipulationCanceled_5;
Il2CppMethodPointer ___ManipulationCompleted_6;
Il2CppMethodPointer ___ManipulationStarted_7;
Il2CppMethodPointer ___ManipulationUpdated_8;
Il2CppMethodPointer ___NavigationCanceled_9;
Il2CppMethodPointer ___NavigationCompleted_10;
Il2CppMethodPointer ___NavigationStarted_11;
Il2CppMethodPointer ___NavigationUpdated_12;
Il2CppMethodPointer ___RecognitionEnded_13;
Il2CppMethodPointer ___RecognitionStarted_14;
Il2CppMethodPointer ___GestureError_15;
Il2CppMethodPointer ___HoldCanceledEvent_16;
Il2CppMethodPointer ___HoldCompletedEvent_17;
Il2CppMethodPointer ___HoldStartedEvent_18;
Il2CppMethodPointer ___TappedEvent_19;
Il2CppMethodPointer ___ManipulationCanceledEvent_20;
Il2CppMethodPointer ___ManipulationCompletedEvent_21;
Il2CppMethodPointer ___ManipulationStartedEvent_22;
Il2CppMethodPointer ___ManipulationUpdatedEvent_23;
Il2CppMethodPointer ___NavigationCanceledEvent_24;
Il2CppMethodPointer ___NavigationCompletedEvent_25;
Il2CppMethodPointer ___NavigationStartedEvent_26;
Il2CppMethodPointer ___NavigationUpdatedEvent_27;
Il2CppMethodPointer ___RecognitionEndedEvent_28;
Il2CppMethodPointer ___RecognitionStartedEvent_29;
Il2CppMethodPointer ___GestureErrorEvent_30;
};
// Native definition for COM marshalling of UnityEngine.XR.WSA.Input.GestureRecognizer
struct GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_marshaled_com
{
intptr_t ___m_Recognizer_0;
Il2CppMethodPointer ___HoldCanceled_1;
Il2CppMethodPointer ___HoldCompleted_2;
Il2CppMethodPointer ___HoldStarted_3;
Il2CppMethodPointer ___Tapped_4;
Il2CppMethodPointer ___ManipulationCanceled_5;
Il2CppMethodPointer ___ManipulationCompleted_6;
Il2CppMethodPointer ___ManipulationStarted_7;
Il2CppMethodPointer ___ManipulationUpdated_8;
Il2CppMethodPointer ___NavigationCanceled_9;
Il2CppMethodPointer ___NavigationCompleted_10;
Il2CppMethodPointer ___NavigationStarted_11;
Il2CppMethodPointer ___NavigationUpdated_12;
Il2CppMethodPointer ___RecognitionEnded_13;
Il2CppMethodPointer ___RecognitionStarted_14;
Il2CppMethodPointer ___GestureError_15;
Il2CppMethodPointer ___HoldCanceledEvent_16;
Il2CppMethodPointer ___HoldCompletedEvent_17;
Il2CppMethodPointer ___HoldStartedEvent_18;
Il2CppMethodPointer ___TappedEvent_19;
Il2CppMethodPointer ___ManipulationCanceledEvent_20;
Il2CppMethodPointer ___ManipulationCompletedEvent_21;
Il2CppMethodPointer ___ManipulationStartedEvent_22;
Il2CppMethodPointer ___ManipulationUpdatedEvent_23;
Il2CppMethodPointer ___NavigationCanceledEvent_24;
Il2CppMethodPointer ___NavigationCompletedEvent_25;
Il2CppMethodPointer ___NavigationStartedEvent_26;
Il2CppMethodPointer ___NavigationUpdatedEvent_27;
Il2CppMethodPointer ___RecognitionEndedEvent_28;
Il2CppMethodPointer ___RecognitionStartedEvent_29;
Il2CppMethodPointer ___GestureErrorEvent_30;
};
// UnityEngine.XR.WSA.Input.GestureSettings
struct GestureSettings_t75803D4EC100BFFD3E80E60E6228FE13BC816F4A
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.GestureSettings::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(GestureSettings_t75803D4EC100BFFD3E80E60E6228FE13BC816F4A, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourceFlags
struct InteractionSourceFlags_tFEED23CE62EF1B04EEBB6C7DD1CA6921D73E9BBE
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceFlags_tFEED23CE62EF1B04EEBB6C7DD1CA6921D73E9BBE, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness
struct InteractionSourceHandedness_t10FDFBFAABBC3E04468D3AE77CE3614E7DD9308E
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceHandedness::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceHandedness_t10FDFBFAABBC3E04468D3AE77CE3614E7DD9308E, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourceKind
struct InteractionSourceKind_t5405F2951F4D1FC7D041FBAC720950BDA3CD3819
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourceKind::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourceKind_t5405F2951F4D1FC7D041FBAC720950BDA3CD3819, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags
struct InteractionSourcePoseFlags_t46E1164F226BCDCDEAD84C338483E7A401794BA8
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourcePoseFlags_t46E1164F226BCDCDEAD84C338483E7A401794BA8, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy
struct InteractionSourcePositionAccuracy_t53AC6BBABBE0182903C6CA4529BD2FA3479276AD
{
public:
// System.Int32 UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(InteractionSourcePositionAccuracy_t53AC6BBABBE0182903C6CA4529BD2FA3479276AD, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingBase_LODType
struct LODType_t6235D9BF8D6E80394CA294F59A09EB49845140A2
{
public:
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_LODType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LODType_t6235D9BF8D6E80394CA294F59A09EB49845140A2, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingBase_VolumeType
struct VolumeType_t0D39A83EC4E176177D28FFCAB4C40E9C72A98F00
{
public:
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_VolumeType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(VolumeType_t0D39A83EC4E176177D28FFCAB4C40E9C72A98F00, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState
struct RenderState_tA3E5217912C63B212E5FC61718AC41D1560C437B
{
public:
// System.Int32 UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(RenderState_tA3E5217912C63B212E5FC61718AC41D1560C437B, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.SurfaceChange
struct SurfaceChange_t2E92CB8BA67A369A733BBEBD7087706B8E8FA747
{
public:
// System.Int32 UnityEngine.XR.WSA.SurfaceChange::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(SurfaceChange_t2E92CB8BA67A369A733BBEBD7087706B8E8FA747, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
// UnityEngine.XR.WSA.SurfaceData
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66
{
public:
// UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SurfaceData::id
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0;
// UnityEngine.MeshFilter UnityEngine.XR.WSA.SurfaceData::outputMesh
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1;
// UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SurfaceData::outputAnchor
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2;
// UnityEngine.MeshCollider UnityEngine.XR.WSA.SurfaceData::outputCollider
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3;
// System.Single UnityEngine.XR.WSA.SurfaceData::trianglesPerCubicMeter
float ___trianglesPerCubicMeter_4;
// System.Boolean UnityEngine.XR.WSA.SurfaceData::bakeCollider
bool ___bakeCollider_5;
public:
inline static int32_t get_offset_of_id_0() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___id_0)); }
inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF get_id_0() const { return ___id_0; }
inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * get_address_of_id_0() { return &___id_0; }
inline void set_id_0(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF value)
{
___id_0 = value;
}
inline static int32_t get_offset_of_outputMesh_1() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputMesh_1)); }
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * get_outputMesh_1() const { return ___outputMesh_1; }
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 ** get_address_of_outputMesh_1() { return &___outputMesh_1; }
inline void set_outputMesh_1(MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * value)
{
___outputMesh_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___outputMesh_1), (void*)value);
}
inline static int32_t get_offset_of_outputAnchor_2() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputAnchor_2)); }
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * get_outputAnchor_2() const { return ___outputAnchor_2; }
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE ** get_address_of_outputAnchor_2() { return &___outputAnchor_2; }
inline void set_outputAnchor_2(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * value)
{
___outputAnchor_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___outputAnchor_2), (void*)value);
}
inline static int32_t get_offset_of_outputCollider_3() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___outputCollider_3)); }
inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * get_outputCollider_3() const { return ___outputCollider_3; }
inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE ** get_address_of_outputCollider_3() { return &___outputCollider_3; }
inline void set_outputCollider_3(MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * value)
{
___outputCollider_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___outputCollider_3), (void*)value);
}
inline static int32_t get_offset_of_trianglesPerCubicMeter_4() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___trianglesPerCubicMeter_4)); }
inline float get_trianglesPerCubicMeter_4() const { return ___trianglesPerCubicMeter_4; }
inline float* get_address_of_trianglesPerCubicMeter_4() { return &___trianglesPerCubicMeter_4; }
inline void set_trianglesPerCubicMeter_4(float value)
{
___trianglesPerCubicMeter_4 = value;
}
inline static int32_t get_offset_of_bakeCollider_5() { return static_cast<int32_t>(offsetof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66, ___bakeCollider_5)); }
inline bool get_bakeCollider_5() const { return ___bakeCollider_5; }
inline bool* get_address_of_bakeCollider_5() { return &___bakeCollider_5; }
inline void set_bakeCollider_5(bool value)
{
___bakeCollider_5 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SurfaceData
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke
{
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0;
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1;
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2;
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3;
float ___trianglesPerCubicMeter_4;
int32_t ___bakeCollider_5;
};
// Native definition for COM marshalling of UnityEngine.XR.WSA.SurfaceData
struct SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com
{
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___id_0;
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___outputMesh_1;
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___outputAnchor_2;
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___outputCollider_3;
float ___trianglesPerCubicMeter_4;
int32_t ___bakeCollider_5;
};
// System.MulticastDelegate
struct MulticastDelegate_t : public Delegate_t
{
public:
// System.Delegate[] System.MulticastDelegate::delegates
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* ___delegates_11;
public:
inline static int32_t get_offset_of_delegates_11() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___delegates_11)); }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* get_delegates_11() const { return ___delegates_11; }
inline DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86** get_address_of_delegates_11() { return &___delegates_11; }
inline void set_delegates_11(DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* value)
{
___delegates_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___delegates_11), (void*)value);
}
};
// Native definition for P/Invoke marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
{
Delegate_t_marshaled_pinvoke** ___delegates_11;
};
// Native definition for COM marshalling of System.MulticastDelegate
struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
{
Delegate_t_marshaled_com** ___delegates_11;
};
// System.SystemException
struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t
{
public:
public:
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.EventSystems.PointerEventData
struct PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 : public BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5
{
public:
// UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<pointerEnter>k__BackingField
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CpointerEnterU3Ek__BackingField_2;
// UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::m_PointerPress
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_PointerPress_3;
// UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<lastPress>k__BackingField
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3ClastPressU3Ek__BackingField_4;
// UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<rawPointerPress>k__BackingField
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CrawPointerPressU3Ek__BackingField_5;
// UnityEngine.GameObject UnityEngine.EventSystems.PointerEventData::<pointerDrag>k__BackingField
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CpointerDragU3Ek__BackingField_6;
// UnityEngine.EventSystems.RaycastResult UnityEngine.EventSystems.PointerEventData::<pointerCurrentRaycast>k__BackingField
RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 ___U3CpointerCurrentRaycastU3Ek__BackingField_7;
// UnityEngine.EventSystems.RaycastResult UnityEngine.EventSystems.PointerEventData::<pointerPressRaycast>k__BackingField
RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 ___U3CpointerPressRaycastU3Ek__BackingField_8;
// System.Collections.Generic.List`1<UnityEngine.GameObject> UnityEngine.EventSystems.PointerEventData::hovered
List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * ___hovered_9;
// System.Boolean UnityEngine.EventSystems.PointerEventData::<eligibleForClick>k__BackingField
bool ___U3CeligibleForClickU3Ek__BackingField_10;
// System.Int32 UnityEngine.EventSystems.PointerEventData::<pointerId>k__BackingField
int32_t ___U3CpointerIdU3Ek__BackingField_11;
// UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<position>k__BackingField
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CpositionU3Ek__BackingField_12;
// UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<delta>k__BackingField
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CdeltaU3Ek__BackingField_13;
// UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<pressPosition>k__BackingField
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CpressPositionU3Ek__BackingField_14;
// UnityEngine.Vector3 UnityEngine.EventSystems.PointerEventData::<worldPosition>k__BackingField
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3CworldPositionU3Ek__BackingField_15;
// UnityEngine.Vector3 UnityEngine.EventSystems.PointerEventData::<worldNormal>k__BackingField
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3CworldNormalU3Ek__BackingField_16;
// System.Single UnityEngine.EventSystems.PointerEventData::<clickTime>k__BackingField
float ___U3CclickTimeU3Ek__BackingField_17;
// System.Int32 UnityEngine.EventSystems.PointerEventData::<clickCount>k__BackingField
int32_t ___U3CclickCountU3Ek__BackingField_18;
// UnityEngine.Vector2 UnityEngine.EventSystems.PointerEventData::<scrollDelta>k__BackingField
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___U3CscrollDeltaU3Ek__BackingField_19;
// System.Boolean UnityEngine.EventSystems.PointerEventData::<useDragThreshold>k__BackingField
bool ___U3CuseDragThresholdU3Ek__BackingField_20;
// System.Boolean UnityEngine.EventSystems.PointerEventData::<dragging>k__BackingField
bool ___U3CdraggingU3Ek__BackingField_21;
// UnityEngine.EventSystems.PointerEventData_InputButton UnityEngine.EventSystems.PointerEventData::<button>k__BackingField
int32_t ___U3CbuttonU3Ek__BackingField_22;
public:
inline static int32_t get_offset_of_U3CpointerEnterU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerEnterU3Ek__BackingField_2)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CpointerEnterU3Ek__BackingField_2() const { return ___U3CpointerEnterU3Ek__BackingField_2; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CpointerEnterU3Ek__BackingField_2() { return &___U3CpointerEnterU3Ek__BackingField_2; }
inline void set_U3CpointerEnterU3Ek__BackingField_2(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___U3CpointerEnterU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CpointerEnterU3Ek__BackingField_2), (void*)value);
}
inline static int32_t get_offset_of_m_PointerPress_3() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___m_PointerPress_3)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_PointerPress_3() const { return ___m_PointerPress_3; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_PointerPress_3() { return &___m_PointerPress_3; }
inline void set_m_PointerPress_3(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_PointerPress_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_PointerPress_3), (void*)value);
}
inline static int32_t get_offset_of_U3ClastPressU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3ClastPressU3Ek__BackingField_4)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3ClastPressU3Ek__BackingField_4() const { return ___U3ClastPressU3Ek__BackingField_4; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3ClastPressU3Ek__BackingField_4() { return &___U3ClastPressU3Ek__BackingField_4; }
inline void set_U3ClastPressU3Ek__BackingField_4(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___U3ClastPressU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3ClastPressU3Ek__BackingField_4), (void*)value);
}
inline static int32_t get_offset_of_U3CrawPointerPressU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CrawPointerPressU3Ek__BackingField_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CrawPointerPressU3Ek__BackingField_5() const { return ___U3CrawPointerPressU3Ek__BackingField_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CrawPointerPressU3Ek__BackingField_5() { return &___U3CrawPointerPressU3Ek__BackingField_5; }
inline void set_U3CrawPointerPressU3Ek__BackingField_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___U3CrawPointerPressU3Ek__BackingField_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CrawPointerPressU3Ek__BackingField_5), (void*)value);
}
inline static int32_t get_offset_of_U3CpointerDragU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerDragU3Ek__BackingField_6)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CpointerDragU3Ek__BackingField_6() const { return ___U3CpointerDragU3Ek__BackingField_6; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CpointerDragU3Ek__BackingField_6() { return &___U3CpointerDragU3Ek__BackingField_6; }
inline void set_U3CpointerDragU3Ek__BackingField_6(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___U3CpointerDragU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CpointerDragU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_U3CpointerCurrentRaycastU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerCurrentRaycastU3Ek__BackingField_7)); }
inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 get_U3CpointerCurrentRaycastU3Ek__BackingField_7() const { return ___U3CpointerCurrentRaycastU3Ek__BackingField_7; }
inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 * get_address_of_U3CpointerCurrentRaycastU3Ek__BackingField_7() { return &___U3CpointerCurrentRaycastU3Ek__BackingField_7; }
inline void set_U3CpointerCurrentRaycastU3Ek__BackingField_7(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 value)
{
___U3CpointerCurrentRaycastU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerCurrentRaycastU3Ek__BackingField_7))->___m_GameObject_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerCurrentRaycastU3Ek__BackingField_7))->___module_1), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_U3CpointerPressRaycastU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerPressRaycastU3Ek__BackingField_8)); }
inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 get_U3CpointerPressRaycastU3Ek__BackingField_8() const { return ___U3CpointerPressRaycastU3Ek__BackingField_8; }
inline RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 * get_address_of_U3CpointerPressRaycastU3Ek__BackingField_8() { return &___U3CpointerPressRaycastU3Ek__BackingField_8; }
inline void set_U3CpointerPressRaycastU3Ek__BackingField_8(RaycastResult_t991BCED43A91EDD8580F39631DA07B1F88C58B91 value)
{
___U3CpointerPressRaycastU3Ek__BackingField_8 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerPressRaycastU3Ek__BackingField_8))->___m_GameObject_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CpointerPressRaycastU3Ek__BackingField_8))->___module_1), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_hovered_9() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___hovered_9)); }
inline List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * get_hovered_9() const { return ___hovered_9; }
inline List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B ** get_address_of_hovered_9() { return &___hovered_9; }
inline void set_hovered_9(List_1_t0087C02D52C7E5CFF8C0C55FC0453A28FD5F055B * value)
{
___hovered_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___hovered_9), (void*)value);
}
inline static int32_t get_offset_of_U3CeligibleForClickU3Ek__BackingField_10() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CeligibleForClickU3Ek__BackingField_10)); }
inline bool get_U3CeligibleForClickU3Ek__BackingField_10() const { return ___U3CeligibleForClickU3Ek__BackingField_10; }
inline bool* get_address_of_U3CeligibleForClickU3Ek__BackingField_10() { return &___U3CeligibleForClickU3Ek__BackingField_10; }
inline void set_U3CeligibleForClickU3Ek__BackingField_10(bool value)
{
___U3CeligibleForClickU3Ek__BackingField_10 = value;
}
inline static int32_t get_offset_of_U3CpointerIdU3Ek__BackingField_11() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpointerIdU3Ek__BackingField_11)); }
inline int32_t get_U3CpointerIdU3Ek__BackingField_11() const { return ___U3CpointerIdU3Ek__BackingField_11; }
inline int32_t* get_address_of_U3CpointerIdU3Ek__BackingField_11() { return &___U3CpointerIdU3Ek__BackingField_11; }
inline void set_U3CpointerIdU3Ek__BackingField_11(int32_t value)
{
___U3CpointerIdU3Ek__BackingField_11 = value;
}
inline static int32_t get_offset_of_U3CpositionU3Ek__BackingField_12() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpositionU3Ek__BackingField_12)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CpositionU3Ek__BackingField_12() const { return ___U3CpositionU3Ek__BackingField_12; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CpositionU3Ek__BackingField_12() { return &___U3CpositionU3Ek__BackingField_12; }
inline void set_U3CpositionU3Ek__BackingField_12(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___U3CpositionU3Ek__BackingField_12 = value;
}
inline static int32_t get_offset_of_U3CdeltaU3Ek__BackingField_13() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CdeltaU3Ek__BackingField_13)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CdeltaU3Ek__BackingField_13() const { return ___U3CdeltaU3Ek__BackingField_13; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CdeltaU3Ek__BackingField_13() { return &___U3CdeltaU3Ek__BackingField_13; }
inline void set_U3CdeltaU3Ek__BackingField_13(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___U3CdeltaU3Ek__BackingField_13 = value;
}
inline static int32_t get_offset_of_U3CpressPositionU3Ek__BackingField_14() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CpressPositionU3Ek__BackingField_14)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CpressPositionU3Ek__BackingField_14() const { return ___U3CpressPositionU3Ek__BackingField_14; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CpressPositionU3Ek__BackingField_14() { return &___U3CpressPositionU3Ek__BackingField_14; }
inline void set_U3CpressPositionU3Ek__BackingField_14(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___U3CpressPositionU3Ek__BackingField_14 = value;
}
inline static int32_t get_offset_of_U3CworldPositionU3Ek__BackingField_15() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CworldPositionU3Ek__BackingField_15)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3CworldPositionU3Ek__BackingField_15() const { return ___U3CworldPositionU3Ek__BackingField_15; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3CworldPositionU3Ek__BackingField_15() { return &___U3CworldPositionU3Ek__BackingField_15; }
inline void set_U3CworldPositionU3Ek__BackingField_15(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___U3CworldPositionU3Ek__BackingField_15 = value;
}
inline static int32_t get_offset_of_U3CworldNormalU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CworldNormalU3Ek__BackingField_16)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3CworldNormalU3Ek__BackingField_16() const { return ___U3CworldNormalU3Ek__BackingField_16; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3CworldNormalU3Ek__BackingField_16() { return &___U3CworldNormalU3Ek__BackingField_16; }
inline void set_U3CworldNormalU3Ek__BackingField_16(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___U3CworldNormalU3Ek__BackingField_16 = value;
}
inline static int32_t get_offset_of_U3CclickTimeU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CclickTimeU3Ek__BackingField_17)); }
inline float get_U3CclickTimeU3Ek__BackingField_17() const { return ___U3CclickTimeU3Ek__BackingField_17; }
inline float* get_address_of_U3CclickTimeU3Ek__BackingField_17() { return &___U3CclickTimeU3Ek__BackingField_17; }
inline void set_U3CclickTimeU3Ek__BackingField_17(float value)
{
___U3CclickTimeU3Ek__BackingField_17 = value;
}
inline static int32_t get_offset_of_U3CclickCountU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CclickCountU3Ek__BackingField_18)); }
inline int32_t get_U3CclickCountU3Ek__BackingField_18() const { return ___U3CclickCountU3Ek__BackingField_18; }
inline int32_t* get_address_of_U3CclickCountU3Ek__BackingField_18() { return &___U3CclickCountU3Ek__BackingField_18; }
inline void set_U3CclickCountU3Ek__BackingField_18(int32_t value)
{
___U3CclickCountU3Ek__BackingField_18 = value;
}
inline static int32_t get_offset_of_U3CscrollDeltaU3Ek__BackingField_19() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CscrollDeltaU3Ek__BackingField_19)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_U3CscrollDeltaU3Ek__BackingField_19() const { return ___U3CscrollDeltaU3Ek__BackingField_19; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_U3CscrollDeltaU3Ek__BackingField_19() { return &___U3CscrollDeltaU3Ek__BackingField_19; }
inline void set_U3CscrollDeltaU3Ek__BackingField_19(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___U3CscrollDeltaU3Ek__BackingField_19 = value;
}
inline static int32_t get_offset_of_U3CuseDragThresholdU3Ek__BackingField_20() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CuseDragThresholdU3Ek__BackingField_20)); }
inline bool get_U3CuseDragThresholdU3Ek__BackingField_20() const { return ___U3CuseDragThresholdU3Ek__BackingField_20; }
inline bool* get_address_of_U3CuseDragThresholdU3Ek__BackingField_20() { return &___U3CuseDragThresholdU3Ek__BackingField_20; }
inline void set_U3CuseDragThresholdU3Ek__BackingField_20(bool value)
{
___U3CuseDragThresholdU3Ek__BackingField_20 = value;
}
inline static int32_t get_offset_of_U3CdraggingU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CdraggingU3Ek__BackingField_21)); }
inline bool get_U3CdraggingU3Ek__BackingField_21() const { return ___U3CdraggingU3Ek__BackingField_21; }
inline bool* get_address_of_U3CdraggingU3Ek__BackingField_21() { return &___U3CdraggingU3Ek__BackingField_21; }
inline void set_U3CdraggingU3Ek__BackingField_21(bool value)
{
___U3CdraggingU3Ek__BackingField_21 = value;
}
inline static int32_t get_offset_of_U3CbuttonU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63, ___U3CbuttonU3Ek__BackingField_22)); }
inline int32_t get_U3CbuttonU3Ek__BackingField_22() const { return ___U3CbuttonU3Ek__BackingField_22; }
inline int32_t* get_address_of_U3CbuttonU3Ek__BackingField_22() { return &___U3CbuttonU3Ek__BackingField_22; }
inline void set_U3CbuttonU3Ek__BackingField_22(int32_t value)
{
___U3CbuttonU3Ek__BackingField_22 = value;
}
};
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.PhysicMaterial
struct PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.XR.WSA.Input.InteractionSource
struct InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6
{
public:
// System.UInt32 UnityEngine.XR.WSA.Input.InteractionSource::m_Id
uint32_t ___m_Id_0;
// UnityEngine.XR.WSA.Input.InteractionSourceKind UnityEngine.XR.WSA.Input.InteractionSource::m_SourceKind
int32_t ___m_SourceKind_1;
// UnityEngine.XR.WSA.Input.InteractionSourceHandedness UnityEngine.XR.WSA.Input.InteractionSource::m_Handedness
int32_t ___m_Handedness_2;
// UnityEngine.XR.WSA.Input.InteractionSourceFlags UnityEngine.XR.WSA.Input.InteractionSource::m_Flags
int32_t ___m_Flags_3;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_VendorId
uint16_t ___m_VendorId_4;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductId
uint16_t ___m_ProductId_5;
// System.UInt16 UnityEngine.XR.WSA.Input.InteractionSource::m_ProductVersion
uint16_t ___m_ProductVersion_6;
public:
inline static int32_t get_offset_of_m_Id_0() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Id_0)); }
inline uint32_t get_m_Id_0() const { return ___m_Id_0; }
inline uint32_t* get_address_of_m_Id_0() { return &___m_Id_0; }
inline void set_m_Id_0(uint32_t value)
{
___m_Id_0 = value;
}
inline static int32_t get_offset_of_m_SourceKind_1() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_SourceKind_1)); }
inline int32_t get_m_SourceKind_1() const { return ___m_SourceKind_1; }
inline int32_t* get_address_of_m_SourceKind_1() { return &___m_SourceKind_1; }
inline void set_m_SourceKind_1(int32_t value)
{
___m_SourceKind_1 = value;
}
inline static int32_t get_offset_of_m_Handedness_2() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Handedness_2)); }
inline int32_t get_m_Handedness_2() const { return ___m_Handedness_2; }
inline int32_t* get_address_of_m_Handedness_2() { return &___m_Handedness_2; }
inline void set_m_Handedness_2(int32_t value)
{
___m_Handedness_2 = value;
}
inline static int32_t get_offset_of_m_Flags_3() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_Flags_3)); }
inline int32_t get_m_Flags_3() const { return ___m_Flags_3; }
inline int32_t* get_address_of_m_Flags_3() { return &___m_Flags_3; }
inline void set_m_Flags_3(int32_t value)
{
___m_Flags_3 = value;
}
inline static int32_t get_offset_of_m_VendorId_4() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_VendorId_4)); }
inline uint16_t get_m_VendorId_4() const { return ___m_VendorId_4; }
inline uint16_t* get_address_of_m_VendorId_4() { return &___m_VendorId_4; }
inline void set_m_VendorId_4(uint16_t value)
{
___m_VendorId_4 = value;
}
inline static int32_t get_offset_of_m_ProductId_5() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_ProductId_5)); }
inline uint16_t get_m_ProductId_5() const { return ___m_ProductId_5; }
inline uint16_t* get_address_of_m_ProductId_5() { return &___m_ProductId_5; }
inline void set_m_ProductId_5(uint16_t value)
{
___m_ProductId_5 = value;
}
inline static int32_t get_offset_of_m_ProductVersion_6() { return static_cast<int32_t>(offsetof(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6, ___m_ProductVersion_6)); }
inline uint16_t get_m_ProductVersion_6() const { return ___m_ProductVersion_6; }
inline uint16_t* get_address_of_m_ProductVersion_6() { return &___m_ProductVersion_6; }
inline void set_m_ProductVersion_6(uint16_t value)
{
___m_ProductVersion_6 = value;
}
};
// UnityEngine.XR.WSA.Input.InteractionSourcePose
struct InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73
{
public:
// UnityEngine.Quaternion UnityEngine.XR.WSA.Input.InteractionSourcePose::m_GripRotation
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___m_GripRotation_0;
// UnityEngine.Quaternion UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PointerRotation
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___m_PointerRotation_1;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_GripPosition
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_GripPosition_2;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PointerPosition
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_PointerPosition_3;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_Velocity
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_Velocity_4;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.InteractionSourcePose::m_AngularVelocity
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_AngularVelocity_5;
// UnityEngine.XR.WSA.Input.InteractionSourcePositionAccuracy UnityEngine.XR.WSA.Input.InteractionSourcePose::m_PositionAccuracy
int32_t ___m_PositionAccuracy_6;
// UnityEngine.XR.WSA.Input.InteractionSourcePoseFlags UnityEngine.XR.WSA.Input.InteractionSourcePose::m_Flags
int32_t ___m_Flags_7;
public:
inline static int32_t get_offset_of_m_GripRotation_0() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_GripRotation_0)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_m_GripRotation_0() const { return ___m_GripRotation_0; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_m_GripRotation_0() { return &___m_GripRotation_0; }
inline void set_m_GripRotation_0(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___m_GripRotation_0 = value;
}
inline static int32_t get_offset_of_m_PointerRotation_1() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PointerRotation_1)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_m_PointerRotation_1() const { return ___m_PointerRotation_1; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_m_PointerRotation_1() { return &___m_PointerRotation_1; }
inline void set_m_PointerRotation_1(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___m_PointerRotation_1 = value;
}
inline static int32_t get_offset_of_m_GripPosition_2() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_GripPosition_2)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_GripPosition_2() const { return ___m_GripPosition_2; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_GripPosition_2() { return &___m_GripPosition_2; }
inline void set_m_GripPosition_2(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_GripPosition_2 = value;
}
inline static int32_t get_offset_of_m_PointerPosition_3() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PointerPosition_3)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_PointerPosition_3() const { return ___m_PointerPosition_3; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_PointerPosition_3() { return &___m_PointerPosition_3; }
inline void set_m_PointerPosition_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_PointerPosition_3 = value;
}
inline static int32_t get_offset_of_m_Velocity_4() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_Velocity_4)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_Velocity_4() const { return ___m_Velocity_4; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_Velocity_4() { return &___m_Velocity_4; }
inline void set_m_Velocity_4(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_Velocity_4 = value;
}
inline static int32_t get_offset_of_m_AngularVelocity_5() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_AngularVelocity_5)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_AngularVelocity_5() const { return ___m_AngularVelocity_5; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_AngularVelocity_5() { return &___m_AngularVelocity_5; }
inline void set_m_AngularVelocity_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_AngularVelocity_5 = value;
}
inline static int32_t get_offset_of_m_PositionAccuracy_6() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_PositionAccuracy_6)); }
inline int32_t get_m_PositionAccuracy_6() const { return ___m_PositionAccuracy_6; }
inline int32_t* get_address_of_m_PositionAccuracy_6() { return &___m_PositionAccuracy_6; }
inline void set_m_PositionAccuracy_6(int32_t value)
{
___m_PositionAccuracy_6 = value;
}
inline static int32_t get_offset_of_m_Flags_7() { return static_cast<int32_t>(offsetof(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73, ___m_Flags_7)); }
inline int32_t get_m_Flags_7() const { return ___m_Flags_7; }
inline int32_t* get_address_of_m_Flags_7() { return &___m_Flags_7; }
inline void set_m_Flags_7(int32_t value)
{
___m_Flags_7 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingBase_Surface
struct Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D : public RuntimeObject
{
public:
// UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase_Surface::<surfaceId>k__BackingField
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___U3CsurfaceIdU3Ek__BackingField_0;
// System.DateTime UnityEngine.XR.WSA.SpatialMappingBase_Surface::<updateTime>k__BackingField
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___U3CupdateTimeU3Ek__BackingField_1;
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase_Surface::<gameObject>k__BackingField
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___U3CgameObjectU3Ek__BackingField_2;
// UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase_Surface::<surfaceData>k__BackingField
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___U3CsurfaceDataU3Ek__BackingField_3;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_Surface::<remainingUpdatesToLive>k__BackingField
int32_t ___U3CremainingUpdatesToLiveU3Ek__BackingField_4;
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase_Surface::<awaitingBake>k__BackingField
bool ___U3CawaitingBakeU3Ek__BackingField_5;
// UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshFilter>k__BackingField
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___U3CmeshFilterU3Ek__BackingField_6;
// UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshRenderer>k__BackingField
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___U3CmeshRendererU3Ek__BackingField_7;
// UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase_Surface::<meshCollider>k__BackingField
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___U3CmeshColliderU3Ek__BackingField_8;
// UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase_Surface::<worldAnchor>k__BackingField
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___U3CworldAnchorU3Ek__BackingField_9;
public:
inline static int32_t get_offset_of_U3CsurfaceIdU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CsurfaceIdU3Ek__BackingField_0)); }
inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF get_U3CsurfaceIdU3Ek__BackingField_0() const { return ___U3CsurfaceIdU3Ek__BackingField_0; }
inline SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * get_address_of_U3CsurfaceIdU3Ek__BackingField_0() { return &___U3CsurfaceIdU3Ek__BackingField_0; }
inline void set_U3CsurfaceIdU3Ek__BackingField_0(SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF value)
{
___U3CsurfaceIdU3Ek__BackingField_0 = value;
}
inline static int32_t get_offset_of_U3CupdateTimeU3Ek__BackingField_1() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CupdateTimeU3Ek__BackingField_1)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_U3CupdateTimeU3Ek__BackingField_1() const { return ___U3CupdateTimeU3Ek__BackingField_1; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_U3CupdateTimeU3Ek__BackingField_1() { return &___U3CupdateTimeU3Ek__BackingField_1; }
inline void set_U3CupdateTimeU3Ek__BackingField_1(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___U3CupdateTimeU3Ek__BackingField_1 = value;
}
inline static int32_t get_offset_of_U3CgameObjectU3Ek__BackingField_2() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CgameObjectU3Ek__BackingField_2)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_U3CgameObjectU3Ek__BackingField_2() const { return ___U3CgameObjectU3Ek__BackingField_2; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_U3CgameObjectU3Ek__BackingField_2() { return &___U3CgameObjectU3Ek__BackingField_2; }
inline void set_U3CgameObjectU3Ek__BackingField_2(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___U3CgameObjectU3Ek__BackingField_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CgameObjectU3Ek__BackingField_2), (void*)value);
}
inline static int32_t get_offset_of_U3CsurfaceDataU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CsurfaceDataU3Ek__BackingField_3)); }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_U3CsurfaceDataU3Ek__BackingField_3() const { return ___U3CsurfaceDataU3Ek__BackingField_3; }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_U3CsurfaceDataU3Ek__BackingField_3() { return &___U3CsurfaceDataU3Ek__BackingField_3; }
inline void set_U3CsurfaceDataU3Ek__BackingField_3(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value)
{
___U3CsurfaceDataU3Ek__BackingField_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___U3CsurfaceDataU3Ek__BackingField_3))->___outputCollider_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_U3CremainingUpdatesToLiveU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CremainingUpdatesToLiveU3Ek__BackingField_4)); }
inline int32_t get_U3CremainingUpdatesToLiveU3Ek__BackingField_4() const { return ___U3CremainingUpdatesToLiveU3Ek__BackingField_4; }
inline int32_t* get_address_of_U3CremainingUpdatesToLiveU3Ek__BackingField_4() { return &___U3CremainingUpdatesToLiveU3Ek__BackingField_4; }
inline void set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(int32_t value)
{
___U3CremainingUpdatesToLiveU3Ek__BackingField_4 = value;
}
inline static int32_t get_offset_of_U3CawaitingBakeU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CawaitingBakeU3Ek__BackingField_5)); }
inline bool get_U3CawaitingBakeU3Ek__BackingField_5() const { return ___U3CawaitingBakeU3Ek__BackingField_5; }
inline bool* get_address_of_U3CawaitingBakeU3Ek__BackingField_5() { return &___U3CawaitingBakeU3Ek__BackingField_5; }
inline void set_U3CawaitingBakeU3Ek__BackingField_5(bool value)
{
___U3CawaitingBakeU3Ek__BackingField_5 = value;
}
inline static int32_t get_offset_of_U3CmeshFilterU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshFilterU3Ek__BackingField_6)); }
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * get_U3CmeshFilterU3Ek__BackingField_6() const { return ___U3CmeshFilterU3Ek__BackingField_6; }
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 ** get_address_of_U3CmeshFilterU3Ek__BackingField_6() { return &___U3CmeshFilterU3Ek__BackingField_6; }
inline void set_U3CmeshFilterU3Ek__BackingField_6(MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * value)
{
___U3CmeshFilterU3Ek__BackingField_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshFilterU3Ek__BackingField_6), (void*)value);
}
inline static int32_t get_offset_of_U3CmeshRendererU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshRendererU3Ek__BackingField_7)); }
inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * get_U3CmeshRendererU3Ek__BackingField_7() const { return ___U3CmeshRendererU3Ek__BackingField_7; }
inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED ** get_address_of_U3CmeshRendererU3Ek__BackingField_7() { return &___U3CmeshRendererU3Ek__BackingField_7; }
inline void set_U3CmeshRendererU3Ek__BackingField_7(MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * value)
{
___U3CmeshRendererU3Ek__BackingField_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshRendererU3Ek__BackingField_7), (void*)value);
}
inline static int32_t get_offset_of_U3CmeshColliderU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CmeshColliderU3Ek__BackingField_8)); }
inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * get_U3CmeshColliderU3Ek__BackingField_8() const { return ___U3CmeshColliderU3Ek__BackingField_8; }
inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE ** get_address_of_U3CmeshColliderU3Ek__BackingField_8() { return &___U3CmeshColliderU3Ek__BackingField_8; }
inline void set_U3CmeshColliderU3Ek__BackingField_8(MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * value)
{
___U3CmeshColliderU3Ek__BackingField_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CmeshColliderU3Ek__BackingField_8), (void*)value);
}
inline static int32_t get_offset_of_U3CworldAnchorU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D, ___U3CworldAnchorU3Ek__BackingField_9)); }
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * get_U3CworldAnchorU3Ek__BackingField_9() const { return ___U3CworldAnchorU3Ek__BackingField_9; }
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE ** get_address_of_U3CworldAnchorU3Ek__BackingField_9() { return &___U3CworldAnchorU3Ek__BackingField_9; }
inline void set_U3CworldAnchorU3Ek__BackingField_9(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * value)
{
___U3CworldAnchorU3Ek__BackingField_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CworldAnchorU3Ek__BackingField_9), (void*)value);
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest
struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059
{
public:
// UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::m_RequestData
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___m_RequestData_0;
// UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::m_Requester
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___m_Requester_1;
public:
inline static int32_t get_offset_of_m_RequestData_0() { return static_cast<int32_t>(offsetof(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059, ___m_RequestData_0)); }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_m_RequestData_0() const { return ___m_RequestData_0; }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_m_RequestData_0() { return &___m_RequestData_0; }
inline void set_m_RequestData_0(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value)
{
___m_RequestData_0 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_RequestData_0))->___outputCollider_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_Requester_1() { return static_cast<int32_t>(offsetof(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059, ___m_Requester_1)); }
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C get_m_Requester_1() const { return ___m_Requester_1; }
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * get_address_of_m_Requester_1() { return &___m_Requester_1; }
inline void set_m_Requester_1(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value)
{
___m_Requester_1 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_Component_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke
{
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke ___m_RequestData_0;
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke ___m_Requester_1;
};
// Native definition for COM marshalling of UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
struct SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com
{
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com ___m_RequestData_0;
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com ___m_Requester_1;
};
// System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase_Surface>
struct Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 : public MulticastDelegate_t
{
public:
public:
};
// System.ArgumentException
struct ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
// System.String System.ArgumentException::m_paramName
String_t* ___m_paramName_17;
public:
inline static int32_t get_offset_of_m_paramName_17() { return static_cast<int32_t>(offsetof(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1, ___m_paramName_17)); }
inline String_t* get_m_paramName_17() const { return ___m_paramName_17; }
inline String_t** get_address_of_m_paramName_17() { return &___m_paramName_17; }
inline void set_m_paramName_17(String_t* value)
{
___m_paramName_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_paramName_17), (void*)value);
}
};
// System.AsyncCallback
struct AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 : public MulticastDelegate_t
{
public:
public:
};
// System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord>
struct Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Collider
struct Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.MeshFilter
struct MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Renderer
struct Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs
struct NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760
{
public:
// UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_Source
InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0;
// UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_SourcePose
InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1;
// UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs::m_HeadPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2;
public:
inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_Source_0)); }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; }
inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value)
{
___m_Source_0 = value;
}
inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_SourcePose_1)); }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; }
inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value)
{
___m_SourcePose_1 = value;
}
inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760, ___m_HeadPose_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; }
inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_HeadPose_2 = value;
}
};
// UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs
struct NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39
{
public:
// UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_Source
InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0;
// UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_SourcePose
InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1;
// UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_HeadPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs::m_NormalizedOffset
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NormalizedOffset_3;
public:
inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_Source_0)); }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; }
inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value)
{
___m_Source_0 = value;
}
inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_SourcePose_1)); }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; }
inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value)
{
___m_SourcePose_1 = value;
}
inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_HeadPose_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; }
inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_HeadPose_2 = value;
}
inline static int32_t get_offset_of_m_NormalizedOffset_3() { return static_cast<int32_t>(offsetof(NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39, ___m_NormalizedOffset_3)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NormalizedOffset_3() const { return ___m_NormalizedOffset_3; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NormalizedOffset_3() { return &___m_NormalizedOffset_3; }
inline void set_m_NormalizedOffset_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_NormalizedOffset_3 = value;
}
};
// UnityEngine.XR.WSA.Input.NavigationStartedEventArgs
struct NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339
{
public:
// UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_Source
InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0;
// UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_SourcePose
InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1;
// UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationStartedEventArgs::m_HeadPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2;
public:
inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_Source_0)); }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; }
inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value)
{
___m_Source_0 = value;
}
inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_SourcePose_1)); }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; }
inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value)
{
___m_SourcePose_1 = value;
}
inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339, ___m_HeadPose_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; }
inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_HeadPose_2 = value;
}
};
// UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs
struct NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA
{
public:
// UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_Source
InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0;
// UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_SourcePose
InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1;
// UnityEngine.Pose UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_HeadPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2;
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::m_NormalizedOffset
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NormalizedOffset_3;
public:
inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_Source_0)); }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; }
inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value)
{
___m_Source_0 = value;
}
inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_SourcePose_1)); }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; }
inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value)
{
___m_SourcePose_1 = value;
}
inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_HeadPose_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; }
inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_HeadPose_2 = value;
}
inline static int32_t get_offset_of_m_NormalizedOffset_3() { return static_cast<int32_t>(offsetof(NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA, ___m_NormalizedOffset_3)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NormalizedOffset_3() const { return ___m_NormalizedOffset_3; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NormalizedOffset_3() { return &___m_NormalizedOffset_3; }
inline void set_m_NormalizedOffset_3(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_NormalizedOffset_3 = value;
}
};
// UnityEngine.XR.WSA.Input.TappedEventArgs
struct TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6
{
public:
// UnityEngine.XR.WSA.Input.InteractionSource UnityEngine.XR.WSA.Input.TappedEventArgs::m_Source
InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 ___m_Source_0;
// UnityEngine.XR.WSA.Input.InteractionSourcePose UnityEngine.XR.WSA.Input.TappedEventArgs::m_SourcePose
InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 ___m_SourcePose_1;
// UnityEngine.Pose UnityEngine.XR.WSA.Input.TappedEventArgs::m_HeadPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_HeadPose_2;
// System.Int32 UnityEngine.XR.WSA.Input.TappedEventArgs::m_TapCount
int32_t ___m_TapCount_3;
public:
inline static int32_t get_offset_of_m_Source_0() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_Source_0)); }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 get_m_Source_0() const { return ___m_Source_0; }
inline InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 * get_address_of_m_Source_0() { return &___m_Source_0; }
inline void set_m_Source_0(InteractionSource_t21335CC7BE7B9164D14283EEA3EC775AB2720DF6 value)
{
___m_Source_0 = value;
}
inline static int32_t get_offset_of_m_SourcePose_1() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_SourcePose_1)); }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 get_m_SourcePose_1() const { return ___m_SourcePose_1; }
inline InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 * get_address_of_m_SourcePose_1() { return &___m_SourcePose_1; }
inline void set_m_SourcePose_1(InteractionSourcePose_t249CD43F634426269571F0E4689428ACC8C54F73 value)
{
___m_SourcePose_1 = value;
}
inline static int32_t get_offset_of_m_HeadPose_2() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_HeadPose_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_HeadPose_2() const { return ___m_HeadPose_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_HeadPose_2() { return &___m_HeadPose_2; }
inline void set_m_HeadPose_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_HeadPose_2 = value;
}
inline static int32_t get_offset_of_m_TapCount_3() { return static_cast<int32_t>(offsetof(TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6, ___m_TapCount_3)); }
inline int32_t get_m_TapCount_3() const { return ___m_TapCount_3; }
inline int32_t* get_address_of_m_TapCount_3() { return &___m_TapCount_3; }
inline void set_m_TapCount_3(int32_t value)
{
___m_TapCount_3 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback
struct SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback
struct GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.XR.WSA.SurfaceObserver_SurfaceChangedDelegate
struct SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.XR.WSA.SurfaceObserver_SurfaceDataReadyDelegate
struct SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 : public MulticastDelegate_t
{
public:
public:
};
// UnityEngine.XR.WSA.WorldAnchor
struct WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
// UnityEngine.XR.WSA.WorldAnchor_OnTrackingChangedDelegate UnityEngine.XR.WSA.WorldAnchor::OnTrackingChanged
OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * ___OnTrackingChanged_4;
public:
inline static int32_t get_offset_of_OnTrackingChanged_4() { return static_cast<int32_t>(offsetof(WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE, ___OnTrackingChanged_4)); }
inline OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * get_OnTrackingChanged_4() const { return ___OnTrackingChanged_4; }
inline OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 ** get_address_of_OnTrackingChanged_4() { return &___OnTrackingChanged_4; }
inline void set_OnTrackingChanged_4(OnTrackingChangedDelegate_t213BE1DC543541B52A31539ACEA406782B1DB253 * value)
{
___OnTrackingChanged_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___OnTrackingChanged_4), (void*)value);
}
};
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>
struct Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B : public MulticastDelegate_t
{
public:
public:
};
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>
struct Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 : public MulticastDelegate_t
{
public:
public:
};
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>
struct Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E : public MulticastDelegate_t
{
public:
public:
};
// System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>
struct Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C : public MulticastDelegate_t
{
public:
public:
};
// System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>
struct Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 : public MulticastDelegate_t
{
public:
public:
};
// System.ArgumentNullException
struct ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD : public ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1
{
public:
public:
};
// UnityEngine.AudioBehaviour
struct AudioBehaviour_tC612EC4E17A648A5C568621F3FBF1DBD773C71C7 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields
{
public:
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreCull
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreCull_4;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreRender_5;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPostRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPostRender_6;
public:
inline static int32_t get_offset_of_onPreCull_4() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreCull_4)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreCull_4() const { return ___onPreCull_4; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreCull_4() { return &___onPreCull_4; }
inline void set_onPreCull_4(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreCull_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreCull_4), (void*)value);
}
inline static int32_t get_offset_of_onPreRender_5() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreRender_5)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreRender_5() const { return ___onPreRender_5; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreRender_5() { return &___onPreRender_5; }
inline void set_onPreRender_5(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreRender_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreRender_5), (void*)value);
}
inline static int32_t get_offset_of_onPostRender_6() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPostRender_6)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPostRender_6() const { return ___onPostRender_6; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPostRender_6() { return &___onPostRender_6; }
inline void set_onPostRender_6(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPostRender_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPostRender_6), (void*)value);
}
};
// UnityEngine.MeshCollider
struct MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE : public Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF
{
public:
public:
};
// UnityEngine.MeshRenderer
struct MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED : public Renderer_t0556D67DD582620D1F495627EDE30D03284151F4
{
public:
public:
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 : public Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA
{
public:
public:
};
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields
{
public:
// UnityEngine.RectTransform_ReapplyDrivenProperties UnityEngine.RectTransform::reapplyDrivenProperties
ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * ___reapplyDrivenProperties_4;
public:
inline static int32_t get_offset_of_reapplyDrivenProperties_4() { return static_cast<int32_t>(offsetof(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_StaticFields, ___reapplyDrivenProperties_4)); }
inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * get_reapplyDrivenProperties_4() const { return ___reapplyDrivenProperties_4; }
inline ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D ** get_address_of_reapplyDrivenProperties_4() { return &___reapplyDrivenProperties_4; }
inline void set_reapplyDrivenProperties_4(ReapplyDrivenProperties_t431F4FBD9C59AE097FE33C4354CC6251B01B527D * value)
{
___reapplyDrivenProperties_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___reapplyDrivenProperties_4), (void*)value);
}
};
// UnityEngine.Audio.AudioSpatializerMicrosoft
struct AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize UnityEngine.Audio.AudioSpatializerMicrosoft::m_RoomSize
int32_t ___m_RoomSize_4;
public:
inline static int32_t get_offset_of_m_RoomSize_4() { return static_cast<int32_t>(offsetof(AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83, ___m_RoomSize_4)); }
inline int32_t get_m_RoomSize_4() const { return ___m_RoomSize_4; }
inline int32_t* get_address_of_m_RoomSize_4() { return &___m_RoomSize_4; }
inline void set_m_RoomSize_4(int32_t value)
{
___m_RoomSize_4 = value;
}
};
// UnityEngine.AudioSource
struct AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C : public AudioBehaviour_tC612EC4E17A648A5C568621F3FBF1DBD773C71C7
{
public:
public:
};
// UnityEngine.EventSystems.UIBehaviour
struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
public:
};
// UnityEngine.XR.WSA.SpatialMappingBase
struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::m_SurfaceParent
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_SurfaceParent_7;
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_FreezeUpdates
bool ___m_FreezeUpdates_8;
// UnityEngine.XR.WSA.SpatialMappingBase_VolumeType UnityEngine.XR.WSA.SpatialMappingBase::m_VolumeType
int32_t ___m_VolumeType_9;
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::m_SphereRadius
float ___m_SphereRadius_10;
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::m_HalfBoxExtents
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_HalfBoxExtents_11;
// UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::m_LodType
int32_t ___m_LodType_12;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::m_NumUpdatesBeforeRemoval
int32_t ___m_NumUpdatesBeforeRemoval_13;
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::m_SecondsBetweenUpdates
float ___m_SecondsBetweenUpdates_14;
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_BakePhysics
bool ___m_BakePhysics_15;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::<observerId>k__BackingField
int32_t ___U3CobserverIdU3Ek__BackingField_16;
// UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::<surfaceObserver>k__BackingField
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___U3CsurfaceObserverU3Ek__BackingField_17;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::<surfaceObjects>k__BackingField
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___U3CsurfaceObjectsU3Ek__BackingField_18;
// UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::<bounds>k__BackingField
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___U3CboundsU3Ek__BackingField_19;
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::<lastUpdatedObserverPosition>k__BackingField
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20;
// UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::<selectedCamera>k__BackingField
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___U3CselectedCameraU3Ek__BackingField_21;
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::<nextSurfaceChangeUpdateTime>k__BackingField
float ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22;
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::m_PendingSurfacesForEviction
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___m_PendingSurfacesForEviction_23;
// System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::m_SurfacesToRemoveFromDict
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___m_SurfacesToRemoveFromDict_24;
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::m_SurfaceParentWasDynamicallyCreated
bool ___m_SurfaceParentWasDynamicallyCreated_25;
// UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase::bestSurfaceDataNull
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bestSurfaceDataNull_27;
public:
inline static int32_t get_offset_of_m_SurfaceParent_7() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfaceParent_7)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_SurfaceParent_7() const { return ___m_SurfaceParent_7; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_SurfaceParent_7() { return &___m_SurfaceParent_7; }
inline void set_m_SurfaceParent_7(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_SurfaceParent_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SurfaceParent_7), (void*)value);
}
inline static int32_t get_offset_of_m_FreezeUpdates_8() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_FreezeUpdates_8)); }
inline bool get_m_FreezeUpdates_8() const { return ___m_FreezeUpdates_8; }
inline bool* get_address_of_m_FreezeUpdates_8() { return &___m_FreezeUpdates_8; }
inline void set_m_FreezeUpdates_8(bool value)
{
___m_FreezeUpdates_8 = value;
}
inline static int32_t get_offset_of_m_VolumeType_9() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_VolumeType_9)); }
inline int32_t get_m_VolumeType_9() const { return ___m_VolumeType_9; }
inline int32_t* get_address_of_m_VolumeType_9() { return &___m_VolumeType_9; }
inline void set_m_VolumeType_9(int32_t value)
{
___m_VolumeType_9 = value;
}
inline static int32_t get_offset_of_m_SphereRadius_10() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SphereRadius_10)); }
inline float get_m_SphereRadius_10() const { return ___m_SphereRadius_10; }
inline float* get_address_of_m_SphereRadius_10() { return &___m_SphereRadius_10; }
inline void set_m_SphereRadius_10(float value)
{
___m_SphereRadius_10 = value;
}
inline static int32_t get_offset_of_m_HalfBoxExtents_11() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_HalfBoxExtents_11)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_HalfBoxExtents_11() const { return ___m_HalfBoxExtents_11; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_HalfBoxExtents_11() { return &___m_HalfBoxExtents_11; }
inline void set_m_HalfBoxExtents_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_HalfBoxExtents_11 = value;
}
inline static int32_t get_offset_of_m_LodType_12() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_LodType_12)); }
inline int32_t get_m_LodType_12() const { return ___m_LodType_12; }
inline int32_t* get_address_of_m_LodType_12() { return &___m_LodType_12; }
inline void set_m_LodType_12(int32_t value)
{
___m_LodType_12 = value;
}
inline static int32_t get_offset_of_m_NumUpdatesBeforeRemoval_13() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_NumUpdatesBeforeRemoval_13)); }
inline int32_t get_m_NumUpdatesBeforeRemoval_13() const { return ___m_NumUpdatesBeforeRemoval_13; }
inline int32_t* get_address_of_m_NumUpdatesBeforeRemoval_13() { return &___m_NumUpdatesBeforeRemoval_13; }
inline void set_m_NumUpdatesBeforeRemoval_13(int32_t value)
{
___m_NumUpdatesBeforeRemoval_13 = value;
}
inline static int32_t get_offset_of_m_SecondsBetweenUpdates_14() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SecondsBetweenUpdates_14)); }
inline float get_m_SecondsBetweenUpdates_14() const { return ___m_SecondsBetweenUpdates_14; }
inline float* get_address_of_m_SecondsBetweenUpdates_14() { return &___m_SecondsBetweenUpdates_14; }
inline void set_m_SecondsBetweenUpdates_14(float value)
{
___m_SecondsBetweenUpdates_14 = value;
}
inline static int32_t get_offset_of_m_BakePhysics_15() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_BakePhysics_15)); }
inline bool get_m_BakePhysics_15() const { return ___m_BakePhysics_15; }
inline bool* get_address_of_m_BakePhysics_15() { return &___m_BakePhysics_15; }
inline void set_m_BakePhysics_15(bool value)
{
___m_BakePhysics_15 = value;
}
inline static int32_t get_offset_of_U3CobserverIdU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CobserverIdU3Ek__BackingField_16)); }
inline int32_t get_U3CobserverIdU3Ek__BackingField_16() const { return ___U3CobserverIdU3Ek__BackingField_16; }
inline int32_t* get_address_of_U3CobserverIdU3Ek__BackingField_16() { return &___U3CobserverIdU3Ek__BackingField_16; }
inline void set_U3CobserverIdU3Ek__BackingField_16(int32_t value)
{
___U3CobserverIdU3Ek__BackingField_16 = value;
}
inline static int32_t get_offset_of_U3CsurfaceObserverU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CsurfaceObserverU3Ek__BackingField_17)); }
inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * get_U3CsurfaceObserverU3Ek__BackingField_17() const { return ___U3CsurfaceObserverU3Ek__BackingField_17; }
inline SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 ** get_address_of_U3CsurfaceObserverU3Ek__BackingField_17() { return &___U3CsurfaceObserverU3Ek__BackingField_17; }
inline void set_U3CsurfaceObserverU3Ek__BackingField_17(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * value)
{
___U3CsurfaceObserverU3Ek__BackingField_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CsurfaceObserverU3Ek__BackingField_17), (void*)value);
}
inline static int32_t get_offset_of_U3CsurfaceObjectsU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CsurfaceObjectsU3Ek__BackingField_18)); }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_U3CsurfaceObjectsU3Ek__BackingField_18() const { return ___U3CsurfaceObjectsU3Ek__BackingField_18; }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_U3CsurfaceObjectsU3Ek__BackingField_18() { return &___U3CsurfaceObjectsU3Ek__BackingField_18; }
inline void set_U3CsurfaceObjectsU3Ek__BackingField_18(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value)
{
___U3CsurfaceObjectsU3Ek__BackingField_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CsurfaceObjectsU3Ek__BackingField_18), (void*)value);
}
inline static int32_t get_offset_of_U3CboundsU3Ek__BackingField_19() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CboundsU3Ek__BackingField_19)); }
inline Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 get_U3CboundsU3Ek__BackingField_19() const { return ___U3CboundsU3Ek__BackingField_19; }
inline Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * get_address_of_U3CboundsU3Ek__BackingField_19() { return &___U3CboundsU3Ek__BackingField_19; }
inline void set_U3CboundsU3Ek__BackingField_19(Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 value)
{
___U3CboundsU3Ek__BackingField_19 = value;
}
inline static int32_t get_offset_of_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() const { return ___U3ClastUpdatedObserverPositionU3Ek__BackingField_20; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_U3ClastUpdatedObserverPositionU3Ek__BackingField_20() { return &___U3ClastUpdatedObserverPositionU3Ek__BackingField_20; }
inline void set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___U3ClastUpdatedObserverPositionU3Ek__BackingField_20 = value;
}
inline static int32_t get_offset_of_U3CselectedCameraU3Ek__BackingField_21() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CselectedCameraU3Ek__BackingField_21)); }
inline Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * get_U3CselectedCameraU3Ek__BackingField_21() const { return ___U3CselectedCameraU3Ek__BackingField_21; }
inline Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 ** get_address_of_U3CselectedCameraU3Ek__BackingField_21() { return &___U3CselectedCameraU3Ek__BackingField_21; }
inline void set_U3CselectedCameraU3Ek__BackingField_21(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * value)
{
___U3CselectedCameraU3Ek__BackingField_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CselectedCameraU3Ek__BackingField_21), (void*)value);
}
inline static int32_t get_offset_of_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22)); }
inline float get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() const { return ___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22; }
inline float* get_address_of_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22() { return &___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22; }
inline void set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(float value)
{
___U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22 = value;
}
inline static int32_t get_offset_of_m_PendingSurfacesForEviction_23() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_PendingSurfacesForEviction_23)); }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * get_m_PendingSurfacesForEviction_23() const { return ___m_PendingSurfacesForEviction_23; }
inline Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 ** get_address_of_m_PendingSurfacesForEviction_23() { return &___m_PendingSurfacesForEviction_23; }
inline void set_m_PendingSurfacesForEviction_23(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * value)
{
___m_PendingSurfacesForEviction_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_PendingSurfacesForEviction_23), (void*)value);
}
inline static int32_t get_offset_of_m_SurfacesToRemoveFromDict_24() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfacesToRemoveFromDict_24)); }
inline List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * get_m_SurfacesToRemoveFromDict_24() const { return ___m_SurfacesToRemoveFromDict_24; }
inline List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 ** get_address_of_m_SurfacesToRemoveFromDict_24() { return &___m_SurfacesToRemoveFromDict_24; }
inline void set_m_SurfacesToRemoveFromDict_24(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * value)
{
___m_SurfacesToRemoveFromDict_24 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SurfacesToRemoveFromDict_24), (void*)value);
}
inline static int32_t get_offset_of_m_SurfaceParentWasDynamicallyCreated_25() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___m_SurfaceParentWasDynamicallyCreated_25)); }
inline bool get_m_SurfaceParentWasDynamicallyCreated_25() const { return ___m_SurfaceParentWasDynamicallyCreated_25; }
inline bool* get_address_of_m_SurfaceParentWasDynamicallyCreated_25() { return &___m_SurfaceParentWasDynamicallyCreated_25; }
inline void set_m_SurfaceParentWasDynamicallyCreated_25(bool value)
{
___m_SurfaceParentWasDynamicallyCreated_25 = value;
}
inline static int32_t get_offset_of_bestSurfaceDataNull_27() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54, ___bestSurfaceDataNull_27)); }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 get_bestSurfaceDataNull_27() const { return ___bestSurfaceDataNull_27; }
inline SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * get_address_of_bestSurfaceDataNull_27() { return &___bestSurfaceDataNull_27; }
inline void set_bestSurfaceDataNull_27(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 value)
{
___bestSurfaceDataNull_27 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___bestSurfaceDataNull_27))->___outputCollider_3), (void*)NULL);
#endif
}
};
struct SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields
{
public:
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::s_MovementUpdateThresholdSqr
float ___s_MovementUpdateThresholdSqr_4;
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::s_EvictionUpdateTickThresholdSqr
float ___s_EvictionUpdateTickThresholdSqr_5;
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::s_ObserverIdCounter
int32_t ___s_ObserverIdCounter_6;
// System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::s_LodToPcm
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___s_LodToPcm_26;
public:
inline static int32_t get_offset_of_s_MovementUpdateThresholdSqr_4() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_MovementUpdateThresholdSqr_4)); }
inline float get_s_MovementUpdateThresholdSqr_4() const { return ___s_MovementUpdateThresholdSqr_4; }
inline float* get_address_of_s_MovementUpdateThresholdSqr_4() { return &___s_MovementUpdateThresholdSqr_4; }
inline void set_s_MovementUpdateThresholdSqr_4(float value)
{
___s_MovementUpdateThresholdSqr_4 = value;
}
inline static int32_t get_offset_of_s_EvictionUpdateTickThresholdSqr_5() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_EvictionUpdateTickThresholdSqr_5)); }
inline float get_s_EvictionUpdateTickThresholdSqr_5() const { return ___s_EvictionUpdateTickThresholdSqr_5; }
inline float* get_address_of_s_EvictionUpdateTickThresholdSqr_5() { return &___s_EvictionUpdateTickThresholdSqr_5; }
inline void set_s_EvictionUpdateTickThresholdSqr_5(float value)
{
___s_EvictionUpdateTickThresholdSqr_5 = value;
}
inline static int32_t get_offset_of_s_ObserverIdCounter_6() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_ObserverIdCounter_6)); }
inline int32_t get_s_ObserverIdCounter_6() const { return ___s_ObserverIdCounter_6; }
inline int32_t* get_address_of_s_ObserverIdCounter_6() { return &___s_ObserverIdCounter_6; }
inline void set_s_ObserverIdCounter_6(int32_t value)
{
___s_ObserverIdCounter_6 = value;
}
inline static int32_t get_offset_of_s_LodToPcm_26() { return static_cast<int32_t>(offsetof(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields, ___s_LodToPcm_26)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_s_LodToPcm_26() const { return ___s_LodToPcm_26; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_s_LodToPcm_26() { return &___s_LodToPcm_26; }
inline void set_s_LodToPcm_26(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___s_LodToPcm_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_LodToPcm_26), (void*)value);
}
};
// UnityEngine.EventSystems.BaseInput
struct BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
public:
};
// UnityEngine.EventSystems.BaseInputModule
struct BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// System.Collections.Generic.List`1<UnityEngine.EventSystems.RaycastResult> UnityEngine.EventSystems.BaseInputModule::m_RaycastResultCache
List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * ___m_RaycastResultCache_4;
// UnityEngine.EventSystems.AxisEventData UnityEngine.EventSystems.BaseInputModule::m_AxisEventData
AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * ___m_AxisEventData_5;
// UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseInputModule::m_EventSystem
EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * ___m_EventSystem_6;
// UnityEngine.EventSystems.BaseEventData UnityEngine.EventSystems.BaseInputModule::m_BaseEventData
BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * ___m_BaseEventData_7;
// UnityEngine.EventSystems.BaseInput UnityEngine.EventSystems.BaseInputModule::m_InputOverride
BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * ___m_InputOverride_8;
// UnityEngine.EventSystems.BaseInput UnityEngine.EventSystems.BaseInputModule::m_DefaultInput
BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * ___m_DefaultInput_9;
public:
inline static int32_t get_offset_of_m_RaycastResultCache_4() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_RaycastResultCache_4)); }
inline List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * get_m_RaycastResultCache_4() const { return ___m_RaycastResultCache_4; }
inline List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 ** get_address_of_m_RaycastResultCache_4() { return &___m_RaycastResultCache_4; }
inline void set_m_RaycastResultCache_4(List_1_t1BB31D71CB8736DC35CCD9FFB9228FAFD427EB52 * value)
{
___m_RaycastResultCache_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RaycastResultCache_4), (void*)value);
}
inline static int32_t get_offset_of_m_AxisEventData_5() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_AxisEventData_5)); }
inline AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * get_m_AxisEventData_5() const { return ___m_AxisEventData_5; }
inline AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 ** get_address_of_m_AxisEventData_5() { return &___m_AxisEventData_5; }
inline void set_m_AxisEventData_5(AxisEventData_t6684191CFC2ADB0DD66DD195174D92F017862442 * value)
{
___m_AxisEventData_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_AxisEventData_5), (void*)value);
}
inline static int32_t get_offset_of_m_EventSystem_6() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_EventSystem_6)); }
inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * get_m_EventSystem_6() const { return ___m_EventSystem_6; }
inline EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 ** get_address_of_m_EventSystem_6() { return &___m_EventSystem_6; }
inline void set_m_EventSystem_6(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * value)
{
___m_EventSystem_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystem_6), (void*)value);
}
inline static int32_t get_offset_of_m_BaseEventData_7() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_BaseEventData_7)); }
inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * get_m_BaseEventData_7() const { return ___m_BaseEventData_7; }
inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 ** get_address_of_m_BaseEventData_7() { return &___m_BaseEventData_7; }
inline void set_m_BaseEventData_7(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * value)
{
___m_BaseEventData_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_BaseEventData_7), (void*)value);
}
inline static int32_t get_offset_of_m_InputOverride_8() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_InputOverride_8)); }
inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * get_m_InputOverride_8() const { return ___m_InputOverride_8; }
inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 ** get_address_of_m_InputOverride_8() { return &___m_InputOverride_8; }
inline void set_m_InputOverride_8(BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * value)
{
___m_InputOverride_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_InputOverride_8), (void*)value);
}
inline static int32_t get_offset_of_m_DefaultInput_9() { return static_cast<int32_t>(offsetof(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939, ___m_DefaultInput_9)); }
inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * get_m_DefaultInput_9() const { return ___m_DefaultInput_9; }
inline BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 ** get_address_of_m_DefaultInput_9() { return &___m_DefaultInput_9; }
inline void set_m_DefaultInput_9(BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * value)
{
___m_DefaultInput_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DefaultInput_9), (void*)value);
}
};
// UnityEngine.EventSystems.EventSystem
struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// System.Collections.Generic.List`1<UnityEngine.EventSystems.BaseInputModule> UnityEngine.EventSystems.EventSystem::m_SystemInputModules
List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * ___m_SystemInputModules_4;
// UnityEngine.EventSystems.BaseInputModule UnityEngine.EventSystems.EventSystem::m_CurrentInputModule
BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * ___m_CurrentInputModule_5;
// UnityEngine.GameObject UnityEngine.EventSystems.EventSystem::m_FirstSelected
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_FirstSelected_7;
// System.Boolean UnityEngine.EventSystems.EventSystem::m_sendNavigationEvents
bool ___m_sendNavigationEvents_8;
// System.Int32 UnityEngine.EventSystems.EventSystem::m_DragThreshold
int32_t ___m_DragThreshold_9;
// UnityEngine.GameObject UnityEngine.EventSystems.EventSystem::m_CurrentSelected
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_CurrentSelected_10;
// System.Boolean UnityEngine.EventSystems.EventSystem::m_HasFocus
bool ___m_HasFocus_11;
// System.Boolean UnityEngine.EventSystems.EventSystem::m_SelectionGuard
bool ___m_SelectionGuard_12;
// UnityEngine.EventSystems.BaseEventData UnityEngine.EventSystems.EventSystem::m_DummyData
BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * ___m_DummyData_13;
public:
inline static int32_t get_offset_of_m_SystemInputModules_4() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_SystemInputModules_4)); }
inline List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * get_m_SystemInputModules_4() const { return ___m_SystemInputModules_4; }
inline List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 ** get_address_of_m_SystemInputModules_4() { return &___m_SystemInputModules_4; }
inline void set_m_SystemInputModules_4(List_1_t4FB5BF302DAD74D690156A022C4FA4D4081E9B26 * value)
{
___m_SystemInputModules_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SystemInputModules_4), (void*)value);
}
inline static int32_t get_offset_of_m_CurrentInputModule_5() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_CurrentInputModule_5)); }
inline BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * get_m_CurrentInputModule_5() const { return ___m_CurrentInputModule_5; }
inline BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 ** get_address_of_m_CurrentInputModule_5() { return &___m_CurrentInputModule_5; }
inline void set_m_CurrentInputModule_5(BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * value)
{
___m_CurrentInputModule_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentInputModule_5), (void*)value);
}
inline static int32_t get_offset_of_m_FirstSelected_7() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_FirstSelected_7)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_FirstSelected_7() const { return ___m_FirstSelected_7; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_FirstSelected_7() { return &___m_FirstSelected_7; }
inline void set_m_FirstSelected_7(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_FirstSelected_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FirstSelected_7), (void*)value);
}
inline static int32_t get_offset_of_m_sendNavigationEvents_8() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_sendNavigationEvents_8)); }
inline bool get_m_sendNavigationEvents_8() const { return ___m_sendNavigationEvents_8; }
inline bool* get_address_of_m_sendNavigationEvents_8() { return &___m_sendNavigationEvents_8; }
inline void set_m_sendNavigationEvents_8(bool value)
{
___m_sendNavigationEvents_8 = value;
}
inline static int32_t get_offset_of_m_DragThreshold_9() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_DragThreshold_9)); }
inline int32_t get_m_DragThreshold_9() const { return ___m_DragThreshold_9; }
inline int32_t* get_address_of_m_DragThreshold_9() { return &___m_DragThreshold_9; }
inline void set_m_DragThreshold_9(int32_t value)
{
___m_DragThreshold_9 = value;
}
inline static int32_t get_offset_of_m_CurrentSelected_10() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_CurrentSelected_10)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_CurrentSelected_10() const { return ___m_CurrentSelected_10; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_CurrentSelected_10() { return &___m_CurrentSelected_10; }
inline void set_m_CurrentSelected_10(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_CurrentSelected_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentSelected_10), (void*)value);
}
inline static int32_t get_offset_of_m_HasFocus_11() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_HasFocus_11)); }
inline bool get_m_HasFocus_11() const { return ___m_HasFocus_11; }
inline bool* get_address_of_m_HasFocus_11() { return &___m_HasFocus_11; }
inline void set_m_HasFocus_11(bool value)
{
___m_HasFocus_11 = value;
}
inline static int32_t get_offset_of_m_SelectionGuard_12() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_SelectionGuard_12)); }
inline bool get_m_SelectionGuard_12() const { return ___m_SelectionGuard_12; }
inline bool* get_address_of_m_SelectionGuard_12() { return &___m_SelectionGuard_12; }
inline void set_m_SelectionGuard_12(bool value)
{
___m_SelectionGuard_12 = value;
}
inline static int32_t get_offset_of_m_DummyData_13() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77, ___m_DummyData_13)); }
inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * get_m_DummyData_13() const { return ___m_DummyData_13; }
inline BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 ** get_address_of_m_DummyData_13() { return &___m_DummyData_13; }
inline void set_m_DummyData_13(BaseEventData_t46C9D2AE3183A742EDE89944AF64A23DBF1B80A5 * value)
{
___m_DummyData_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DummyData_13), (void*)value);
}
};
struct EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields
{
public:
// System.Collections.Generic.List`1<UnityEngine.EventSystems.EventSystem> UnityEngine.EventSystems.EventSystem::m_EventSystems
List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * ___m_EventSystems_6;
// System.Comparison`1<UnityEngine.EventSystems.RaycastResult> UnityEngine.EventSystems.EventSystem::s_RaycastComparer
Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * ___s_RaycastComparer_14;
public:
inline static int32_t get_offset_of_m_EventSystems_6() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields, ___m_EventSystems_6)); }
inline List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * get_m_EventSystems_6() const { return ___m_EventSystems_6; }
inline List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B ** get_address_of_m_EventSystems_6() { return &___m_EventSystems_6; }
inline void set_m_EventSystems_6(List_1_t882412D5BE0B5BFC1900366319F8B2EB544BDD8B * value)
{
___m_EventSystems_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_EventSystems_6), (void*)value);
}
inline static int32_t get_offset_of_s_RaycastComparer_14() { return static_cast<int32_t>(offsetof(EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77_StaticFields, ___s_RaycastComparer_14)); }
inline Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * get_s_RaycastComparer_14() const { return ___s_RaycastComparer_14; }
inline Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 ** get_address_of_s_RaycastComparer_14() { return &___s_RaycastComparer_14; }
inline void set_s_RaycastComparer_14(Comparison_1_t32541D3F4C935BBA3800256BD21A7CA8148AAC13 * value)
{
___s_RaycastComparer_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_RaycastComparer_14), (void*)value);
}
};
// UnityEngine.XR.WSA.SpatialMappingCollider
struct SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 : public SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54
{
public:
// System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::m_Layer
int32_t ___m_Layer_28;
// UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::m_Material
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___m_Material_29;
// System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::m_EnableCollisions
bool ___m_EnableCollisions_30;
public:
inline static int32_t get_offset_of_m_Layer_28() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_Layer_28)); }
inline int32_t get_m_Layer_28() const { return ___m_Layer_28; }
inline int32_t* get_address_of_m_Layer_28() { return &___m_Layer_28; }
inline void set_m_Layer_28(int32_t value)
{
___m_Layer_28 = value;
}
inline static int32_t get_offset_of_m_Material_29() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_Material_29)); }
inline PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * get_m_Material_29() const { return ___m_Material_29; }
inline PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 ** get_address_of_m_Material_29() { return &___m_Material_29; }
inline void set_m_Material_29(PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * value)
{
___m_Material_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Material_29), (void*)value);
}
inline static int32_t get_offset_of_m_EnableCollisions_30() { return static_cast<int32_t>(offsetof(SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2, ___m_EnableCollisions_30)); }
inline bool get_m_EnableCollisions_30() const { return ___m_EnableCollisions_30; }
inline bool* get_address_of_m_EnableCollisions_30() { return &___m_EnableCollisions_30; }
inline void set_m_EnableCollisions_30(bool value)
{
___m_EnableCollisions_30 = value;
}
};
// UnityEngine.XR.WSA.SpatialMappingRenderer
struct SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB : public SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54
{
public:
// UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::m_CurrentRenderState
int32_t ___m_CurrentRenderState_28;
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::m_VisualMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_VisualMaterial_29;
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::m_OcclusionMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_OcclusionMaterial_30;
public:
inline static int32_t get_offset_of_m_CurrentRenderState_28() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_CurrentRenderState_28)); }
inline int32_t get_m_CurrentRenderState_28() const { return ___m_CurrentRenderState_28; }
inline int32_t* get_address_of_m_CurrentRenderState_28() { return &___m_CurrentRenderState_28; }
inline void set_m_CurrentRenderState_28(int32_t value)
{
___m_CurrentRenderState_28 = value;
}
inline static int32_t get_offset_of_m_VisualMaterial_29() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_VisualMaterial_29)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_VisualMaterial_29() const { return ___m_VisualMaterial_29; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_VisualMaterial_29() { return &___m_VisualMaterial_29; }
inline void set_m_VisualMaterial_29(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_VisualMaterial_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_VisualMaterial_29), (void*)value);
}
inline static int32_t get_offset_of_m_OcclusionMaterial_30() { return static_cast<int32_t>(offsetof(SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB, ___m_OcclusionMaterial_30)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_OcclusionMaterial_30() const { return ___m_OcclusionMaterial_30; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_OcclusionMaterial_30() { return &___m_OcclusionMaterial_30; }
inline void set_m_OcclusionMaterial_30(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_OcclusionMaterial_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OcclusionMaterial_30), (void*)value);
}
};
// UnityEngine.EventSystems.HoloLensInput
struct HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 : public BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82
{
public:
// System.Boolean UnityEngine.EventSystems.HoloLensInput::m_IsEmulatedMouseDownCurr
bool ___m_IsEmulatedMouseDownCurr_4;
// System.Boolean UnityEngine.EventSystems.HoloLensInput::m_IsEmulatedMouseDownPrev
bool ___m_IsEmulatedMouseDownPrev_5;
// UnityEngine.EventSystems.HoloLensInput_MouseEmulationMode UnityEngine.EventSystems.HoloLensInput::m_MouseEmulationMode
int32_t ___m_MouseEmulationMode_6;
// UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_NavigationNormalizedOffset
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NavigationNormalizedOffset_7;
// UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_NavigationAnchorWorldSpace
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_NavigationAnchorWorldSpace_8;
// UnityEngine.Vector3 UnityEngine.EventSystems.HoloLensInput::m_TapAnchorWorldSpace
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___m_TapAnchorWorldSpace_9;
// System.Single UnityEngine.EventSystems.HoloLensInput::m_LastTapTime
float ___m_LastTapTime_10;
// UnityEngine.EventSystems.HoloLensInputModule UnityEngine.EventSystems.HoloLensInput::m_Module
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * ___m_Module_11;
// UnityEngine.XR.WSA.Input.GestureRecognizer UnityEngine.EventSystems.HoloLensInput::m_GestureRecognizer
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * ___m_GestureRecognizer_12;
public:
inline static int32_t get_offset_of_m_IsEmulatedMouseDownCurr_4() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_IsEmulatedMouseDownCurr_4)); }
inline bool get_m_IsEmulatedMouseDownCurr_4() const { return ___m_IsEmulatedMouseDownCurr_4; }
inline bool* get_address_of_m_IsEmulatedMouseDownCurr_4() { return &___m_IsEmulatedMouseDownCurr_4; }
inline void set_m_IsEmulatedMouseDownCurr_4(bool value)
{
___m_IsEmulatedMouseDownCurr_4 = value;
}
inline static int32_t get_offset_of_m_IsEmulatedMouseDownPrev_5() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_IsEmulatedMouseDownPrev_5)); }
inline bool get_m_IsEmulatedMouseDownPrev_5() const { return ___m_IsEmulatedMouseDownPrev_5; }
inline bool* get_address_of_m_IsEmulatedMouseDownPrev_5() { return &___m_IsEmulatedMouseDownPrev_5; }
inline void set_m_IsEmulatedMouseDownPrev_5(bool value)
{
___m_IsEmulatedMouseDownPrev_5 = value;
}
inline static int32_t get_offset_of_m_MouseEmulationMode_6() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_MouseEmulationMode_6)); }
inline int32_t get_m_MouseEmulationMode_6() const { return ___m_MouseEmulationMode_6; }
inline int32_t* get_address_of_m_MouseEmulationMode_6() { return &___m_MouseEmulationMode_6; }
inline void set_m_MouseEmulationMode_6(int32_t value)
{
___m_MouseEmulationMode_6 = value;
}
inline static int32_t get_offset_of_m_NavigationNormalizedOffset_7() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_NavigationNormalizedOffset_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NavigationNormalizedOffset_7() const { return ___m_NavigationNormalizedOffset_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NavigationNormalizedOffset_7() { return &___m_NavigationNormalizedOffset_7; }
inline void set_m_NavigationNormalizedOffset_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_NavigationNormalizedOffset_7 = value;
}
inline static int32_t get_offset_of_m_NavigationAnchorWorldSpace_8() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_NavigationAnchorWorldSpace_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_NavigationAnchorWorldSpace_8() const { return ___m_NavigationAnchorWorldSpace_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_NavigationAnchorWorldSpace_8() { return &___m_NavigationAnchorWorldSpace_8; }
inline void set_m_NavigationAnchorWorldSpace_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_NavigationAnchorWorldSpace_8 = value;
}
inline static int32_t get_offset_of_m_TapAnchorWorldSpace_9() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_TapAnchorWorldSpace_9)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_m_TapAnchorWorldSpace_9() const { return ___m_TapAnchorWorldSpace_9; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_m_TapAnchorWorldSpace_9() { return &___m_TapAnchorWorldSpace_9; }
inline void set_m_TapAnchorWorldSpace_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___m_TapAnchorWorldSpace_9 = value;
}
inline static int32_t get_offset_of_m_LastTapTime_10() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_LastTapTime_10)); }
inline float get_m_LastTapTime_10() const { return ___m_LastTapTime_10; }
inline float* get_address_of_m_LastTapTime_10() { return &___m_LastTapTime_10; }
inline void set_m_LastTapTime_10(float value)
{
___m_LastTapTime_10 = value;
}
inline static int32_t get_offset_of_m_Module_11() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_Module_11)); }
inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * get_m_Module_11() const { return ___m_Module_11; }
inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB ** get_address_of_m_Module_11() { return &___m_Module_11; }
inline void set_m_Module_11(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * value)
{
___m_Module_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Module_11), (void*)value);
}
inline static int32_t get_offset_of_m_GestureRecognizer_12() { return static_cast<int32_t>(offsetof(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04, ___m_GestureRecognizer_12)); }
inline GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * get_m_GestureRecognizer_12() const { return ___m_GestureRecognizer_12; }
inline GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE ** get_address_of_m_GestureRecognizer_12() { return &___m_GestureRecognizer_12; }
inline void set_m_GestureRecognizer_12(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * value)
{
___m_GestureRecognizer_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_GestureRecognizer_12), (void*)value);
}
};
// UnityEngine.EventSystems.PointerInputModule
struct PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C : public BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939
{
public:
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.EventSystems.PointerEventData> UnityEngine.EventSystems.PointerInputModule::m_PointerData
Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * ___m_PointerData_14;
// UnityEngine.EventSystems.PointerInputModule_MouseState UnityEngine.EventSystems.PointerInputModule::m_MouseState
MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * ___m_MouseState_15;
public:
inline static int32_t get_offset_of_m_PointerData_14() { return static_cast<int32_t>(offsetof(PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C, ___m_PointerData_14)); }
inline Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * get_m_PointerData_14() const { return ___m_PointerData_14; }
inline Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA ** get_address_of_m_PointerData_14() { return &___m_PointerData_14; }
inline void set_m_PointerData_14(Dictionary_2_t9F401E8FAE13945DFBD264E317248AB9CC9C36CA * value)
{
___m_PointerData_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_PointerData_14), (void*)value);
}
inline static int32_t get_offset_of_m_MouseState_15() { return static_cast<int32_t>(offsetof(PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C, ___m_MouseState_15)); }
inline MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * get_m_MouseState_15() const { return ___m_MouseState_15; }
inline MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 ** get_address_of_m_MouseState_15() { return &___m_MouseState_15; }
inline void set_m_MouseState_15(MouseState_t4D6249AEF3F24542B7F13D49020EC1B8DC2F05D7 * value)
{
___m_MouseState_15 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_MouseState_15), (void*)value);
}
};
// UnityEngine.EventSystems.StandaloneInputModule
struct StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 : public PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C
{
public:
// System.Single UnityEngine.EventSystems.StandaloneInputModule::m_PrevActionTime
float ___m_PrevActionTime_16;
// UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_LastMoveVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_LastMoveVector_17;
// System.Int32 UnityEngine.EventSystems.StandaloneInputModule::m_ConsecutiveMoveCount
int32_t ___m_ConsecutiveMoveCount_18;
// UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_LastMousePosition
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_LastMousePosition_19;
// UnityEngine.Vector2 UnityEngine.EventSystems.StandaloneInputModule::m_MousePosition
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_MousePosition_20;
// UnityEngine.GameObject UnityEngine.EventSystems.StandaloneInputModule::m_CurrentFocusedGameObject
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___m_CurrentFocusedGameObject_21;
// UnityEngine.EventSystems.PointerEventData UnityEngine.EventSystems.StandaloneInputModule::m_InputPointerEvent
PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___m_InputPointerEvent_22;
// System.String UnityEngine.EventSystems.StandaloneInputModule::m_HorizontalAxis
String_t* ___m_HorizontalAxis_23;
// System.String UnityEngine.EventSystems.StandaloneInputModule::m_VerticalAxis
String_t* ___m_VerticalAxis_24;
// System.String UnityEngine.EventSystems.StandaloneInputModule::m_SubmitButton
String_t* ___m_SubmitButton_25;
// System.String UnityEngine.EventSystems.StandaloneInputModule::m_CancelButton
String_t* ___m_CancelButton_26;
// System.Single UnityEngine.EventSystems.StandaloneInputModule::m_InputActionsPerSecond
float ___m_InputActionsPerSecond_27;
// System.Single UnityEngine.EventSystems.StandaloneInputModule::m_RepeatDelay
float ___m_RepeatDelay_28;
// System.Boolean UnityEngine.EventSystems.StandaloneInputModule::m_ForceModuleActive
bool ___m_ForceModuleActive_29;
public:
inline static int32_t get_offset_of_m_PrevActionTime_16() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_PrevActionTime_16)); }
inline float get_m_PrevActionTime_16() const { return ___m_PrevActionTime_16; }
inline float* get_address_of_m_PrevActionTime_16() { return &___m_PrevActionTime_16; }
inline void set_m_PrevActionTime_16(float value)
{
___m_PrevActionTime_16 = value;
}
inline static int32_t get_offset_of_m_LastMoveVector_17() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_LastMoveVector_17)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_LastMoveVector_17() const { return ___m_LastMoveVector_17; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_LastMoveVector_17() { return &___m_LastMoveVector_17; }
inline void set_m_LastMoveVector_17(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_LastMoveVector_17 = value;
}
inline static int32_t get_offset_of_m_ConsecutiveMoveCount_18() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_ConsecutiveMoveCount_18)); }
inline int32_t get_m_ConsecutiveMoveCount_18() const { return ___m_ConsecutiveMoveCount_18; }
inline int32_t* get_address_of_m_ConsecutiveMoveCount_18() { return &___m_ConsecutiveMoveCount_18; }
inline void set_m_ConsecutiveMoveCount_18(int32_t value)
{
___m_ConsecutiveMoveCount_18 = value;
}
inline static int32_t get_offset_of_m_LastMousePosition_19() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_LastMousePosition_19)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_LastMousePosition_19() const { return ___m_LastMousePosition_19; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_LastMousePosition_19() { return &___m_LastMousePosition_19; }
inline void set_m_LastMousePosition_19(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_LastMousePosition_19 = value;
}
inline static int32_t get_offset_of_m_MousePosition_20() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_MousePosition_20)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_MousePosition_20() const { return ___m_MousePosition_20; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_MousePosition_20() { return &___m_MousePosition_20; }
inline void set_m_MousePosition_20(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_MousePosition_20 = value;
}
inline static int32_t get_offset_of_m_CurrentFocusedGameObject_21() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_CurrentFocusedGameObject_21)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_m_CurrentFocusedGameObject_21() const { return ___m_CurrentFocusedGameObject_21; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_m_CurrentFocusedGameObject_21() { return &___m_CurrentFocusedGameObject_21; }
inline void set_m_CurrentFocusedGameObject_21(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___m_CurrentFocusedGameObject_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CurrentFocusedGameObject_21), (void*)value);
}
inline static int32_t get_offset_of_m_InputPointerEvent_22() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_InputPointerEvent_22)); }
inline PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * get_m_InputPointerEvent_22() const { return ___m_InputPointerEvent_22; }
inline PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 ** get_address_of_m_InputPointerEvent_22() { return &___m_InputPointerEvent_22; }
inline void set_m_InputPointerEvent_22(PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * value)
{
___m_InputPointerEvent_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_InputPointerEvent_22), (void*)value);
}
inline static int32_t get_offset_of_m_HorizontalAxis_23() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_HorizontalAxis_23)); }
inline String_t* get_m_HorizontalAxis_23() const { return ___m_HorizontalAxis_23; }
inline String_t** get_address_of_m_HorizontalAxis_23() { return &___m_HorizontalAxis_23; }
inline void set_m_HorizontalAxis_23(String_t* value)
{
___m_HorizontalAxis_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HorizontalAxis_23), (void*)value);
}
inline static int32_t get_offset_of_m_VerticalAxis_24() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_VerticalAxis_24)); }
inline String_t* get_m_VerticalAxis_24() const { return ___m_VerticalAxis_24; }
inline String_t** get_address_of_m_VerticalAxis_24() { return &___m_VerticalAxis_24; }
inline void set_m_VerticalAxis_24(String_t* value)
{
___m_VerticalAxis_24 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_VerticalAxis_24), (void*)value);
}
inline static int32_t get_offset_of_m_SubmitButton_25() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_SubmitButton_25)); }
inline String_t* get_m_SubmitButton_25() const { return ___m_SubmitButton_25; }
inline String_t** get_address_of_m_SubmitButton_25() { return &___m_SubmitButton_25; }
inline void set_m_SubmitButton_25(String_t* value)
{
___m_SubmitButton_25 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SubmitButton_25), (void*)value);
}
inline static int32_t get_offset_of_m_CancelButton_26() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_CancelButton_26)); }
inline String_t* get_m_CancelButton_26() const { return ___m_CancelButton_26; }
inline String_t** get_address_of_m_CancelButton_26() { return &___m_CancelButton_26; }
inline void set_m_CancelButton_26(String_t* value)
{
___m_CancelButton_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CancelButton_26), (void*)value);
}
inline static int32_t get_offset_of_m_InputActionsPerSecond_27() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_InputActionsPerSecond_27)); }
inline float get_m_InputActionsPerSecond_27() const { return ___m_InputActionsPerSecond_27; }
inline float* get_address_of_m_InputActionsPerSecond_27() { return &___m_InputActionsPerSecond_27; }
inline void set_m_InputActionsPerSecond_27(float value)
{
___m_InputActionsPerSecond_27 = value;
}
inline static int32_t get_offset_of_m_RepeatDelay_28() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_RepeatDelay_28)); }
inline float get_m_RepeatDelay_28() const { return ___m_RepeatDelay_28; }
inline float* get_address_of_m_RepeatDelay_28() { return &___m_RepeatDelay_28; }
inline void set_m_RepeatDelay_28(float value)
{
___m_RepeatDelay_28 = value;
}
inline static int32_t get_offset_of_m_ForceModuleActive_29() { return static_cast<int32_t>(offsetof(StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5, ___m_ForceModuleActive_29)); }
inline bool get_m_ForceModuleActive_29() const { return ___m_ForceModuleActive_29; }
inline bool* get_address_of_m_ForceModuleActive_29() { return &___m_ForceModuleActive_29; }
inline void set_m_ForceModuleActive_29(bool value)
{
___m_ForceModuleActive_29 = value;
}
};
// UnityEngine.EventSystems.HoloLensInputModule
struct HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB : public StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5
{
public:
// System.Single UnityEngine.EventSystems.HoloLensInputModule::m_NormalizedNavigationToScreenOffsetScalar
float ___m_NormalizedNavigationToScreenOffsetScalar_30;
// System.Single UnityEngine.EventSystems.HoloLensInputModule::m_TimeToPressOnTap
float ___m_TimeToPressOnTap_31;
// UnityEngine.EventSystems.HoloLensInput UnityEngine.EventSystems.HoloLensInputModule::m_HoloLensInput
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * ___m_HoloLensInput_32;
// System.Boolean UnityEngine.EventSystems.HoloLensInputModule::m_HasBeenActivated
bool ___m_HasBeenActivated_33;
// System.Boolean UnityEngine.EventSystems.HoloLensInputModule::m_HasGestureToProcess
bool ___m_HasGestureToProcess_34;
public:
inline static int32_t get_offset_of_m_NormalizedNavigationToScreenOffsetScalar_30() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_NormalizedNavigationToScreenOffsetScalar_30)); }
inline float get_m_NormalizedNavigationToScreenOffsetScalar_30() const { return ___m_NormalizedNavigationToScreenOffsetScalar_30; }
inline float* get_address_of_m_NormalizedNavigationToScreenOffsetScalar_30() { return &___m_NormalizedNavigationToScreenOffsetScalar_30; }
inline void set_m_NormalizedNavigationToScreenOffsetScalar_30(float value)
{
___m_NormalizedNavigationToScreenOffsetScalar_30 = value;
}
inline static int32_t get_offset_of_m_TimeToPressOnTap_31() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_TimeToPressOnTap_31)); }
inline float get_m_TimeToPressOnTap_31() const { return ___m_TimeToPressOnTap_31; }
inline float* get_address_of_m_TimeToPressOnTap_31() { return &___m_TimeToPressOnTap_31; }
inline void set_m_TimeToPressOnTap_31(float value)
{
___m_TimeToPressOnTap_31 = value;
}
inline static int32_t get_offset_of_m_HoloLensInput_32() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HoloLensInput_32)); }
inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * get_m_HoloLensInput_32() const { return ___m_HoloLensInput_32; }
inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 ** get_address_of_m_HoloLensInput_32() { return &___m_HoloLensInput_32; }
inline void set_m_HoloLensInput_32(HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * value)
{
___m_HoloLensInput_32 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HoloLensInput_32), (void*)value);
}
inline static int32_t get_offset_of_m_HasBeenActivated_33() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HasBeenActivated_33)); }
inline bool get_m_HasBeenActivated_33() const { return ___m_HasBeenActivated_33; }
inline bool* get_address_of_m_HasBeenActivated_33() { return &___m_HasBeenActivated_33; }
inline void set_m_HasBeenActivated_33(bool value)
{
___m_HasBeenActivated_33 = value;
}
inline static int32_t get_offset_of_m_HasGestureToProcess_34() { return static_cast<int32_t>(offsetof(HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB, ___m_HasGestureToProcess_34)); }
inline bool get_m_HasGestureToProcess_34() const { return ___m_HasGestureToProcess_34; }
inline bool* get_address_of_m_HasGestureToProcess_34() { return &___m_HasGestureToProcess_34; }
inline void set_m_HasGestureToProcess_34(bool value)
{
___m_HasGestureToProcess_34 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83 : public RuntimeArray
{
public:
ALIGN_FIELD (8) int32_t m_Items[1];
public:
inline int32_t GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline int32_t* GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, int32_t value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
}
inline int32_t GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline int32_t* GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, int32_t value)
{
m_Items[index] = value;
}
};
// System.Delegate[]
struct DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86 : public RuntimeArray
{
public:
ALIGN_FIELD (8) Delegate_t * m_Items[1];
public:
inline Delegate_t * GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline Delegate_t ** GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, Delegate_t * value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
inline Delegate_t * GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline Delegate_t ** GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, Delegate_t * value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value);
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest[]
struct SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD : public RuntimeArray
{
public:
ALIGN_FIELD (8) SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 m_Items[1];
public:
inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputCollider_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_Component_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_RequestData_0))->___outputCollider_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_Component_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((m_Items + index)->___m_Requester_1))->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
};
// UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord[]
struct SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1 : public RuntimeArray
{
public:
ALIGN_FIELD (8) SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C m_Items[1];
public:
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Component_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Component_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_OnDataReady_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_GetHighestPri_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_SurfaceObserver_3), (void*)NULL);
#endif
}
};
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke_back(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled);
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_pinvoke_cleanup(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled);
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com_back(const SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66& unmarshaled);
IL2CPP_EXTERN_C void SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshal_com_cleanup(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_marshaled_com& marshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled);
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke_back(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_pinvoke_cleanup(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_pinvoke& marshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com_back(const SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864& unmarshaled);
IL2CPP_EXTERN_C void SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshal_com_cleanup(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_marshaled_com& marshaled);
// !!0 UnityEngine.Component::GetComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_gshared (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_gshared (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_gshared (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_gshared (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_gshared (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2__ctor_m7D745ADE56151C2895459668F4A4242985E526D8_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Count()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Dictionary_2_get_Count_m69345D9DEE55AA0CE574D19CB7C430AC638C01A9_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method);
// System.Collections.Generic.Dictionary`2/Enumerator<!0,!1> System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::GetEnumerator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF Dictionary_2_GetEnumerator_m96229BB73AA611A324DC70110E62FE619827A2CD_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method);
// System.Collections.Generic.KeyValuePair`2<!0,!1> System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::get_Current()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method);
// !1 System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Value()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::MoveNext()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_m2E3757A7C76D2E1DB0B77D03FF3DE7406334779A_gshared (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,System.Object>::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_mA0C519E84D909C2F0BEABF433D85E0EC6FB7C218_gshared (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.KeyValuePair`2<System.Int32,System.Object>::get_Key()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Clear_m482455899CE0084909A48605A2F722B2F1307FB7_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::ContainsKey(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_ContainsKey_m379C08BE13D2E0AD1F9102B6E280A32F0C9C7015_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method);
// !1 System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::get_Item(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Dictionary_2_get_Item_mEFECE2769017AB70A9B1E7F5F8BBA59375620B54_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::set_Item(!0,!1)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_set_Item_mF9A6FBE4006C89D15B8C88B2CB46E9B24D18B7FC_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Remove(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_Remove_m2204D6D532702FD13AB2A9AD8DB538E4E8FB1913_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::Add(!0,!1)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Dictionary_2_Add_mF7AEA0EFA07EEBC1A4B283A26A7CB720EE7A4C20_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject * ___value1, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,System.Object>::TryGetValue(!0,!1&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Dictionary_2_TryGetValue_m867F6DA953678D0333A55270B7C6EF38EFC293FF_gshared (Dictionary_2_t03608389BB57475AA3F4B2B79D176A27807BC884 * __this, int32_t ___key0, RuntimeObject ** ___value1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Int32>::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Int32>::Add(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___item0, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<System.Int32>::get_Item(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method);
// System.Void System.Action`1<System.Object>::Invoke(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared (Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Int32>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_gshared (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method);
// System.Void System.Action`1<System.Object>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Action_1__ctor_mAFC7442D9D3CEC6701C3C5599F8CF12476095510_gshared (Action_1_t551A279CEADCF6EEAE8FA2B1E1E757D0D15290D0 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method);
// System.Void System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_gshared (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Find(System.Predicate`1<!0>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Add(!0)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___item0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAll(System.Predicate`1<!0>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method);
// System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::GetEnumerator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Current()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::MoveNext()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_gshared (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_gshared (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Item(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAt(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_gshared (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Count()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerRoomSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerFloats()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.Component::GetComponent<UnityEngine.AudioSource>()
inline AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method)
{
return (( AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method);
}
// UnityEngine.AudioSource UnityEngine.Audio.AudioSpatializerMicrosoft::get_audioSource()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.AudioSource::SetSpatializerFloat(System.Int32,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool AudioSource_SetSpatializerFloat_mA34E8E88A05FF3682B00E1D29D80581AFED8098F (AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * __this, int32_t ___index0, float ___value1, const RuntimeMethod* method);
// System.Void UnityEngine.MonoBehaviour::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeAndGestureScreenPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGestureScrollDelta()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.UIBehaviour::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC (UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.Component::GetComponent<UnityEngine.EventSystems.HoloLensInputModule>()
inline HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method)
{
return (( HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer__ctor_m4EC0013B225C0189D0ACB2DC77092C809764F1D5 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0 (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_Tapped(System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_Tapped_mD5587B3F0115F9AC0599D555E2988E63136DA3EC (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___value0, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031 (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationStarted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationStarted_mB4E1B0FCB384F37BD9A9309C7C5B0AFADFA3EB1C (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___value0, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationUpdated(System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationUpdated_mA509F2737D18188204C6E04154B1A1070F8E711C (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___value0, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7 (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationCompleted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationCompleted_mD39CFD50E1AD8B673AB866EA8EAB7E22F2DBDCB3 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___value0, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::add_NavigationCanceled(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_add_NavigationCanceled_m457599DCA92748E915C75C3D858C757D21C5FD4B (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___value0, const RuntimeMethod* method);
// UnityEngine.XR.WSA.Input.GestureSettings UnityEngine.XR.WSA.Input.GestureRecognizer::SetRecognizableGestures(UnityEngine.XR.WSA.Input.GestureSettings)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GestureRecognizer_SetRecognizableGestures_mF459BAE914B9B2E01E7B1652ACF23C5C2722DA68 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, int32_t ___newMaskValue0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::StartCapturingGestures()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_StartCapturingGestures_mD02F289C8263C8EACB47B4593E55C8B767C524FA (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::StopCapturingGestures()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_StopCapturingGestures_mBA5D5DFFC507CE972150A242E9DFC59B06121D61 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_Tapped(System.Action`1<UnityEngine.XR.WSA.Input.TappedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_Tapped_mB7FCD101CEEA7DF998931E64E4358F734A06F840 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationStarted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationStartedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationStarted_m2456D056E789D6F4FC6BB8477658352C1550E8FF (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationUpdated(System.Action`1<UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationUpdated_m279E228CE0E46516F24A472998BC0F5B854EF4E8 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationCompleted(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationCompleted_m549BC4069ABD075D8077660FB94C32235306AA03 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.Input.GestureRecognizer::remove_NavigationCanceled(System.Action`1<UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GestureRecognizer_remove_NavigationCanceled_m7F24255B9515ACE9F80A55864A9923D085ED5E32 (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * __this, Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.UIBehaviour::OnDestroy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void UIBehaviour_OnDestroy_mAC124B1C2131BDD6B17D70DB2A90632A2355F498 (UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.EventSystems.HoloLensInputModule::get_timeToPressOnTap()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method);
// System.Single UnityEngine.Time::get_time()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8 (const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.EventSystems.HoloLensInputModule::Internal_GetCurrentFocusedGameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Equality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_zero()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2 (const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.RectTransform>()
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method);
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeScreenPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231 (const RuntimeMethod* method);
// UnityEngine.Camera UnityEngine.Camera::get_main()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA (const RuntimeMethod* method);
// System.Boolean UnityEngine.RectTransformUtility::ScreenPointToWorldPointInRectangle(UnityEngine.RectTransform,UnityEngine.Vector2,UnityEngine.Camera,UnityEngine.Vector3&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F (RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___rect0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint1, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___cam2, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___worldPoint3, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.HoloLensInputModule::Internal_GestureNotifier()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.EventSystems.HoloLensInput::TryGetAnchorWorldSpace(UnityEngine.Vector3&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___anchor0, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs::get_normalizedOffset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 NavigationUpdatedEventArgs_get_normalizedOffset_m63EFB136CBEC39D4BC004FC814B93FBA69760C02 (NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.HoloLensInput::OnNavigationCompletedOrCanceled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method);
// System.Int32 UnityEngine.Screen::get_width()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3 (const RuntimeMethod* method);
// System.Int32 UnityEngine.Screen::get_height()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150 (const RuntimeMethod* method);
// System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, float ___x0, float ___y1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Camera::WorldToScreenPoint(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___v0, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::op_Addition(UnityEngine.Vector2,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Addition_m81A4D928B8E399DA3A4E3ACD8937EDFDCB014682 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___a0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___b1, const RuntimeMethod* method);
// System.Single UnityEngine.EventSystems.HoloLensInputModule::get_normalizedNavigationToScreenOffsetScalar()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::op_Multiply(System.Single,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Multiply_m2E30A54E315810911DFC2E25C700757A68AC1F38 (float ___d0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___a1, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::EmulateMousePosition(UnityEngine.Vector3,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___anchorWorldspace0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___finalOffset1, const RuntimeMethod* method);
// UnityEngine.Vector2 UnityEngine.Vector2::get_zero()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8 (const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.BaseInput::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void BaseInput__ctor_m097A1D35CC42538881FAF0E45AFF6FB974377F19 (BaseInput_t75E14D6E10222455BEB43FA300F478BEAB02DF82 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.StandaloneInputModule::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule__ctor_m53DF966585A2888088BF07BB7DDE26BA84BA67D0 (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.Component::GetComponent<UnityEngine.EventSystems.HoloLensInput>()
inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method)
{
return (( HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method);
}
// System.Boolean UnityEngine.Object::op_Implicit(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___exists0, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.Component::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<UnityEngine.EventSystems.HoloLensInput>()
inline HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method);
}
// System.Boolean UnityEngine.EventSystems.StandaloneInputModule::IsModuleSupported()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool StandaloneInputModule_IsModuleSupported_m44C18E994D6B97CDFBD841A9D7314B26B7AA340A (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// System.String UnityEngine.XR.XRSettings::get_loadedDeviceName()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* XRSettings_get_loadedDeviceName_m952D46346306FD9477B13992E5797A85CCD3C98C (const RuntimeMethod* method);
// System.Boolean System.String::Equals(System.String,System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool String_Equals_m90EB651A751C3444BADBBD5401109CE05B3E1CFB (String_t* ___a0, String_t* ___b1, const RuntimeMethod* method);
// System.Boolean UnityEngine.EventSystems.StandaloneInputModule::get_forceModuleActive()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.StandaloneInputModule::ActivateModule()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule_ActivateModule_m75B8C7CF41074D98F23DBCBADBEC12204F101F04 (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.HoloLensInput::UpdateInput()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.StandaloneInputModule::UpdateModule()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StandaloneInputModule_UpdateModule_m6BE8C301BEB10BD653F0D0EEB6522E3A8F3221BA (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.EventSystems.HoloLensInput::AllowDrag()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.EventSystems.PointerInputModule::ProcessDrag(UnityEngine.EventSystems.PointerEventData)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void PointerInputModule_ProcessDrag_m2A544286EF20A04D6E42FFCFD0F73DD89F9614A2 (PointerInputModule_tE8CB9BDC38DAF3162843E22541093DADDE1BB19C * __this, PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___pointerEvent0, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.EventSystems.StandaloneInputModule::GetCurrentFocusedGameObject()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method);
// UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.BaseInputModule::get_eventSystem()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline (BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_observerId(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::.ctor()
inline void Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2__ctor_m7D745ADE56151C2895459668F4A4242985E526D8_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObjects(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_selectedCamera(UnityEngine.Camera)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_nextSurfaceChangeUpdateTime(System.Single)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver__ctor_mBDC4FE3EC359DB3F2481186A400EB613B9C63E90 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObserver(UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::get_Instance()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline (const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObserver()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::RegisterComponent(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.Component::get_transform()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Transform::get_position()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_halfBoxExtents()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Bounds::.ctor(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds__ctor_m294E77A20EC1A3E96985FE1A925CB271D1B5266D (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___center0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___size1, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bounds(UnityEngine.Bounds)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdatePosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObjects()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Count()
inline int32_t Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_get_Count_m69345D9DEE55AA0CE574D19CB7C430AC638C01A9_gshared)(__this, method);
}
// System.Collections.Generic.Dictionary`2/Enumerator<!0,!1> System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::GetEnumerator()
inline Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method)
{
return (( Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_GetEnumerator_m96229BB73AA611A324DC70110E62FE619827A2CD_gshared)(__this, method);
}
// System.Collections.Generic.KeyValuePair`2<!0,!1> System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Current()
inline KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method)
{
return (( KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline)(__this, method);
}
// !1 System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Value()
inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * __this, const RuntimeMethod* method)
{
return (( Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * (*) (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *, const RuntimeMethod*))KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline)(__this, method);
}
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_gameObject()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Object::op_Inequality(UnityEngine.Object,UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___x0, Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___y1, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::SetActive(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, bool ___value0, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::MoveNext()
inline bool Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1 (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method)
{
return (( bool (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_MoveNext_m2E3757A7C76D2E1DB0B77D03FF3DE7406334779A_gshared)(__this, method);
}
// System.Void System.Collections.Generic.Dictionary`2/Enumerator<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Dispose()
inline void Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1 (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B * __this, const RuntimeMethod* method)
{
(( void (*) (Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *, const RuntimeMethod*))Enumerator_Dispose_mA0C519E84D909C2F0BEABF433D85E0EC6FB7C218_gshared)(__this, method);
}
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_pendingSurfacesForEviction()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.KeyValuePair`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Key()
inline int32_t KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *, const RuntimeMethod*))KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline)(__this, method);
}
// System.String System.String::Format(System.String,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA (String_t* ___format0, RuntimeObject * ___arg01, const RuntimeMethod* method);
// System.Void UnityEngine.Debug::LogWarning(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568 (RuntimeObject * ___message0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::DeregisterComponent(UnityEngine.XR.WSA.SpatialMappingBase)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Clear()
inline void Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, const RuntimeMethod*))Dictionary_2_Clear_m482455899CE0084909A48605A2F722B2F1307FB7_gshared)(__this, method);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParentWasDynamicallyCreated()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParent()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Object::Destroy(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParent(UnityEngine.GameObject)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver::Dispose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_Dispose_mA842C19181453E384E1BCE368468F8762CBB9B1E (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_lastUpdatedObserverPosition()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::op_Subtraction(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___a0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___b1, const RuntimeMethod* method);
// System.Single UnityEngine.Vector3::SqrMagnitude(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___vector0, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_freezeUpdates()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_nextSurfaceChangeUpdateTime()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceChangedDelegate__ctor_mC4E2CDAB64B92D5032E1AA39880F73F045D9B714 (SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver::Update(UnityEngine.XR.WSA.SurfaceObserver/SurfaceChangedDelegate)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_Update_m08AD5357474ED266F8242C2CE6B42BCC9C131A29 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * ___onSurfaceChanged0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::ProcessEvictedObjects()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_secondsBetweenUpdates()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::ComponentHasDataRequests()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingBase/VolumeType UnityEngine.XR.WSA.SpatialMappingBase::get_volumeType()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_sphereRadius()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver::SetVolumeAsSphere(UnityEngine.Vector3,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_SetVolumeAsSphere_m8CC38FF7980EDDCC4D4B9FDB312DB622325BFD70 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___origin0, float ___radiusMeters1, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver::SetVolumeAsAxisAlignedBox(UnityEngine.Vector3,UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceObserver_SetVolumeAsAxisAlignedBox_m26D27F3DBEC734594B04C75A37CE28017CB47340 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___origin0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___extents1, const RuntimeMethod* method);
// UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::get_bounds()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Bounds::set_center(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds_set_center_mAD29DD80FD631F83AF4E7558BB27A0398E8FD841 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Bounds::set_extents(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Bounds_set_extents_mC83719146B06D0575A160CDDE9997202A1192B35 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lastUpdatedObserverPosition(UnityEngine.Vector3)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_bakePhysics()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnAddOrUpdateSurface(UnityEngine.XR.WSA.SurfaceId,System.DateTime,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime1, bool ___bakePhysics2, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnRemoveSurface(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::ContainsKey(!0)
inline bool Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method)
{
return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_ContainsKey_m379C08BE13D2E0AD1F9102B6E280A32F0C9C7015_gshared)(__this, ___key0, method);
}
// !1 System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::get_Item(!0)
inline Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method)
{
return (( Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_get_Item_mEFECE2769017AB70A9B1E7F5F8BBA59375620B54_gshared)(__this, ___key0, method);
}
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::set_Item(!0,!1)
inline void Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value1, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Dictionary_2_set_Item_mF9A6FBE4006C89D15B8C88B2CB46E9B24D18B7FC_gshared)(__this, ___key0, ___value1, method);
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Remove(!0)
inline bool Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, const RuntimeMethod* method)
{
return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, const RuntimeMethod*))Dictionary_2_Remove_m2204D6D532702FD13AB2A9AD8DB538E4E8FB1913_gshared)(__this, ___key0, method);
}
// UnityEngine.XR.WSA.SpatialMappingBase/Surface UnityEngine.XR.WSA.SpatialMappingBase::CreateSurface(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_surfaceData(UnityEngine.XR.WSA.SurfaceData)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Add(!0,!1)
inline void Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___value1, const RuntimeMethod* method)
{
(( void (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Dictionary_2_Add_mF7AEA0EFA07EEBC1A4B283A26A7CB720EE7A4C20_gshared)(__this, ___key0, ___value1, method);
}
// UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_surfaceData()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::get_lodToPcm()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline (const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingBase/LODType UnityEngine.XR.WSA.SpatialMappingBase::get_lodType()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_awaitingBake(System.Boolean)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_updateTime(System.DateTime)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_surfaceId(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method);
// UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshFilter()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// UnityEngine.Mesh UnityEngine.MeshFilter::get_mesh()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, const RuntimeMethod* method);
// UnityEngine.Mesh UnityEngine.MeshFilter::get_sharedMesh()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * MeshFilter_get_sharedMesh_mC076FD5461BFBBAD3BE49D25263CF140700D9902 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.MeshFilter::set_mesh(UnityEngine.Mesh)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MeshFilter_set_mesh_mA18AA96C75CC91CF0917BA1F437626499FAAF496 (MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * __this, Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___value0, const RuntimeMethod* method);
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_observerId()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, String_t* ___name0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParentWasDynamicallyCreated(System.Boolean)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_surfaceId()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.String System.String::Format(System.String,System.Object,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_m19325298DBC61AAC016C16F7B3CF97A8A3DEA34A (String_t* ___format0, RuntimeObject * ___arg01, RuntimeObject * ___arg12, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_gameObject(UnityEngine.GameObject)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.GameObject::get_transform()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Transform::set_parent(UnityEngine.Transform)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_set_parent_m65B8E4660B2C554069C57A957D9E55FECA7AA73E (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___value0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.MeshFilter>()
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshFilter(UnityEngine.MeshFilter)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshFilter>()
inline MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method);
}
// UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_worldAnchor()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.XR.WSA.WorldAnchor>()
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_worldAnchor(UnityEngine.XR.WSA.WorldAnchor)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<UnityEngine.XR.WSA.WorldAnchor>()
inline WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method);
}
// System.Boolean System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase/Surface>::TryGetValue(!0,!1&)
inline bool Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8 (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * __this, int32_t ___key0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D ** ___value1, const RuntimeMethod* method)
{
return (( bool (*) (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *, int32_t, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **, const RuntimeMethod*))Dictionary_2_TryGetValue_m867F6DA953678D0333A55270B7C6EF38EFC293FF_gshared)(__this, ___key0, ___value1, method);
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_numUpdatesBeforeRemoval()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::ShouldRemainActiveWhileBeingRemoved(UnityEngine.XR.WSA.SpatialMappingBase/Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_remainingUpdatesToLive(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method);
// UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::get_selectedCamera()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.Transform::get_parent()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::BoundsContains(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method);
// System.Boolean UnityEngine.Bounds::Contains(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Bounds_Contains_mD0387F6A414484534BE1E50E0FC55EDE1E138319 (Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___point0, const RuntimeMethod* method);
// System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::get_surfacesToRemoveFromDict()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Int32>::Clear()
inline void List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_gshared)(__this, method);
}
// System.Void System.Collections.Generic.List`1<System.Int32>::Add(!0)
inline void List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___item0, const RuntimeMethod* method)
{
(( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, int32_t, const RuntimeMethod*))List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_gshared)(__this, ___item0, method);
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_remainingUpdatesToLive()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<System.Int32>::get_Item(System.Int32)
inline int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, int32_t, const RuntimeMethod*))List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline)(__this, ___index0, method);
}
// System.Int32 System.Collections.Generic.List`1<System.Int32>::get_Count()
inline int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline)(__this, method);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_awaitingBake()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.DateTime UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_updateTime()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.Boolean System.DateTime::op_LessThan(System.DateTime,System.DateTime)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool DateTime_op_LessThan_m75DE4F8CC5F5EE392829A9B37C5C98B7FC97061A (DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___t10, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___t21, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>::Invoke(!0)
inline void Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63 (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___obj0, const RuntimeMethod* method)
{
(( void (*) (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *, const RuntimeMethod*))Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared)(__this, ___obj0, method);
}
// UnityEngine.Vector3 UnityEngine.Vector3::get_one()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_one_mA11B83037CB269C6076CBCF754E24C8F3ACEC2AB (const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::op_Multiply(UnityEngine.Vector3,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___a0, float ___d1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<System.Int32>::.ctor()
inline void List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4 (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *, const RuntimeMethod*))List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_gshared)(__this, method);
}
// System.Void System.Runtime.CompilerServices.RuntimeHelpers::InitializeArray(System.Array,System.RuntimeFieldHandle)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A (RuntimeArray * ___array0, RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF ___fldHandle1, const RuntimeMethod* method);
// System.Void System.Object::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0 (RuntimeObject * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::ApplyPropertiesToCachedSurfaces()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bakePhysics(System.Boolean)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Debug::LogError(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29 (RuntimeObject * ___message0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::CloneBakedComponents(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SpatialMappingBase/Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___target1, const RuntimeMethod* method);
// System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::get_layer()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::set_layer(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, int32_t ___value0, const RuntimeMethod* method);
// UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::get_material()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Collider::set_material(UnityEngine.PhysicMaterial)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74 (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___value0, const RuntimeMethod* method);
// UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshCollider()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Collider::set_enabled(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, bool ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase/Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshCollider>()
inline MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshCollider(UnityEngine.MeshCollider)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method);
// System.Void System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>::.ctor(System.Object,System.IntPtr)
inline void Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *, RuntimeObject *, intptr_t, const RuntimeMethod*))Action_1__ctor_mAFC7442D9D3CEC6701C3C5599F8CF12476095510_gshared)(__this, ___object0, ___method1, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::ForEachSurfaceInCache(System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase/Surface>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * ___callback0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Int32 UnityEngine.GameObject::get_layer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t GameObject_get_layer_m0DE90D8A3D3AA80497A3A80FBEAC2D207C16B9C8 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// UnityEngine.PhysicMaterial UnityEngine.Collider::get_material()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * Collider_get_material_m4F6B81A3CD1B3B579579EF2DBA73CEF29072766A (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.Collider::get_enabled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Collider_get_enabled_mED644D98C6AC2DF95BD86145E8D31AD7081C76EB (Collider_t0FEEB36760860AD21B3B1F0509C365B393EC4BDF * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::get_enableCollisions()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor()
inline void List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass12_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, const RuntimeMethod* method);
// System.Void System.ArgumentNullException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * __this, String_t* ___paramName0, const RuntimeMethod* method);
// System.Void System.Predicate`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::.ctor(System.Object,System.IntPtr)
inline void Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972 (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
(( void (*) (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, RuntimeObject *, intptr_t, const RuntimeMethod*))Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_gshared)(__this, ___object0, ___method1, method);
}
// !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Find(System.Predicate`1<!0>)
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method)
{
return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, const RuntimeMethod*))List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_gshared)(__this, ___match0, method);
}
// System.Void System.ArgumentException::.ctor(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7 (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * __this, String_t* ___message0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Add(!0)
inline void List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___item0, const RuntimeMethod* method)
{
(( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C , const RuntimeMethod*))List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_gshared)(__this, ___item0, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/<>c__DisplayClass13_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAll(System.Predicate`1<!0>)
inline int32_t List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * ___match0, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *, const RuntimeMethod*))List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_gshared)(__this, ___match0, method);
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::GetInFlightIndexFromSD(UnityEngine.XR.WSA.SurfaceData)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::PropagateDataReadyEventToComponents(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, int32_t ___inFlightIndex3, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::UpdateInFlightRecords(System.Int32,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, float ___elapsedBakeTimeSeconds1, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::RequestMeshPriorityFromComponents()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest::IsClear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingBase/LODType UnityEngine.XR.WSA.SpatialMappingBase::GetLODFromTPCM(System.Double)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8 (double ___trianglesPerCubicMeter0, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext::GetSMComponentFromInFlightIndex(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, const RuntimeMethod* method);
// System.Collections.Generic.List`1/Enumerator<!0> System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::GetEnumerator()
inline Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method)
{
return (( Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_gshared)(__this, method);
}
// !0 System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Current()
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method)
{
return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback::Invoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method);
// System.Boolean System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::MoveNext()
inline bool Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method)
{
return (( bool (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_gshared)(__this, method);
}
// System.Void System.Collections.Generic.List`1/Enumerator<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::Dispose()
inline void Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method)
{
(( void (*) (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *, const RuntimeMethod*))Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946 (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Item(System.Int32)
inline SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, int32_t, const RuntimeMethod*))List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline)(__this, ___index0, method);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback::Invoke(UnityEngine.XR.WSA.SurfaceData&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyDelegate__ctor_mB653644D30A5B829714DDEE56B57C2C01AE263E2 (SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SurfaceObserver::RequestMeshAsync(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SurfaceObserver/SurfaceDataReadyDelegate)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SurfaceObserver_RequestMeshAsync_mF7815161E179CE34FBB9FC52127DAE4B39FEBE95 (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___dataRequest0, SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * ___onDataReady1, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::RemoveAt(System.Int32)
inline void List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342 (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method)
{
(( void (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, int32_t, const RuntimeMethod*))List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_gshared)(__this, ___index0, method);
}
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord>::get_Count()
inline int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *, const RuntimeMethod*))List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::IsClear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord::.ctor(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase/SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext/GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyPropertiesToCachedSurfaces()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method);
// UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase/Surface::get_meshRenderer()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.MeshRenderer>()
inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mE03C66715289D7957CA068A675826B7EE0887BE3_gshared)(__this, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase/Surface::set_meshRenderer(UnityEngine.MeshRenderer)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::AddComponent<UnityEngine.MeshRenderer>()
inline MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_AddComponent_TisRuntimeObject_mE053F7A95F30AFF07D69F0DED3DA13AE2EC25E03_gshared)(__this, method);
}
// System.Void UnityEngine.Renderer::set_receiveShadows(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_receiveShadows_mD2BD2FF58156E328677EAE5E175D2069BC2925A0 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, bool ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Renderer::set_shadowCastingMode(UnityEngine.Rendering.ShadowCastingMode)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_shadowCastingMode_mC7E601EE9B32B63097B216C78ED4F854B0AF21EC (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, int32_t ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyRenderSettings(UnityEngine.MeshRenderer)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___meshRenderer0, const RuntimeMethod* method);
// System.Void UnityEngine.Renderer::set_enabled(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, bool ___value0, const RuntimeMethod* method);
// UnityEngine.XR.WSA.SpatialMappingRenderer/RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::get_renderState()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method);
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_occlusionMaterial()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Renderer::set_sharedMaterial(UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3 (Renderer_t0556D67DD582620D1F495627EDE30D03284151F4 * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method);
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_visualMaterial()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_occlusionMaterial(UnityEngine.Material)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_visualMaterial(UnityEngine.Material)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDestroy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::Reset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method);
// System.Void System.ThrowHelper::ThrowArgumentOutOfRangeException()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550 (const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize UnityEngine.Audio.AudioSpatializerMicrosoft::get_roomSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t AudioSpatializerMicrosoft_get_roomSize_m4827F4A5B17D45A01A3552978A6D2D2809882379 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// return m_RoomSize;
int32_t L_0 = __this->get_m_RoomSize_4();
return L_0;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::set_roomSize(UnityEngine.Audio.AudioSpatializerMicrosoft_RoomSize)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_set_roomSize_mE355175404ECCF0B728E9447B0AAA95284B02B0A (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// m_RoomSize = value;
int32_t L_0 = ___value0;
__this->set_m_RoomSize_4(L_0);
// SetSpatializerRoomSize();
AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_Awake_mEA2D1DF056CDDA98FCFD46EE15952FEA8331FD26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// SetSpatializerFloats();
AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::OnValidate()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_OnValidate_m07EE8BEF5426A15DA16A10E2CC6B77995F6E8664 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// SetSpatializerFloats();
AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::OnDidAnimateProperty()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_OnDidAnimateProperty_mA94E559F87C7B9DFF1B4BE680226E38FF0D86830 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// SetSpatializerFloats();
AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerFloats()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerFloats_m9581DC69ADD7393EC63278A2C44C7B5203812140 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// SetSpatializerRoomSize();
AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0(__this, /*hidden argument*/NULL);
// }
return;
}
}
// UnityEngine.AudioSource UnityEngine.Audio.AudioSpatializerMicrosoft::get_audioSource()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// get { return GetComponent<AudioSource>(); }
AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * L_0 = Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8(__this, /*hidden argument*/Component_GetComponent_TisAudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C_m04C8E98F2393C77979C9D8F6DE1D98343EF025E8_RuntimeMethod_var);
return L_0;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::SetSpatializerRoomSize()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft_SetSpatializerRoomSize_mBD4BA990B3FBF49ACF1220A219E2133D6F1062F0 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
// audioSource.SetSpatializerFloat(0, (float)m_RoomSize);
AudioSource_t5196F862B4E60F404613361C90D87FBDD041E93C * L_0 = AudioSpatializerMicrosoft_get_audioSource_m64394B367E4F22778216B603971AC6CB0666FE26(__this, /*hidden argument*/NULL);
int32_t L_1 = __this->get_m_RoomSize_4();
NullCheck(L_0);
AudioSource_SetSpatializerFloat_mA34E8E88A05FF3682B00E1D29D80581AFED8098F(L_0, 0, (((float)((float)L_1))), /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.Audio.AudioSpatializerMicrosoft::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void AudioSpatializerMicrosoft__ctor_m139A4F404C376F22B54D67E9EB81262F85B6DE36 (AudioSpatializerMicrosoft_tD51873DF8B2EC56C9DEBFAAB2F747AD8674ADC83 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Boolean UnityEngine.EventSystems.HoloLensInput::get_mousePresent()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_get_mousePresent_m445B5A9C2B183623EB77C27B3A0CC27EB5A4B892 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// get { return true; }
return (bool)1;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButtonDown(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButtonDown_mE112D2A4EF2FD55EDD82449FE628F7BFFF669D07 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method)
{
{
// return button == 0 && !m_IsEmulatedMouseDownPrev && m_IsEmulatedMouseDownCurr;
int32_t L_0 = ___button0;
if (L_0)
{
goto IL_0012;
}
}
{
bool L_1 = __this->get_m_IsEmulatedMouseDownPrev_5();
if (L_1)
{
goto IL_0012;
}
}
{
bool L_2 = __this->get_m_IsEmulatedMouseDownCurr_4();
return L_2;
}
IL_0012:
{
return (bool)0;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButtonUp(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButtonUp_m04A47C917982B5A55221FC6D1249527B6C6BC66D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method)
{
{
// return button == 0 && m_IsEmulatedMouseDownPrev && !m_IsEmulatedMouseDownCurr;
int32_t L_0 = ___button0;
if (L_0)
{
goto IL_0015;
}
}
{
bool L_1 = __this->get_m_IsEmulatedMouseDownPrev_5();
if (!L_1)
{
goto IL_0015;
}
}
{
bool L_2 = __this->get_m_IsEmulatedMouseDownCurr_4();
return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
}
IL_0015:
{
return (bool)0;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::GetMouseButton(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_GetMouseButton_mA1312EC3E2BAAD1DA8ACC4D6486B90A1848D3B36 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, int32_t ___button0, const RuntimeMethod* method)
{
{
// return button == 0 && m_IsEmulatedMouseDownCurr;
int32_t L_0 = ___button0;
if (L_0)
{
goto IL_000a;
}
}
{
bool L_1 = __this->get_m_IsEmulatedMouseDownCurr_4();
return L_1;
}
IL_000a:
{
return (bool)0;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::get_mousePosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_get_mousePosition_m5BBF2B8E53FFF5437FDA49DE51CB9E40B73388C4 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// get { return GetGazeAndGestureScreenPosition(); }
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_0 = HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B(__this, /*hidden argument*/NULL);
return L_0;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::get_mouseScrollDelta()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_get_mouseScrollDelta_m7C418980EFFC028FF1C8287613CE80301EA245D6 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// get { return GetGestureScrollDelta(); }
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_0 = HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8(__this, /*hidden argument*/NULL);
return L_0;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::get_touchSupported()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_get_touchSupported_mD02A566487EF2C625FC37ACE638C6470510338AC (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// get { return false; }
return (bool)0;
}
}
// System.Int32 UnityEngine.EventSystems.HoloLensInput::get_touchCount()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t HoloLensInput_get_touchCount_mC653A720B65DC5E383BEB487C64CB7D6531668C0 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// get { return 0; }
return 0;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_Awake_m70BA1043D113FABE7F7C06271F3B7998A0BB45F5_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// base.Awake();
UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC(__this, /*hidden argument*/NULL);
// m_Module = GetComponent<HoloLensInputModule>();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D(__this, /*hidden argument*/Component_GetComponent_TisHoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB_m5EB41AF0200183B780E6DECD1274962F1367CF1D_RuntimeMethod_var);
__this->set_m_Module_11(L_0);
// m_GestureRecognizer = new GestureRecognizer();
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_1 = (GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE *)il2cpp_codegen_object_new(GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE_il2cpp_TypeInfo_var);
GestureRecognizer__ctor_m4EC0013B225C0189D0ACB2DC77092C809764F1D5(L_1, /*hidden argument*/NULL);
__this->set_m_GestureRecognizer_12(L_1);
// m_GestureRecognizer.Tapped += GestureHandler_OnTapped;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_2 = __this->get_m_GestureRecognizer_12();
Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * L_3 = (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *)il2cpp_codegen_object_new(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var);
Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0(L_3, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var);
NullCheck(L_2);
GestureRecognizer_add_Tapped_mD5587B3F0115F9AC0599D555E2988E63136DA3EC(L_2, L_3, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationStarted += GestureHandler_OnNavigationStarted;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_4 = __this->get_m_GestureRecognizer_12();
Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * L_5 = (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *)il2cpp_codegen_object_new(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var);
Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031(L_5, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var);
NullCheck(L_4);
GestureRecognizer_add_NavigationStarted_mB4E1B0FCB384F37BD9A9309C7C5B0AFADFA3EB1C(L_4, L_5, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationUpdated += GestureHandler_OnNavigationUpdated;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_6 = __this->get_m_GestureRecognizer_12();
Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * L_7 = (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *)il2cpp_codegen_object_new(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var);
Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F(L_7, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var);
NullCheck(L_6);
GestureRecognizer_add_NavigationUpdated_mA509F2737D18188204C6E04154B1A1070F8E711C(L_6, L_7, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationCompleted += GestureHandler_OnNavigationCompleted;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_8 = __this->get_m_GestureRecognizer_12();
Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * L_9 = (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *)il2cpp_codegen_object_new(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var);
Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7(L_9, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var);
NullCheck(L_8);
GestureRecognizer_add_NavigationCompleted_mD39CFD50E1AD8B673AB866EA8EAB7E22F2DBDCB3(L_8, L_9, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationCanceled += GestureHandler_OnNavigationCanceled;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_10 = __this->get_m_GestureRecognizer_12();
Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * L_11 = (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *)il2cpp_codegen_object_new(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var);
Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F(L_11, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var);
NullCheck(L_10);
GestureRecognizer_add_NavigationCanceled_m457599DCA92748E915C75C3D858C757D21C5FD4B(L_10, L_11, /*hidden argument*/NULL);
// m_GestureRecognizer.SetRecognizableGestures(
// GestureSettings.Tap
// | GestureSettings.NavigationX
// | GestureSettings.NavigationY
// | GestureSettings.NavigationZ);
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_12 = __this->get_m_GestureRecognizer_12();
NullCheck(L_12);
GestureRecognizer_SetRecognizableGestures_mF459BAE914B9B2E01E7B1652ACF23C5C2722DA68(L_12, ((int32_t)113), /*hidden argument*/NULL);
// m_GestureRecognizer.StartCapturingGestures();
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_13 = __this->get_m_GestureRecognizer_12();
NullCheck(L_13);
GestureRecognizer_StartCapturingGestures_mD02F289C8263C8EACB47B4593E55C8B767C524FA(L_13, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::OnDestroy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_OnDestroy_m0D0E7BB08EE4B8029E6ACBF59E6AFAAC548BE482_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// m_GestureRecognizer.StopCapturingGestures();
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_0 = __this->get_m_GestureRecognizer_12();
NullCheck(L_0);
GestureRecognizer_StopCapturingGestures_mBA5D5DFFC507CE972150A242E9DFC59B06121D61(L_0, /*hidden argument*/NULL);
// m_GestureRecognizer.Tapped -= GestureHandler_OnTapped;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_1 = __this->get_m_GestureRecognizer_12();
Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 * L_2 = (Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12 *)il2cpp_codegen_object_new(Action_1_tF26E81D6C525086A6BF0264D4CCFF4F9D3C86D12_il2cpp_TypeInfo_var);
Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0(L_2, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mC172C98F4F0CF247C0880F1F05D557C9005F0FF0_RuntimeMethod_var);
NullCheck(L_1);
GestureRecognizer_remove_Tapped_mB7FCD101CEEA7DF998931E64E4358F734A06F840(L_1, L_2, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationStarted -= GestureHandler_OnNavigationStarted;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_3 = __this->get_m_GestureRecognizer_12();
Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E * L_4 = (Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E *)il2cpp_codegen_object_new(Action_1_t12403A5DFD6ED9F6D2D66FBBBF9B65D8CF00538E_il2cpp_TypeInfo_var);
Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031(L_4, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA05C26EAC7D393E6758FF779E4F0EF6053F71031_RuntimeMethod_var);
NullCheck(L_3);
GestureRecognizer_remove_NavigationStarted_m2456D056E789D6F4FC6BB8477658352C1550E8FF(L_3, L_4, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationUpdated -= GestureHandler_OnNavigationUpdated;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_5 = __this->get_m_GestureRecognizer_12();
Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C * L_6 = (Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C *)il2cpp_codegen_object_new(Action_1_tEAD62A4E2B757ADC9D11D8A3CCB8E2CF8792F64C_il2cpp_TypeInfo_var);
Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F(L_6, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mA105853780DE0E7830858A3CE435FB854D5AF89F_RuntimeMethod_var);
NullCheck(L_5);
GestureRecognizer_remove_NavigationUpdated_m279E228CE0E46516F24A472998BC0F5B854EF4E8(L_5, L_6, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationCompleted -= GestureHandler_OnNavigationCompleted;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_7 = __this->get_m_GestureRecognizer_12();
Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 * L_8 = (Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1 *)il2cpp_codegen_object_new(Action_1_tE20909ED14E1CC129893FCAD2C19BA898C77D7B1_il2cpp_TypeInfo_var);
Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7(L_8, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_mCE82E53BE564D455FE1E9B87B40FA08AB8BE16B7_RuntimeMethod_var);
NullCheck(L_7);
GestureRecognizer_remove_NavigationCompleted_m549BC4069ABD075D8077660FB94C32235306AA03(L_7, L_8, /*hidden argument*/NULL);
// m_GestureRecognizer.NavigationCanceled -= GestureHandler_OnNavigationCanceled;
GestureRecognizer_tE4A3B36C495289B1DF1011E12394116A91E361DE * L_9 = __this->get_m_GestureRecognizer_12();
Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B * L_10 = (Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B *)il2cpp_codegen_object_new(Action_1_t725D93DE550342B16861C2DF8B459B4657B0B40B_il2cpp_TypeInfo_var);
Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F(L_10, __this, (intptr_t)((intptr_t)HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m57B23A36E2D390C12127F88939E56313E7C7280F_RuntimeMethod_var);
NullCheck(L_9);
GestureRecognizer_remove_NavigationCanceled_m7F24255B9515ACE9F80A55864A9923D085ED5E32(L_9, L_10, /*hidden argument*/NULL);
// base.OnDestroy();
UIBehaviour_OnDestroy_mAC124B1C2131BDD6B17D70DB2A90632A2355F498(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::UpdateInput()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// if (MouseEmulationMode.Tap == m_MouseEmulationMode && m_LastTapTime + m_Module.timeToPressOnTap < Time.time)
int32_t L_0 = __this->get_m_MouseEmulationMode_6();
if ((!(((uint32_t)2) == ((uint32_t)L_0))))
{
goto IL_0029;
}
}
{
float L_1 = __this->get_m_LastTapTime_10();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_2 = __this->get_m_Module_11();
NullCheck(L_2);
float L_3 = HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline(L_2, /*hidden argument*/NULL);
float L_4 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
if ((!(((float)((float)il2cpp_codegen_add((float)L_1, (float)L_3))) < ((float)L_4))))
{
goto IL_0029;
}
}
{
// m_MouseEmulationMode = MouseEmulationMode.Inactive;
__this->set_m_MouseEmulationMode_6(0);
}
IL_0029:
{
// m_IsEmulatedMouseDownPrev = m_IsEmulatedMouseDownCurr;
bool L_5 = __this->get_m_IsEmulatedMouseDownCurr_4();
__this->set_m_IsEmulatedMouseDownPrev_5(L_5);
// m_IsEmulatedMouseDownCurr = m_MouseEmulationMode != MouseEmulationMode.Inactive;
int32_t L_6 = __this->get_m_MouseEmulationMode_6();
__this->set_m_IsEmulatedMouseDownCurr_4((bool)((!(((uint32_t)L_6) <= ((uint32_t)0)))? 1 : 0));
// }
return;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::AllowDrag()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
{
// return m_MouseEmulationMode == MouseEmulationMode.Navigation;
int32_t L_0 = __this->get_m_MouseEmulationMode_6();
return (bool)((((int32_t)L_0) == ((int32_t)1))? 1 : 0);
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInput::TryGetAnchorWorldSpace(UnityEngine.Vector3&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * ___anchor0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL;
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * V_1 = NULL;
{
// GameObject focus = m_Module.Internal_GetCurrentFocusedGameObject();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11();
NullCheck(L_0);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8(L_0, /*hidden argument*/NULL);
V_0 = L_1;
// if (focus == null)
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0022;
}
}
{
// anchor = Vector3.zero;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_4 = ___anchor0;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_5 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
*(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_4 = L_5;
// return false;
return (bool)0;
}
IL_0022:
{
// RectTransform rectTransform = focus.GetComponent<RectTransform>();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = V_0;
NullCheck(L_6);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_7 = GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C(L_6, /*hidden argument*/GameObject_GetComponent_TisRectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20_m2E5F02DDA13C176AF75B4E7C1DB801D89E053B2C_RuntimeMethod_var);
V_1 = L_7;
// if (rectTransform == null)
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_8 = V_1;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_003f;
}
}
{
// anchor = Vector3.zero;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_10 = ___anchor0;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
*(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_10 = L_11;
// return false;
return (bool)0;
}
IL_003f:
{
// return RectTransformUtility.ScreenPointToWorldPointInRectangle(rectTransform, GetGazeScreenPosition(), Camera.main, out anchor);
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * L_12 = V_1;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_13 = HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231(/*hidden argument*/NULL);
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_14 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_15 = ___anchor0;
IL2CPP_RUNTIME_CLASS_INIT(RectTransformUtility_t9B90669A72B05A33DD88BEBB817BC9CDBB614BBA_il2cpp_TypeInfo_var);
bool L_16 = RectTransformUtility_ScreenPointToWorldPointInRectangle_m821FF925C5B70477F153B4C053AE9E36A04A774F(L_12, L_13, L_14, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_15, /*hidden argument*/NULL);
return L_16;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnTapped(UnityEngine.XR.WSA.Input.TappedEventArgs)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnTapped_mB3A4E46BB674B671E6A2047E4F2253DA34B9026E (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, TappedEventArgs_t1E2125DB3E5E3F28EF3018C15F6A7786EDE8E9D6 ___eventArgs0, const RuntimeMethod* method)
{
{
// m_Module.Internal_GestureNotifier();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11();
NullCheck(L_0);
HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL);
// if (!TryGetAnchorWorldSpace(out m_TapAnchorWorldSpace))
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_1 = __this->get_address_of_m_TapAnchorWorldSpace_9();
bool L_2 = HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002(__this, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_1, /*hidden argument*/NULL);
if (L_2)
{
goto IL_001a;
}
}
{
// return;
return;
}
IL_001a:
{
// m_MouseEmulationMode = MouseEmulationMode.Tap;
__this->set_m_MouseEmulationMode_6(2);
// m_LastTapTime = Time.time;
float L_3 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
__this->set_m_LastTapTime_10(L_3);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationStarted(UnityEngine.XR.WSA.Input.NavigationStartedEventArgs)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationStartedEventArgs_t834E02E24343414BB48A9099C7CF0C331C859339 ___eventArgs0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_GestureHandler_OnNavigationStarted_m5BABB19B941A94BDAC0306717F905CF1A14114BE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// m_Module.Internal_GestureNotifier();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11();
NullCheck(L_0);
HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL);
// if (!TryGetAnchorWorldSpace(out m_NavigationAnchorWorldSpace))
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_1 = __this->get_address_of_m_NavigationAnchorWorldSpace_8();
bool L_2 = HoloLensInput_TryGetAnchorWorldSpace_m717AD859215B59C8A6C82A68FE3E9EA07ACD9002(__this, (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)L_1, /*hidden argument*/NULL);
if (L_2)
{
goto IL_001a;
}
}
{
// return;
return;
}
IL_001a:
{
// m_MouseEmulationMode = MouseEmulationMode.Navigation;
__this->set_m_MouseEmulationMode_6(1);
// m_NavigationNormalizedOffset = Vector3.zero;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
__this->set_m_NavigationNormalizedOffset_7(L_3);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationUpdated(UnityEngine.XR.WSA.Input.NavigationUpdatedEventArgs)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationUpdated_m7FD257B72D8CC5551DEF9E75CD686E59B42F38F0 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA ___eventArgs0, const RuntimeMethod* method)
{
{
// m_Module.Internal_GestureNotifier();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11();
NullCheck(L_0);
HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL);
// m_NavigationNormalizedOffset = eventArgs.normalizedOffset;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = NavigationUpdatedEventArgs_get_normalizedOffset_m63EFB136CBEC39D4BC004FC814B93FBA69760C02((NavigationUpdatedEventArgs_tC41595BC70171E7D2E16538C62923395B285F3BA *)(&___eventArgs0), /*hidden argument*/NULL);
__this->set_m_NavigationNormalizedOffset_7(L_1);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationCompleted(UnityEngine.XR.WSA.Input.NavigationCompletedEventArgs)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationCompleted_m8F16371E94B150666B4A4397203E9CF9B4FB5BED (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationCompletedEventArgs_tA0A6DD23233401CBAE4848F6B6D0BA03DE647E39 ___eventArgs0, const RuntimeMethod* method)
{
{
// OnNavigationCompletedOrCanceled();
HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::GestureHandler_OnNavigationCanceled(UnityEngine.XR.WSA.Input.NavigationCanceledEventArgs)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_GestureHandler_OnNavigationCanceled_m67FD466D3B261B148F061CBB032BA5B7FA2F6963 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, NavigationCanceledEventArgs_tC2B533AD31373B31AF9FDC354D3A07C749FC9760 ___eventArgs0, const RuntimeMethod* method)
{
{
// OnNavigationCompletedOrCanceled();
HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::OnNavigationCompletedOrCanceled()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_OnNavigationCompletedOrCanceled_mE92F640DB99570AD1A42C9882F3F7347BB27149C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// m_Module.Internal_GestureNotifier();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_0 = __this->get_m_Module_11();
NullCheck(L_0);
HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7(L_0, /*hidden argument*/NULL);
// m_NavigationNormalizedOffset = Vector3.zero;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
__this->set_m_NavigationNormalizedOffset_7(L_1);
// m_MouseEmulationMode = MouseEmulationMode.Inactive;
__this->set_m_MouseEmulationMode_6(0);
// }
return;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeScreenPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231 (const RuntimeMethod* method)
{
{
// return new Vector2(0.5f * Screen.width, 0.5f * Screen.height);
int32_t L_0 = Screen_get_width_m8ECCEF7FF17395D1237BC0193D7A6640A3FEEAD3(/*hidden argument*/NULL);
int32_t L_1 = Screen_get_height_mF5B64EBC4CDE0EAAA5713C1452ED2CE475F25150(/*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_2;
memset((&L_2), 0, sizeof(L_2));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_2), ((float)il2cpp_codegen_multiply((float)(0.5f), (float)(((float)((float)L_0))))), ((float)il2cpp_codegen_multiply((float)(0.5f), (float)(((float)((float)L_1))))), /*hidden argument*/NULL);
return L_2;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::EmulateMousePosition(UnityEngine.Vector3,UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___anchorWorldspace0, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___finalOffset1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// Vector2 anchorScreenSpace = Camera.main.WorldToScreenPoint(anchorWorldspace);
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = ___anchorWorldspace0;
NullCheck(L_0);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Camera_WorldToScreenPoint_m880F9611E4848C11F21FDF1A1D307B401C61B1BF(L_0, L_1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_3 = Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28(L_2, /*hidden argument*/NULL);
// return anchorScreenSpace + finalOffset;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4 = ___finalOffset1;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_5 = Vector2_op_Addition_m81A4D928B8E399DA3A4E3ACD8937EDFDCB014682(L_3, L_4, /*hidden argument*/NULL);
return L_5;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGazeAndGestureScreenPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_GetGazeAndGestureScreenPosition_m7DB2FDF3835B4EDD8C9B8D8FB11D73FB54CDEE2B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
// switch (m_MouseEmulationMode)
int32_t L_0 = __this->get_m_MouseEmulationMode_6();
V_0 = L_0;
int32_t L_1 = V_0;
if ((((int32_t)L_1) == ((int32_t)1)))
{
goto IL_0011;
}
}
{
int32_t L_2 = V_0;
if ((((int32_t)L_2) == ((int32_t)2)))
{
goto IL_0049;
}
}
{
goto IL_005b;
}
IL_0011:
{
// return EmulateMousePosition(m_NavigationAnchorWorldSpace, m_Module.normalizedNavigationToScreenOffsetScalar * new Vector2(m_NavigationNormalizedOffset.x, m_NavigationNormalizedOffset.y));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = __this->get_m_NavigationAnchorWorldSpace_8();
HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * L_4 = __this->get_m_Module_11();
NullCheck(L_4);
float L_5 = HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline(L_4, /*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_6 = __this->get_address_of_m_NavigationNormalizedOffset_7();
float L_7 = L_6->get_x_2();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_8 = __this->get_address_of_m_NavigationNormalizedOffset_7();
float L_9 = L_8->get_y_3();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_10;
memset((&L_10), 0, sizeof(L_10));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_10), L_7, L_9, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_11 = Vector2_op_Multiply_m2E30A54E315810911DFC2E25C700757A68AC1F38(L_5, L_10, /*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_12 = HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB(__this, L_3, L_11, /*hidden argument*/NULL);
return L_12;
}
IL_0049:
{
// return EmulateMousePosition(m_TapAnchorWorldSpace, Vector2.zero);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_13 = __this->get_m_TapAnchorWorldSpace_9();
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_14 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_15 = HoloLensInput_EmulateMousePosition_mCE630E4BC37BE3EC3ED5D9707C5540F0F36DAEFB(__this, L_13, L_14, /*hidden argument*/NULL);
return L_15;
}
IL_005b:
{
// return GetGazeScreenPosition();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_16 = HoloLensInput_GetGazeScreenPosition_m9073CFAB427427D2CF716229652E87F8DC58C231(/*hidden argument*/NULL);
return L_16;
}
}
// UnityEngine.Vector2 UnityEngine.EventSystems.HoloLensInput::GetGestureScrollDelta()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput_GetGestureScrollDelta_m24FDE0BFC26D5173002FBABAD945914E206602B8_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return MouseEmulationMode.Navigation == m_MouseEmulationMode
// ? new Vector2(0.0f, m_NavigationNormalizedOffset.z)
// : Vector2.zero;
int32_t L_0 = __this->get_m_MouseEmulationMode_6();
if ((((int32_t)1) == ((int32_t)L_0)))
{
goto IL_000f;
}
}
{
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_1 = Vector2_get_zero_mFE0C3213BB698130D6C5247AB4B887A59074D0A8(/*hidden argument*/NULL);
return L_1;
}
IL_000f:
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * L_2 = __this->get_address_of_m_NavigationNormalizedOffset_7();
float L_3 = L_2->get_z_4();
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_4;
memset((&L_4), 0, sizeof(L_4));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_4), (0.0f), L_3, /*hidden argument*/NULL);
return L_4;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInput::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634 (HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInput__ctor_m029C51F216AAC03C235E01412E8F174E95D42634_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// private Vector3 m_NavigationNormalizedOffset = Vector3.zero;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
__this->set_m_NavigationNormalizedOffset_7(L_0);
// private Vector3 m_NavigationAnchorWorldSpace = Vector3.zero;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
__this->set_m_NavigationAnchorWorldSpace_8(L_1);
// private Vector3 m_TapAnchorWorldSpace = Vector3.zero;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Vector3_get_zero_m3CDDCAE94581DF3BB16C4B40A100E28E9C6649C2(/*hidden argument*/NULL);
__this->set_m_TapAnchorWorldSpace_9(L_2);
BaseInput__ctor_m097A1D35CC42538881FAF0E45AFF6FB974377F19(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Single UnityEngine.EventSystems.HoloLensInputModule::get_normalizedNavigationToScreenOffsetScalar()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// get { return m_NormalizedNavigationToScreenOffsetScalar; }
float L_0 = __this->get_m_NormalizedNavigationToScreenOffsetScalar_30();
return L_0;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::set_normalizedNavigationToScreenOffsetScalar(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_set_normalizedNavigationToScreenOffsetScalar_m576CEEC602DBE976D05B89E9256776C47D44DF49 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, float ___value0, const RuntimeMethod* method)
{
{
// set { m_NormalizedNavigationToScreenOffsetScalar = value; }
float L_0 = ___value0;
__this->set_m_NormalizedNavigationToScreenOffsetScalar_30(L_0);
// set { m_NormalizedNavigationToScreenOffsetScalar = value; }
return;
}
}
// System.Single UnityEngine.EventSystems.HoloLensInputModule::get_timeToPressOnTap()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// get { return m_TimeToPressOnTap; }
float L_0 = __this->get_m_TimeToPressOnTap_31();
return L_0;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::set_timeToPressOnTap(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_set_timeToPressOnTap_mA98569B88F970B41C62689206D2A6CD4DD3DD2C3 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, float ___value0, const RuntimeMethod* method)
{
{
// set { m_TimeToPressOnTap = value; }
float L_0 = ___value0;
__this->set_m_TimeToPressOnTap_31(L_0);
// set { m_TimeToPressOnTap = value; }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule__ctor_mC92DEA3EDD3097EEBEE5B3F1ACF0F3F9456E2DAE (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// private float m_NormalizedNavigationToScreenOffsetScalar = 500.0f;
__this->set_m_NormalizedNavigationToScreenOffsetScalar_30((500.0f));
// private float m_TimeToPressOnTap = 0.3f;
__this->set_m_TimeToPressOnTap_31((0.3f));
// protected HoloLensInputModule()
StandaloneInputModule__ctor_m53DF966585A2888088BF07BB7DDE26BA84BA67D0(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInputModule_Awake_m0F48A620040126693CDC656386383B668941B587_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// base.Awake();
UIBehaviour_Awake_m5DD9E48E9933AA28DAE1978B5FCC6B90BAF06FDC(__this, /*hidden argument*/NULL);
// m_HoloLensInput = GetComponent<HoloLensInput>();
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2(__this, /*hidden argument*/Component_GetComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_m698FB9682EE309CAAA265B29C21BF06A62F6C9B2_RuntimeMethod_var);
__this->set_m_HoloLensInput_32(L_0);
// if (!m_HoloLensInput)
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_1 = __this->get_m_HoloLensInput_32();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Implicit_m8B2A44B4B1406ED346D1AE6D962294FD58D0D534(L_1, /*hidden argument*/NULL);
if (L_2)
{
goto IL_0030;
}
}
{
// m_HoloLensInput = gameObject.AddComponent<HoloLensInput>();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_3 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(__this, /*hidden argument*/NULL);
NullCheck(L_3);
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_4 = GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B(L_3, /*hidden argument*/GameObject_AddComponent_TisHoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04_mF50CC95A955F7405B540971920DE4739BE47684B_RuntimeMethod_var);
__this->set_m_HoloLensInput_32(L_4);
}
IL_0030:
{
// m_InputOverride = m_HoloLensInput;
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_5 = __this->get_m_HoloLensInput_32();
((BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 *)__this)->set_m_InputOverride_8(L_5);
// }
return;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInputModule::IsModuleSupported()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (HoloLensInputModule_IsModuleSupported_mBAAC8841B1C755DBC0FB705C4A33E686B863D2A2_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return base.IsModuleSupported() && string.Equals(UnityEngine.XR.XRSettings.loadedDeviceName, "WindowsMR");
bool L_0 = StandaloneInputModule_IsModuleSupported_m44C18E994D6B97CDFBD841A9D7314B26B7AA340A(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_0018;
}
}
{
String_t* L_1 = XRSettings_get_loadedDeviceName_m952D46346306FD9477B13992E5797A85CCD3C98C(/*hidden argument*/NULL);
bool L_2 = String_Equals_m90EB651A751C3444BADBBD5401109CE05B3E1CFB(L_1, _stringLiteral0BA701B50A5948064432E087F10E47BBBB8F47F6, /*hidden argument*/NULL);
return L_2;
}
IL_0018:
{
return (bool)0;
}
}
// System.Boolean UnityEngine.EventSystems.HoloLensInputModule::ShouldActivateModule()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool HoloLensInputModule_ShouldActivateModule_mC48780B615E225A3BBD57789522FBE601EBCB950 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// return forceModuleActive || m_HasGestureToProcess || !m_HasBeenActivated;
bool L_0 = StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline(__this, /*hidden argument*/NULL);
if (L_0)
{
goto IL_001a;
}
}
{
bool L_1 = __this->get_m_HasGestureToProcess_34();
if (L_1)
{
goto IL_001a;
}
}
{
bool L_2 = __this->get_m_HasBeenActivated_33();
return (bool)((((int32_t)L_2) == ((int32_t)0))? 1 : 0);
}
IL_001a:
{
return (bool)1;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::ActivateModule()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_ActivateModule_m61441015A758E80F603BCEA33668EF15A3F6AD77 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// m_HasBeenActivated = true;
__this->set_m_HasBeenActivated_33((bool)1);
// base.ActivateModule();
StandaloneInputModule_ActivateModule_m75B8C7CF41074D98F23DBCBADBEC12204F101F04(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::UpdateModule()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_UpdateModule_mFCBE0C79226FECAD9A47F8A4AD51ED1F02A79BBE (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// m_HoloLensInput.UpdateInput();
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = __this->get_m_HoloLensInput_32();
NullCheck(L_0);
HoloLensInput_UpdateInput_m6731D6E86EB7A3FF3A1117D89C680811435BF85D(L_0, /*hidden argument*/NULL);
// base.UpdateModule();
StandaloneInputModule_UpdateModule_m6BE8C301BEB10BD653F0D0EEB6522E3A8F3221BA(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::ProcessDrag(UnityEngine.EventSystems.PointerEventData)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_ProcessDrag_mA9CED6438A86CE5B19AA3FC8811EB111104E43AB (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * ___pointerEvent0, const RuntimeMethod* method)
{
{
// if (m_HoloLensInput.AllowDrag())
HoloLensInput_t2642C1B91B5511A084B24C71E0B42BF97035FF04 * L_0 = __this->get_m_HoloLensInput_32();
NullCheck(L_0);
bool L_1 = HoloLensInput_AllowDrag_m629C213EC2A00C394A67A0989E437EB230A16E3D(L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0014;
}
}
{
// base.ProcessDrag(pointerEvent);
PointerEventData_tC18994283B7753E430E316A62D9E45BA6D644C63 * L_2 = ___pointerEvent0;
PointerInputModule_ProcessDrag_m2A544286EF20A04D6E42FFCFD0F73DD89F9614A2(__this, L_2, /*hidden argument*/NULL);
}
IL_0014:
{
// }
return;
}
}
// UnityEngine.GameObject UnityEngine.EventSystems.HoloLensInputModule::Internal_GetCurrentFocusedGameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * HoloLensInputModule_Internal_GetCurrentFocusedGameObject_mF8696D11EC99BA6CCAEEF50628ACF1D47D142DF8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// return GetCurrentFocusedGameObject();
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline(__this, /*hidden argument*/NULL);
return L_0;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::Internal_GestureNotifier()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_Internal_GestureNotifier_mE4D2AD4882814246FC24F56BFB06297DDD97B8A7 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// m_HasGestureToProcess = true;
__this->set_m_HasGestureToProcess_34((bool)1);
// }
return;
}
}
// System.Void UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GestureNotifier()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HoloLensInputModule_HoloLensInput_GestureNotifier_m312C815CC60A71B53A691F32A56FC8135759E6E8 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// }
return;
}
}
// UnityEngine.EventSystems.EventSystem UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetEventSystem()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * HoloLensInputModule_HoloLensInput_GetEventSystem_m91808F60323CDAE7DE8243F10985A1B2032AAEB0 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// return eventSystem;
EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * L_0 = BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline(__this, /*hidden argument*/NULL);
return L_0;
}
}
// System.Single UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetScreenOffsetScalar()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_HoloLensInput_GetScreenOffsetScalar_m0135136E7959863F4C1860CEA2C4205EB9BC520B (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// return normalizedNavigationToScreenOffsetScalar;
float L_0 = HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline(__this, /*hidden argument*/NULL);
return L_0;
}
}
// System.Single UnityEngine.EventSystems.HoloLensInputModule::HoloLensInput_GetTimeToPressOnTap()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float HoloLensInputModule_HoloLensInput_GetTimeToPressOnTap_mAE7710B28103A0038065D0E2290168EBCE21D308 (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// return timeToPressOnTap;
float L_0 = HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline(__this, /*hidden argument*/NULL);
return L_0;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParent()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SurfaceParent; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_SurfaceParent_7();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParent(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method)
{
{
// set { m_SurfaceParent = value; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0;
__this->set_m_SurfaceParent_7(L_0);
// set { m_SurfaceParent = value; }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_freezeUpdates()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_FreezeUpdates; }
bool L_0 = __this->get_m_FreezeUpdates_8();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_freezeUpdates(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_freezeUpdates_m71283A8642C61D3B281590D9DB68B99E19CA37F2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// set { m_FreezeUpdates = value; }
bool L_0 = ___value0;
__this->set_m_FreezeUpdates_8(L_0);
// set { m_FreezeUpdates = value; }
return;
}
}
// UnityEngine.XR.WSA.SpatialMappingBase_VolumeType UnityEngine.XR.WSA.SpatialMappingBase::get_volumeType()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_VolumeType; }
int32_t L_0 = __this->get_m_VolumeType_9();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_volumeType(UnityEngine.XR.WSA.SpatialMappingBase_VolumeType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_volumeType_mEBB8681679F9E6175DA61AA547953DFAE5D88E8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// set { m_VolumeType = value; }
int32_t L_0 = ___value0;
__this->set_m_VolumeType_9(L_0);
// set { m_VolumeType = value; }
return;
}
}
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_sphereRadius()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SphereRadius; }
float L_0 = __this->get_m_SphereRadius_10();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_sphereRadius(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_sphereRadius_mB80949A123DEA71B0D5DC8D9652524D5C526011C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method)
{
{
// set { m_SphereRadius = value; }
float L_0 = ___value0;
__this->set_m_SphereRadius_10(L_0);
// set { m_SphereRadius = value; }
return;
}
}
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_halfBoxExtents()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_HalfBoxExtents; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_m_HalfBoxExtents_11();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_halfBoxExtents(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_halfBoxExtents_m05B08C712E1FC96E29ACC2D4B23C6A1ED3450A33 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method)
{
{
// set { m_HalfBoxExtents = value; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0;
__this->set_m_HalfBoxExtents_11(L_0);
// set { m_HalfBoxExtents = value; }
return;
}
}
// UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::get_lodType()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_LodType; }
int32_t L_0 = __this->get_m_LodType_12();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lodType(UnityEngine.XR.WSA.SpatialMappingBase_LODType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lodType_mE15AE07981E0997DA01FB4FEFD988089301137D9 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// set { m_LodType = value; }
int32_t L_0 = ___value0;
__this->set_m_LodType_12(L_0);
// set { m_LodType = value; }
return;
}
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_numUpdatesBeforeRemoval()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_NumUpdatesBeforeRemoval; }
int32_t L_0 = __this->get_m_NumUpdatesBeforeRemoval_13();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_numUpdatesBeforeRemoval(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_numUpdatesBeforeRemoval_m7E148F9CA6DEBA1A3D91F7599DA082941AED41D9 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// set { m_NumUpdatesBeforeRemoval = value; }
int32_t L_0 = ___value0;
__this->set_m_NumUpdatesBeforeRemoval_13(L_0);
// set { m_NumUpdatesBeforeRemoval = value; }
return;
}
}
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_secondsBetweenUpdates()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SecondsBetweenUpdates; }
float L_0 = __this->get_m_SecondsBetweenUpdates_14();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_secondsBetweenUpdates(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_secondsBetweenUpdates_mA45FCEA50727DE86AE99BDEF275BC325366BC2AA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method)
{
{
// set { m_SecondsBetweenUpdates = value; }
float L_0 = ___value0;
__this->set_m_SecondsBetweenUpdates_14(L_0);
// set { m_SecondsBetweenUpdates = value; }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_bakePhysics()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_BakePhysics;
bool L_0 = __this->get_m_BakePhysics_15();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bakePhysics(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// m_BakePhysics = value;
bool L_0 = ___value0;
__this->set_m_BakePhysics_15(L_0);
// }
return;
}
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase::get_observerId()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected int observerId { get; set; }
int32_t L_0 = __this->get_U3CobserverIdU3Ek__BackingField_16();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_observerId(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// protected int observerId { get; set; }
int32_t L_0 = ___value0;
__this->set_U3CobserverIdU3Ek__BackingField_16(L_0);
return;
}
}
// UnityEngine.XR.WSA.SurfaceObserver UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObserver()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected SurfaceObserver surfaceObserver { get; set; }
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = __this->get_U3CsurfaceObserverU3Ek__BackingField_17();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObserver(UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method)
{
{
// protected SurfaceObserver surfaceObserver { get; set; }
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = ___value0;
__this->set_U3CsurfaceObserverU3Ek__BackingField_17(L_0);
return;
}
}
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceObjects()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Dictionary<int, Surface> surfaceObjects { get; set; }
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_U3CsurfaceObjectsU3Ek__BackingField_18();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceObjects(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method)
{
{
// protected Dictionary<int, Surface> surfaceObjects { get; set; }
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0;
__this->set_U3CsurfaceObjectsU3Ek__BackingField_18(L_0);
return;
}
}
// UnityEngine.Bounds UnityEngine.XR.WSA.SpatialMappingBase::get_bounds()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Bounds bounds { get; set; }
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = __this->get_U3CboundsU3Ek__BackingField_19();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_bounds(UnityEngine.Bounds)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method)
{
{
// protected Bounds bounds { get; set; }
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = ___value0;
__this->set_U3CboundsU3Ek__BackingField_19(L_0);
return;
}
}
// UnityEngine.Vector3 UnityEngine.XR.WSA.SpatialMappingBase::get_lastUpdatedObserverPosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Vector3 lastUpdatedObserverPosition { get; set; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_lastUpdatedObserverPosition(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method)
{
{
// protected Vector3 lastUpdatedObserverPosition { get; set; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0;
__this->set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(L_0);
return;
}
}
// UnityEngine.Camera UnityEngine.XR.WSA.SpatialMappingBase::get_selectedCamera()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Camera selectedCamera { get; set; }
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = __this->get_U3CselectedCameraU3Ek__BackingField_21();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_selectedCamera(UnityEngine.Camera)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method)
{
{
// protected Camera selectedCamera { get; set; }
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___value0;
__this->set_U3CselectedCameraU3Ek__BackingField_21(L_0);
return;
}
}
// System.Single UnityEngine.XR.WSA.SpatialMappingBase::get_nextSurfaceChangeUpdateTime()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected float nextSurfaceChangeUpdateTime { get; set; }
float L_0 = __this->get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_nextSurfaceChangeUpdateTime(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method)
{
{
// protected float nextSurfaceChangeUpdateTime { get; set; }
float L_0 = ___value0;
__this->set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(L_0);
return;
}
}
// System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface> UnityEngine.XR.WSA.SpatialMappingBase::get_pendingSurfacesForEviction()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_PendingSurfacesForEviction;
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_m_PendingSurfacesForEviction_23();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_pendingSurfacesForEviction(System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.XR.WSA.SpatialMappingBase_Surface>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_pendingSurfacesForEviction_m371E42A047ADBCF42AB6DB206EF93099564264AE (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method)
{
{
// m_PendingSurfacesForEviction = value;
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0;
__this->set_m_PendingSurfacesForEviction_23(L_0);
// }
return;
}
}
// System.Collections.Generic.List`1<System.Int32> UnityEngine.XR.WSA.SpatialMappingBase::get_surfacesToRemoveFromDict()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_SurfacesToRemoveFromDict;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = __this->get_m_SurfacesToRemoveFromDict_24();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfacesToRemoveFromDict(System.Collections.Generic.List`1<System.Int32>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfacesToRemoveFromDict_m11D7CF138798EB1D3BBB76ABD4E6509A6D30A7E0 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * ___value0, const RuntimeMethod* method)
{
{
// m_SurfacesToRemoveFromDict = value;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = ___value0;
__this->set_m_SurfacesToRemoveFromDict_24(L_0);
// }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::get_surfaceParentWasDynamicallyCreated()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_SurfaceParentWasDynamicallyCreated;
bool L_0 = __this->get_m_SurfaceParentWasDynamicallyCreated_25();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::set_surfaceParentWasDynamicallyCreated(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// m_SurfaceParentWasDynamicallyCreated = value;
bool L_0 = ___value0;
__this->set_m_SurfaceParentWasDynamicallyCreated_25(L_0);
// }
return;
}
}
// System.Int32[] UnityEngine.XR.WSA.SpatialMappingBase::get_lodToPcm()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return s_LodToPcm;
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_LodToPcm_26();
return L_0;
}
}
// UnityEngine.XR.WSA.SpatialMappingBase_LODType UnityEngine.XR.WSA.SpatialMappingBase::GetLODFromTPCM(System.Double)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8 (double ___trianglesPerCubicMeter0, const RuntimeMethod* method)
{
{
// if (trianglesPerCubicMeter >= 1999.0)
double L_0 = ___trianglesPerCubicMeter0;
if ((!(((double)L_0) >= ((double)(1999.0)))))
{
goto IL_000e;
}
}
{
// return LODType.High;
return (int32_t)(0);
}
IL_000e:
{
// else if (trianglesPerCubicMeter >= 749.0 && trianglesPerCubicMeter <= 751.0)
double L_1 = ___trianglesPerCubicMeter0;
if ((!(((double)L_1) >= ((double)(749.0)))))
{
goto IL_0028;
}
}
{
double L_2 = ___trianglesPerCubicMeter0;
if ((!(((double)L_2) <= ((double)(751.0)))))
{
goto IL_0028;
}
}
{
// return LODType.Medium;
return (int32_t)(1);
}
IL_0028:
{
// return LODType.Low;
return (int32_t)(2);
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Awake_m67B42E703C44CDBC08F7E193207CE23184A90052 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_Start_m63DC442935AE91EEDD3F0EA013E8CDC49B51E44B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// observerId = s_ObserverIdCounter++;
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
int32_t L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_ObserverIdCounter_6();
int32_t L_1 = L_0;
((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_ObserverIdCounter_6(((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)1)));
SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline(__this, L_1, /*hidden argument*/NULL);
// surfaceObjects = new Dictionary<int, Surface>();
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *)il2cpp_codegen_object_new(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var);
Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA(L_2, /*hidden argument*/Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var);
SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline(__this, L_2, /*hidden argument*/NULL);
// selectedCamera = Camera.main;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_3 = Camera_get_main_m9256A9F84F92D7ED73F3E6C4E2694030AD8B61FA(/*hidden argument*/NULL);
SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline(__this, L_3, /*hidden argument*/NULL);
// nextSurfaceChangeUpdateTime = float.MinValue;
SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline(__this, (-(std::numeric_limits<float>::max)()), /*hidden argument*/NULL);
// surfaceObserver = new SurfaceObserver();
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_4 = (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)il2cpp_codegen_object_new(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864_il2cpp_TypeInfo_var);
SurfaceObserver__ctor_mBDC4FE3EC359DB3F2481186A400EB613B9C63E90(L_4, /*hidden argument*/NULL);
SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline(__this, L_4, /*hidden argument*/NULL);
// SpatialMappingContext.Instance.RegisterComponent(this, OnSurfaceDataReady, TryGetHighestPriorityRequest, surfaceObserver);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_5 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL);
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_6 = (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 *)il2cpp_codegen_object_new(SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592_il2cpp_TypeInfo_var);
SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B(L_6, __this, (intptr_t)((intptr_t)GetVirtualMethodInfo(__this, 12)), /*hidden argument*/NULL);
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_7 = (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 *)il2cpp_codegen_object_new(GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6_il2cpp_TypeInfo_var);
GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47(L_7, __this, (intptr_t)((intptr_t)GetVirtualMethodInfo(__this, 14)), /*hidden argument*/NULL);
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_8 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL);
NullCheck(L_5);
SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4(L_5, __this, L_6, L_7, L_8, /*hidden argument*/NULL);
// bounds = new Bounds(this.transform.position, halfBoxExtents);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_9 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_9);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_9, /*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_11 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL);
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_12;
memset((&L_12), 0, sizeof(L_12));
Bounds__ctor_m294E77A20EC1A3E96985FE1A925CB271D1B5266D((&L_12), L_10, L_11, /*hidden argument*/NULL);
SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline(__this, L_12, /*hidden argument*/NULL);
// UpdatePosition();
SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnEnable()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_OnEnable_m0AE105AB92958A9BDAB9089065C05341B5BEA907_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (surfaceObjects != null && surfaceObjects.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_006b;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_2) <= ((int32_t)0)))
{
goto IL_006b;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_4;
}
IL_0022:
try
{ // begin try (depth: 1)
{
goto IL_0052;
}
IL_0024:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_5;
// if (kvp.Value.gameObject != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_6);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_8 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_0052;
}
}
IL_0040:
{
// kvp.Value.gameObject.SetActive(true);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_9);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL);
NullCheck(L_10);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_10, (bool)1, /*hidden argument*/NULL);
}
IL_0052:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_11 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_11)
{
goto IL_0024;
}
}
IL_005b:
{
IL2CPP_LEAVE(0x6B, FINALLY_005d);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_005d;
}
FINALLY_005d:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(93)
} // end finally (depth: 1)
IL2CPP_CLEANUP(93)
{
IL2CPP_JUMP_TBL(0x6B, IL_006b)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_006b:
{
// if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
if (!L_12)
{
goto IL_00f6;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_13);
int32_t L_14 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_13, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_14) <= ((int32_t)0)))
{
goto IL_00f6;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_15);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_16;
}
IL_0090:
try
{ // begin try (depth: 1)
{
goto IL_00dd;
}
IL_0092:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_17;
// if (kvp.Value.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_18);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_19 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_18, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_20)
{
goto IL_00cb;
}
}
IL_00ae:
{
// Debug.LogWarning(string.Format("Can not activate the surface id \"{0}\" because its GameObject is null.", kvp.Key));
int32_t L_21 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var);
int32_t L_22 = L_21;
RuntimeObject * L_23 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_22);
String_t* L_24 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral31CF5C222B7921A07D0A9EF275277FC32788832F, L_23, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568(L_24, /*hidden argument*/NULL);
// continue;
goto IL_00dd;
}
IL_00cb:
{
// kvp.Value.gameObject.SetActive(true);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_25);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_26 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_25, /*hidden argument*/NULL);
NullCheck(L_26);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_26, (bool)1, /*hidden argument*/NULL);
}
IL_00dd:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
bool L_27 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_27)
{
goto IL_0092;
}
}
IL_00e6:
{
IL2CPP_LEAVE(0xF6, FINALLY_00e8);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00e8;
}
FINALLY_00e8:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(232)
} // end finally (depth: 1)
IL2CPP_CLEANUP(232)
{
IL2CPP_JUMP_TBL(0xF6, IL_00f6)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00f6:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDisable()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_OnDisable_mB17047369711C050E2A6C4725FFE888A4530A32D_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (surfaceObjects != null && surfaceObjects.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_006b;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_2) <= ((int32_t)0)))
{
goto IL_006b;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_4;
}
IL_0022:
try
{ // begin try (depth: 1)
{
goto IL_0052;
}
IL_0024:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_5;
// if (kvp.Value.gameObject != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_6);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_8 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_8)
{
goto IL_0052;
}
}
IL_0040:
{
// kvp.Value.gameObject.SetActive(false);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_9);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL);
NullCheck(L_10);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_10, (bool)0, /*hidden argument*/NULL);
}
IL_0052:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_11 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_11)
{
goto IL_0024;
}
}
IL_005b:
{
IL2CPP_LEAVE(0x6B, FINALLY_005d);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_005d;
}
FINALLY_005d:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(93)
} // end finally (depth: 1)
IL2CPP_CLEANUP(93)
{
IL2CPP_JUMP_TBL(0x6B, IL_006b)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_006b:
{
// if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
if (!L_12)
{
goto IL_00d6;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_13);
int32_t L_14 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_13, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_14) <= ((int32_t)0)))
{
goto IL_00d6;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_15);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_16;
}
IL_008d:
try
{ // begin try (depth: 1)
{
goto IL_00bd;
}
IL_008f:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_17;
// if (kvp.Value.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_18);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_19 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_18, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_20)
{
goto IL_00bd;
}
}
IL_00ab:
{
// kvp.Value.gameObject.SetActive(false);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_21);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_22 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_21, /*hidden argument*/NULL);
NullCheck(L_22);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_22, (bool)0, /*hidden argument*/NULL);
}
IL_00bd:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
bool L_23 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_23)
{
goto IL_008f;
}
}
IL_00c6:
{
IL2CPP_LEAVE(0xD6, FINALLY_00c8);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00c8;
}
FINALLY_00c8:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(200)
} // end finally (depth: 1)
IL2CPP_CLEANUP(200)
{
IL2CPP_JUMP_TBL(0xD6, IL_00d6)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00d6:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDestroy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// SpatialMappingContext.Instance.DeregisterComponent(this);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL);
NullCheck(L_0);
SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF(L_0, __this, /*hidden argument*/NULL);
// if (surfaceObjects != null && surfaceObjects.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0068;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_2);
int32_t L_3 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_2, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_3) <= ((int32_t)0)))
{
goto IL_0068;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_4);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_5;
}
IL_002d:
try
{ // begin try (depth: 1)
{
goto IL_0044;
}
IL_002f:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_6;
// DestroySurface(kvp.Value);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_7);
}
IL_0044:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_8 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_8)
{
goto IL_002f;
}
}
IL_004d:
{
IL2CPP_LEAVE(0x5D, FINALLY_004f);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_004f;
}
FINALLY_004f:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(79)
} // end finally (depth: 1)
IL2CPP_CLEANUP(79)
{
IL2CPP_JUMP_TBL(0x5D, IL_005d)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_005d:
{
// surfaceObjects.Clear();
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_9 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_9);
Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C(L_9, /*hidden argument*/Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var);
}
IL_0068:
{
// if (pendingSurfacesForEviction != null && pendingSurfacesForEviction.Count > 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_10 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
if (!L_10)
{
goto IL_00d9;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_11 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_11);
int32_t L_12 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_11, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if ((((int32_t)L_12) <= ((int32_t)0)))
{
goto IL_00d9;
}
}
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_13 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_13);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_14 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_13, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_14;
}
IL_008a:
try
{ // begin try (depth: 1)
{
goto IL_00b5;
}
IL_008c:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_15 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_15;
// if (kvp.Value.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_16);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_17 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_16, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_18 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_18)
{
goto IL_00b5;
}
}
IL_00a8:
{
// DestroySurface(kvp.Value);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_19);
}
IL_00b5:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
bool L_20 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_20)
{
goto IL_008c;
}
}
IL_00be:
{
IL2CPP_LEAVE(0xCE, FINALLY_00c0);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00c0;
}
FINALLY_00c0:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(192)
} // end finally (depth: 1)
IL2CPP_CLEANUP(192)
{
IL2CPP_JUMP_TBL(0xCE, IL_00ce)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00ce:
{
// pendingSurfacesForEviction.Clear();
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_21 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_21);
Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C(L_21, /*hidden argument*/Dictionary_2_Clear_m8C14C429A65F4126A9A29B3EF82A1487DE26730C_RuntimeMethod_var);
}
IL_00d9:
{
// if (surfaceParentWasDynamicallyCreated)
bool L_22 = SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline(__this, /*hidden argument*/NULL);
if (!L_22)
{
goto IL_00f3;
}
}
{
// Destroy(surfaceParent);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_23 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_23, /*hidden argument*/NULL);
// surfaceParent = null;
SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline(__this, (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL, /*hidden argument*/NULL);
}
IL_00f3:
{
// surfaceObserver.Dispose();
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_24 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL);
NullCheck(L_24);
SurfaceObserver_Dispose_mA842C19181453E384E1BCE368468F8762CBB9B1E(L_24, /*hidden argument*/NULL);
// surfaceObserver = null;
SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline(__this, (SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)NULL, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_Update_m2A9E883E6650605A6615668798362076DE627665_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (Vector3.SqrMagnitude(lastUpdatedObserverPosition - this.transform.position) > s_MovementUpdateThresholdSqr)
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline(__this, /*hidden argument*/NULL);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_1 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_1);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_0, L_2, /*hidden argument*/NULL);
float L_4 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
float L_5 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_MovementUpdateThresholdSqr_4();
if ((!(((float)L_4) > ((float)L_5))))
{
goto IL_0028;
}
}
{
// UpdatePosition();
SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613(__this, /*hidden argument*/NULL);
}
IL_0028:
{
// if (!freezeUpdates)
bool L_6 = SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline(__this, /*hidden argument*/NULL);
if (L_6)
{
goto IL_0076;
}
}
{
// if (Time.time >= nextSurfaceChangeUpdateTime)
float L_7 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
float L_8 = SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline(__this, /*hidden argument*/NULL);
if ((!(((float)L_7) >= ((float)L_8))))
{
goto IL_0076;
}
}
{
// surfaceObserver.Update(OnSurfaceChanged);
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_9 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL);
SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 * L_10 = (SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1 *)il2cpp_codegen_object_new(SurfaceChangedDelegate_t44685763A08766AF68D59B3C9FE8B5370386B3A1_il2cpp_TypeInfo_var);
SurfaceChangedDelegate__ctor_mC4E2CDAB64B92D5032E1AA39880F73F045D9B714(L_10, __this, (intptr_t)((intptr_t)SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A_RuntimeMethod_var), /*hidden argument*/NULL);
NullCheck(L_9);
SurfaceObserver_Update_m08AD5357474ED266F8242C2CE6B42BCC9C131A29(L_9, L_10, /*hidden argument*/NULL);
// ProcessEvictedObjects();
SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4(__this, /*hidden argument*/NULL);
// nextSurfaceChangeUpdateTime = Time.time + secondsBetweenUpdates;
float L_11 = Time_get_time_m7863349C8845BBA36629A2B3F8EF1C3BEA350FD8(/*hidden argument*/NULL);
float L_12 = SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline(__this, /*hidden argument*/NULL);
SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline(__this, ((float)il2cpp_codegen_add((float)L_11, (float)L_12)), /*hidden argument*/NULL);
// SpatialMappingContext.Instance.ComponentHasDataRequests();
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_13 = SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline(/*hidden argument*/NULL);
NullCheck(L_13);
SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67(L_13, /*hidden argument*/NULL);
}
IL_0076:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdatePosition()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdatePosition_m03871BCE86A0E5912CB8DAE5174F807FEBA2C613 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// if (volumeType == VolumeType.Sphere)
int32_t L_0 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL);
if (L_0)
{
goto IL_0026;
}
}
{
// surfaceObserver.SetVolumeAsSphere(this.transform.position, sphereRadius);
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_1 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_2 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_2);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_2, /*hidden argument*/NULL);
float L_4 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
SurfaceObserver_SetVolumeAsSphere_m8CC38FF7980EDDCC4D4B9FDB312DB622325BFD70(L_1, L_3, L_4, /*hidden argument*/NULL);
// }
goto IL_0078;
}
IL_0026:
{
// else if (volumeType == VolumeType.AxisAlignedBox)
int32_t L_5 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL);
if ((!(((uint32_t)L_5) == ((uint32_t)1))))
{
goto IL_0078;
}
}
{
// surfaceObserver.SetVolumeAsAxisAlignedBox(this.transform.position, halfBoxExtents);
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_6 = SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline(__this, /*hidden argument*/NULL);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_7 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_7);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_8 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_7, /*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL);
NullCheck(L_6);
SurfaceObserver_SetVolumeAsAxisAlignedBox_m26D27F3DBEC734594B04C75A37CE28017CB47340(L_6, L_8, L_9, /*hidden argument*/NULL);
// Bounds tempBounds = bounds;
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_10 = SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline(__this, /*hidden argument*/NULL);
V_0 = L_10;
// tempBounds.center = this.transform.position;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_11 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_11);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_12 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_11, /*hidden argument*/NULL);
Bounds_set_center_mAD29DD80FD631F83AF4E7558BB27A0398E8FD841((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_12, /*hidden argument*/NULL);
// tempBounds.extents = halfBoxExtents;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_13 = SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline(__this, /*hidden argument*/NULL);
Bounds_set_extents_mC83719146B06D0575A160CDDE9997202A1192B35((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_13, /*hidden argument*/NULL);
// bounds = tempBounds;
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_14 = V_0;
SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline(__this, L_14, /*hidden argument*/NULL);
}
IL_0078:
{
// lastUpdatedObserverPosition = this.transform.position;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_15 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_15);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_16 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_15, /*hidden argument*/NULL);
SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline(__this, L_16, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnSurfaceChanged(UnityEngine.XR.WSA.SurfaceId,UnityEngine.XR.WSA.SurfaceChange,UnityEngine.Bounds,System.DateTime)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnSurfaceChanged_m8DF08A2DABB49D3C56628EF2E199D128A50F3E3A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, int32_t ___changeType1, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___bounds2, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime3, const RuntimeMethod* method)
{
{
// switch (changeType)
int32_t L_0 = ___changeType1;
if ((!(((uint32_t)L_0) > ((uint32_t)1))))
{
goto IL_0009;
}
}
{
int32_t L_1 = ___changeType1;
if ((((int32_t)L_1) == ((int32_t)2)))
{
goto IL_0019;
}
}
{
return;
}
IL_0009:
{
// OnAddOrUpdateSurface(surfaceId, updateTime, bakePhysics);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = ___surfaceId0;
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_3 = ___updateTime3;
bool L_4 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(__this, /*hidden argument*/NULL);
SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A(__this, L_2, L_3, L_4, /*hidden argument*/NULL);
// break;
return;
}
IL_0019:
{
// OnRemoveSurface(surfaceId);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_5 = ___surfaceId0;
SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134(__this, L_5, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnAddOrUpdateSurface(UnityEngine.XR.WSA.SurfaceId,System.DateTime,System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___updateTime1, bool ___bakePhysics2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_OnAddOrUpdateSurface_m88092554E531DD3FEF57CE0272920428FFF44A8A_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_1;
memset((&V_1), 0, sizeof(V_1));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_2;
memset((&V_2), 0, sizeof(V_2));
{
// Surface surface = null;
V_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)NULL;
// if (pendingSurfacesForEviction.ContainsKey(surfaceId.handle))
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_1 = ___surfaceId0;
int32_t L_2 = L_1.get_handle_0();
NullCheck(L_0);
bool L_3 = Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5(L_0, L_2, /*hidden argument*/Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var);
if (!L_3)
{
goto IL_004b;
}
}
{
// surfaceObjects[surfaceId.handle] = pendingSurfacesForEviction[surfaceId.handle];
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_5 = ___surfaceId0;
int32_t L_6 = L_5.get_handle_0();
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_7 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_8 = ___surfaceId0;
int32_t L_9 = L_8.get_handle_0();
NullCheck(L_7);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC(L_7, L_9, /*hidden argument*/Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var);
NullCheck(L_4);
Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686(L_4, L_6, L_10, /*hidden argument*/Dictionary_2_set_Item_m4EF301E32DD6BA510761DF9393AB9EA87C5CB686_RuntimeMethod_var);
// pendingSurfacesForEviction.Remove(surfaceId.handle);
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_11 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_12 = ___surfaceId0;
int32_t L_13 = L_12.get_handle_0();
NullCheck(L_11);
Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_11, L_13, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var);
// }
goto IL_0087;
}
IL_004b:
{
// else if (!surfaceObjects.ContainsKey(surfaceId.handle))
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_14 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_15 = ___surfaceId0;
int32_t L_16 = L_15.get_handle_0();
NullCheck(L_14);
bool L_17 = Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5(L_14, L_16, /*hidden argument*/Dictionary_2_ContainsKey_mBF346AD0DE2B4AAF76D9B86752886750310E5BF5_RuntimeMethod_var);
if (L_17)
{
goto IL_0087;
}
}
{
// surface = CreateSurface(surfaceId);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_18 = ___surfaceId0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C(__this, L_18, /*hidden argument*/NULL);
V_0 = L_19;
// surface.surfaceData = new SurfaceData();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0;
il2cpp_codegen_initobj((&V_2), sizeof(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = V_2;
NullCheck(L_20);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_20, L_21, /*hidden argument*/NULL);
// surfaceObjects.Add(surfaceId.handle, surface);
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_22 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_23 = ___surfaceId0;
int32_t L_24 = L_23.get_handle_0();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_0;
NullCheck(L_22);
Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53(L_22, L_24, L_25, /*hidden argument*/Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var);
}
IL_0087:
{
// if (surface == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = V_0;
if (L_26)
{
goto IL_009c;
}
}
{
// surface = surfaceObjects[surfaceId.handle];
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_27 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_28 = ___surfaceId0;
int32_t L_29 = L_28.get_handle_0();
NullCheck(L_27);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC(L_27, L_29, /*hidden argument*/Dictionary_2_get_Item_mC60ADE19B714705018FBA93812895B2620BBEDEC_RuntimeMethod_var);
V_0 = L_30;
}
IL_009c:
{
// SurfaceData tempSurfaceData = surface.surfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_31 = V_0;
NullCheck(L_31);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_32 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_31, /*hidden argument*/NULL);
V_1 = L_32;
// tempSurfaceData.id = surfaceId;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_33 = ___surfaceId0;
(&V_1)->set_id_0(L_33);
// tempSurfaceData.bakeCollider = bakePhysics;
bool L_34 = ___bakePhysics2;
(&V_1)->set_bakeCollider_5(L_34);
// tempSurfaceData.trianglesPerCubicMeter = lodToPcm[(int)lodType];
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_35 = SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline(/*hidden argument*/NULL);
int32_t L_36 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(__this, /*hidden argument*/NULL);
NullCheck(L_35);
int32_t L_37 = L_36;
int32_t L_38 = (L_35)->GetAt(static_cast<il2cpp_array_size_t>(L_37));
(&V_1)->set_trianglesPerCubicMeter_4((((float)((float)L_38))));
// surface.surfaceData = tempSurfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_39 = V_0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_40 = V_1;
NullCheck(L_39);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_39, L_40, /*hidden argument*/NULL);
// surface.awaitingBake = true;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_41 = V_0;
NullCheck(L_41);
Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_41, (bool)1, /*hidden argument*/NULL);
// surface.updateTime = updateTime;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_42 = V_0;
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_43 = ___updateTime1;
NullCheck(L_42);
Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline(L_42, L_43, /*hidden argument*/NULL);
// AddRequiredComponentsForBaking(surface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_44 = V_0;
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(10 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_44);
// }
return;
}
}
// UnityEngine.XR.WSA.SpatialMappingBase_Surface UnityEngine.XR.WSA.SpatialMappingBase::CreateSurface(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_CreateSurface_m4B108724636C35394AE9D686FCB8C39517C6671C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// Surface surface = new Surface();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)il2cpp_codegen_object_new(Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D_il2cpp_TypeInfo_var);
Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01(L_0, /*hidden argument*/NULL);
// surface.surfaceId = surfaceId;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = L_0;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = ___surfaceId0;
NullCheck(L_1);
Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline(L_1, L_2, /*hidden argument*/NULL);
// surface.awaitingBake = false;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = L_1;
NullCheck(L_3);
Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_3, (bool)0, /*hidden argument*/NULL);
// return surface;
return L_3;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::CloneBakedComponents(UnityEngine.XR.WSA.SurfaceData,UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___target1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (target == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___target1;
if (L_0)
{
goto IL_0004;
}
}
{
// return;
return;
}
IL_0004:
{
// if (bakedData.outputMesh != null && target.meshFilter != null)
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData0;
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_2 = L_1.get_outputMesh_1();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0046;
}
}
{
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___target1;
NullCheck(L_4);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_5 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_4, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_6 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_5, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_6)
{
goto IL_0046;
}
}
{
// Destroy(target.meshFilter.mesh);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___target1;
NullCheck(L_7);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_8 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_7, /*hidden argument*/NULL);
NullCheck(L_8);
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_9 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_8, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_9, /*hidden argument*/NULL);
// target.meshFilter.mesh = bakedData.outputMesh.sharedMesh;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___target1;
NullCheck(L_10);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_11 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_10, /*hidden argument*/NULL);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_12 = ___bakedData0;
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_13 = L_12.get_outputMesh_1();
NullCheck(L_13);
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_14 = MeshFilter_get_sharedMesh_mC076FD5461BFBBAD3BE49D25263CF140700D9902(L_13, /*hidden argument*/NULL);
NullCheck(L_11);
MeshFilter_set_mesh_mA18AA96C75CC91CF0917BA1F437626499FAAF496(L_11, L_14, /*hidden argument*/NULL);
}
IL_0046:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// if (surfaceParent == null)
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0035;
}
}
{
// surfaceParent = new GameObject(string.Format("Surface Parent{0}", observerId));
int32_t L_2 = SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline(__this, /*hidden argument*/NULL);
int32_t L_3 = L_2;
RuntimeObject * L_4 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_3);
String_t* L_5 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralEB6EF0B99606BAD040095156CE2B1FAAC0C59C6A, L_4, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var);
GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_6, L_5, /*hidden argument*/NULL);
SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline(__this, L_6, /*hidden argument*/NULL);
// surfaceParentWasDynamicallyCreated = true;
SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline(__this, (bool)1, /*hidden argument*/NULL);
}
IL_0035:
{
// if (surface.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___surface0;
NullCheck(L_7);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_008e;
}
}
{
// surface.gameObject = new GameObject(string.Format("spatial-mapping-surface{0}_{1}", observerId, surface.surfaceId.handle));
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0;
int32_t L_11 = SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline(__this, /*hidden argument*/NULL);
int32_t L_12 = L_11;
RuntimeObject * L_13 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_12);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_14 = ___surface0;
NullCheck(L_14);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_15 = Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline(L_14, /*hidden argument*/NULL);
int32_t L_16 = L_15.get_handle_0();
int32_t L_17 = L_16;
RuntimeObject * L_18 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_17);
String_t* L_19 = String_Format_m19325298DBC61AAC016C16F7B3CF97A8A3DEA34A(_stringLiteral05C07D1FCAF258FA9A5BB24E01F6316B3F11BE63, L_13, L_18, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_20 = (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)il2cpp_codegen_object_new(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_il2cpp_TypeInfo_var);
GameObject__ctor_mBB454E679AD9CF0B84D3609A01E6A9753ACF4686(L_20, L_19, /*hidden argument*/NULL);
NullCheck(L_10);
Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline(L_10, L_20, /*hidden argument*/NULL);
// surface.gameObject.transform.parent = surfaceParent.transform;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = ___surface0;
NullCheck(L_21);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_22 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_21, /*hidden argument*/NULL);
NullCheck(L_22);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_23 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_22, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_24 = SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline(__this, /*hidden argument*/NULL);
NullCheck(L_24);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_25 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_24, /*hidden argument*/NULL);
NullCheck(L_23);
Transform_set_parent_m65B8E4660B2C554069C57A957D9E55FECA7AA73E(L_23, L_25, /*hidden argument*/NULL);
}
IL_008e:
{
// if (surface.meshFilter == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = ___surface0;
NullCheck(L_26);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_27 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_26, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_28 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_27, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_28)
{
goto IL_00cc;
}
}
{
// surface.meshFilter = surface.gameObject.GetComponent<MeshFilter>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_29 = ___surface0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = ___surface0;
NullCheck(L_30);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_31 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_30, /*hidden argument*/NULL);
NullCheck(L_31);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_32 = GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4(L_31, /*hidden argument*/GameObject_GetComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_mD1BA4FFEB800AB3D102141CD0A0ECE237EA70FB4_RuntimeMethod_var);
NullCheck(L_29);
Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline(L_29, L_32, /*hidden argument*/NULL);
// if (surface.meshFilter == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_33 = ___surface0;
NullCheck(L_33);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_34 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_33, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_35 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_34, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_35)
{
goto IL_00cc;
}
}
{
// surface.meshFilter = surface.gameObject.AddComponent<MeshFilter>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_36 = ___surface0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_37 = ___surface0;
NullCheck(L_37);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_38 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_37, /*hidden argument*/NULL);
NullCheck(L_38);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_39 = GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4(L_38, /*hidden argument*/GameObject_AddComponent_TisMeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0_m98AEA1EDDC59492203D06FA2912152C37C4164E4_RuntimeMethod_var);
NullCheck(L_36);
Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline(L_36, L_39, /*hidden argument*/NULL);
}
IL_00cc:
{
// SurfaceData tempSurfaceData = surface.surfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_40 = ___surface0;
NullCheck(L_40);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_41 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_40, /*hidden argument*/NULL);
V_0 = L_41;
// tempSurfaceData.outputMesh = surface.meshFilter;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_42 = ___surface0;
NullCheck(L_42);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_43 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_42, /*hidden argument*/NULL);
(&V_0)->set_outputMesh_1(L_43);
// if (surface.worldAnchor == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_44 = ___surface0;
NullCheck(L_44);
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_45 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_44, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_46 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_45, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_46)
{
goto IL_011e;
}
}
{
// surface.worldAnchor = surface.gameObject.GetComponent<WorldAnchor>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_47 = ___surface0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_48 = ___surface0;
NullCheck(L_48);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_49 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_48, /*hidden argument*/NULL);
NullCheck(L_49);
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_50 = GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971(L_49, /*hidden argument*/GameObject_GetComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_mEC8104A64D5255720AC2B56454CD4B573B4B2971_RuntimeMethod_var);
NullCheck(L_47);
Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline(L_47, L_50, /*hidden argument*/NULL);
// if (surface.worldAnchor == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_51 = ___surface0;
NullCheck(L_51);
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_52 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_51, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_53 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_52, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_53)
{
goto IL_011e;
}
}
{
// surface.worldAnchor = surface.gameObject.AddComponent<WorldAnchor>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_54 = ___surface0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_55 = ___surface0;
NullCheck(L_55);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_56 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_55, /*hidden argument*/NULL);
NullCheck(L_56);
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_57 = GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF(L_56, /*hidden argument*/GameObject_AddComponent_TisWorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE_m41101CD1505A6B6B9717C15FACAEE0DD4D1E9CEF_RuntimeMethod_var);
NullCheck(L_54);
Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline(L_54, L_57, /*hidden argument*/NULL);
}
IL_011e:
{
// tempSurfaceData.outputAnchor = surface.worldAnchor;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_58 = ___surface0;
NullCheck(L_58);
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_59 = Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline(L_58, /*hidden argument*/NULL);
(&V_0)->set_outputAnchor_2(L_59);
// surface.surfaceData = tempSurfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_60 = ___surface0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_61 = V_0;
NullCheck(L_60);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_60, L_61, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnRemoveSurface(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___surfaceId0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_OnRemoveSurface_m170B065EDEEE321145D9AFE0FDE9C3202F63B134_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL;
{
// if (surfaceObjects == null || surfaceObjects.Count == 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_0015;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if (L_2)
{
goto IL_0016;
}
}
IL_0015:
{
// return;
return;
}
IL_0016:
{
// if (!surfaceObjects.TryGetValue(surfaceId.handle, out sd))
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_4 = ___surfaceId0;
int32_t L_5 = L_4.get_handle_0();
NullCheck(L_3);
bool L_6 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_3, L_5, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var);
if (L_6)
{
goto IL_0046;
}
}
{
// Debug.LogWarning(string.Format("Can not remove the surface id \"{0}\" because it is not an active surface.", surfaceId.handle));
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_7 = ___surfaceId0;
int32_t L_8 = L_7.get_handle_0();
int32_t L_9 = L_8;
RuntimeObject * L_10 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_9);
String_t* L_11 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral19EA9A5EB531CE393DCA73F73B60048CF49D5D7E, L_10, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogWarning_m37338644DC81F640CCDFEAE35A223F0E965F0568(L_11, /*hidden argument*/NULL);
// return;
return;
}
IL_0046:
{
// surfaceObjects.Remove(surfaceId.handle);
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_12 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_13 = ___surfaceId0;
int32_t L_14 = L_13.get_handle_0();
NullCheck(L_12);
Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_12, L_14, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var);
// if (numUpdatesBeforeRemoval < 1)
int32_t L_15 = SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline(__this, /*hidden argument*/NULL);
if ((((int32_t)L_15) >= ((int32_t)1)))
{
goto IL_0069;
}
}
{
// DestroySurface(sd);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = V_0;
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_16);
// return;
return;
}
IL_0069:
{
// OnBeginSurfaceEviction(ShouldRemainActiveWhileBeingRemoved(sd), sd);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_17 = V_0;
bool L_18 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_17, /*hidden argument*/NULL);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0;
VirtActionInvoker2< bool, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(11 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_18, L_19);
// sd.remainingUpdatesToLive = numUpdatesBeforeRemoval + 1;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0;
int32_t L_21 = SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline(__this, /*hidden argument*/NULL);
NullCheck(L_20);
Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_20, ((int32_t)il2cpp_codegen_add((int32_t)L_21, (int32_t)1)), /*hidden argument*/NULL);
// pendingSurfacesForEviction.Add(surfaceId.handle, sd);
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_22 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_23 = ___surfaceId0;
int32_t L_24 = L_23.get_handle_0();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_0;
NullCheck(L_22);
Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53(L_22, L_24, L_25, /*hidden argument*/Dictionary_2_Add_m51E5F5D99F0868870A425800BA4F64A79B8D0A53_RuntimeMethod_var);
// }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::ShouldRemainActiveWhileBeingRemoved(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL;
bool V_1 = false;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * V_2 = NULL;
{
// if (surface.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
NullCheck(L_0);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0010;
}
}
{
// return false;
return (bool)0;
}
IL_0010:
{
// GameObject mainCameraGameObject = selectedCamera.gameObject;
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_3 = SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_3, /*hidden argument*/NULL);
V_0 = L_4;
// bool parentedToCamera = surface.gameObject == mainCameraGameObject;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0;
NullCheck(L_5);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_5, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_8 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_6, L_7, /*hidden argument*/NULL);
V_1 = L_8;
// Transform currentTransform = surface.gameObject.transform.parent;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = ___surface0;
NullCheck(L_9);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_9, /*hidden argument*/NULL);
NullCheck(L_10);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_11 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_10, /*hidden argument*/NULL);
NullCheck(L_11);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_12 = Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403(L_11, /*hidden argument*/NULL);
V_2 = L_12;
goto IL_0055;
}
IL_003c:
{
// if (currentTransform.gameObject == mainCameraGameObject)
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_13 = V_2;
NullCheck(L_13);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_14 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_13, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_15 = V_0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_16 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_14, L_15, /*hidden argument*/NULL);
if (!L_16)
{
goto IL_004e;
}
}
{
// parentedToCamera = true;
V_1 = (bool)1;
// break;
goto IL_0061;
}
IL_004e:
{
// currentTransform = currentTransform.parent;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_17 = V_2;
NullCheck(L_17);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_18 = Transform_get_parent_m8FA24E38A1FA29D90CBF3CDC9F9F017C65BB3403(L_17, /*hidden argument*/NULL);
V_2 = L_18;
}
IL_0055:
{
// while (!parentedToCamera && currentTransform != null)
bool L_19 = V_1;
if (L_19)
{
goto IL_0061;
}
}
{
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_20 = V_2;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_21 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_20, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_21)
{
goto IL_003c;
}
}
IL_0061:
{
// if (parentedToCamera == true)
bool L_22 = V_1;
if (!L_22)
{
goto IL_0066;
}
}
{
// return false;
return (bool)0;
}
IL_0066:
{
// if (BoundsContains(surface.gameObject.transform.position))
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = ___surface0;
NullCheck(L_23);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_24 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_23, /*hidden argument*/NULL);
NullCheck(L_24);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_25 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_24, /*hidden argument*/NULL);
NullCheck(L_25);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_26 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_25, /*hidden argument*/NULL);
bool L_27 = SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C(__this, L_26, /*hidden argument*/NULL);
if (!L_27)
{
goto IL_0080;
}
}
{
// return false;
return (bool)0;
}
IL_0080:
{
// return true;
return (bool)1;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::BoundsContains(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// if (volumeType == VolumeType.Sphere)
int32_t L_0 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL);
if (L_0)
{
goto IL_002f;
}
}
{
// if (Vector3.SqrMagnitude(position - this.transform.position) <= sphereRadius * sphereRadius)
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = ___position0;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_2 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_2);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_2, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_4 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_1, L_3, /*hidden argument*/NULL);
float L_5 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_4, /*hidden argument*/NULL);
float L_6 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL);
float L_7 = SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline(__this, /*hidden argument*/NULL);
if ((!(((float)L_5) <= ((float)((float)il2cpp_codegen_multiply((float)L_6, (float)L_7))))))
{
goto IL_0048;
}
}
{
// return true;
return (bool)1;
}
IL_002f:
{
// else if (volumeType == VolumeType.AxisAlignedBox)
int32_t L_8 = SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline(__this, /*hidden argument*/NULL);
if ((!(((uint32_t)L_8) == ((uint32_t)1))))
{
goto IL_0048;
}
}
{
// return bounds.Contains(position);
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_9 = SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline(__this, /*hidden argument*/NULL);
V_0 = L_9;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_10 = ___position0;
bool L_11 = Bounds_Contains_mD0387F6A414484534BE1E50E0FC55EDE1E138319((Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 *)(&V_0), L_10, /*hidden argument*/NULL);
return L_11;
}
IL_0048:
{
// return false;
return (bool)0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// surface.remainingUpdatesToLive = -1;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
NullCheck(L_0);
Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_0, (-1), /*hidden argument*/NULL);
// if (surface.meshFilter != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0;
NullCheck(L_1);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_2 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0038;
}
}
{
// if (surface.meshFilter.mesh != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0;
NullCheck(L_4);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_5 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_4, /*hidden argument*/NULL);
NullCheck(L_5);
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_6 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_5, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_7 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_6, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_7)
{
goto IL_0038;
}
}
{
// Destroy(surface.meshFilter.mesh);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0;
NullCheck(L_8);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_9 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_8, /*hidden argument*/NULL);
NullCheck(L_9);
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * L_10 = MeshFilter_get_mesh_m0311B393009B408197013C5EBCB42A1E3EC3B7D5(L_9, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_10, /*hidden argument*/NULL);
}
IL_0038:
{
// GameObject.Destroy(surface.gameObject);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_11 = ___surface0;
NullCheck(L_11);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_12 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_11, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_12, /*hidden argument*/NULL);
// surface.gameObject = null;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = ___surface0;
NullCheck(L_13);
Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline(L_13, (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *)NULL, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::ProcessEvictedObjects()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_ProcessEvictedObjects_m2717BF741005C02CDBB9137EDF32C6EE4E088AD4_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_2 = NULL;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_3;
memset((&V_3), 0, sizeof(V_3));
int32_t V_4 = 0;
int32_t V_5 = 0;
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (pendingSurfacesForEviction == null || pendingSurfacesForEviction.Count == 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_0015;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if (L_2)
{
goto IL_0016;
}
}
IL_0015:
{
// return;
return;
}
IL_0016:
{
// surfacesToRemoveFromDict.Clear();
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_3 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477(L_3, /*hidden argument*/List_1_Clear_m06BA343FB4E149EB045D8D2603E1AD239E1E4477_RuntimeMethod_var);
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_4);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_5;
}
IL_002d:
try
{ // begin try (depth: 1)
{
goto IL_00d1;
}
IL_0032:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_6;
// if (kvp.Value.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_7);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_0062;
}
}
IL_004e:
{
// surfacesToRemoveFromDict.Add(kvp.Key);
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_10 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL);
int32_t L_11 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var);
NullCheck(L_10);
List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771(L_10, L_11, /*hidden argument*/List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var);
// continue;
goto IL_00d1;
}
IL_0062:
{
// Surface evictionObject = kvp.Value;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
V_2 = L_12;
// Vector3 surfacePosition = evictionObject.gameObject.transform.position;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = V_2;
NullCheck(L_13);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_14 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_13, /*hidden argument*/NULL);
NullCheck(L_14);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_15 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_14, /*hidden argument*/NULL);
NullCheck(L_15);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_16 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_15, /*hidden argument*/NULL);
V_3 = L_16;
// if (!BoundsContains(surfacePosition) ||
// Vector3.SqrMagnitude(surfacePosition - this.transform.position) <= s_EvictionUpdateTickThresholdSqr)
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_17 = V_3;
bool L_18 = SpatialMappingBase_BoundsContains_mB9368EF37556231325D13A2095F4AF3F4066F01C(__this, L_17, /*hidden argument*/NULL);
if (!L_18)
{
goto IL_00a1;
}
}
IL_0084:
{
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_19 = V_3;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_20 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(__this, /*hidden argument*/NULL);
NullCheck(L_20);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_21 = Transform_get_position_mF54C3A064F7C8E24F1C56EE128728B2E4485E294(L_20, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_22 = Vector3_op_Subtraction_mF9846B723A5034F8B9F5F5DCB78E3D67649143D3(L_19, L_21, /*hidden argument*/NULL);
float L_23 = Vector3_SqrMagnitude_mBE7ED92F28BBE09310975CDF329913C04EA9500E(L_22, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
float L_24 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_EvictionUpdateTickThresholdSqr_5();
if ((!(((float)L_23) <= ((float)L_24))))
{
goto IL_00d1;
}
}
IL_00a1:
{
// if (evictionObject.remainingUpdatesToLive-- <= 0)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = V_2;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_26 = L_25;
NullCheck(L_26);
int32_t L_27 = Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline(L_26, /*hidden argument*/NULL);
V_4 = L_27;
int32_t L_28 = V_4;
NullCheck(L_26);
Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline(L_26, ((int32_t)il2cpp_codegen_subtract((int32_t)L_28, (int32_t)1)), /*hidden argument*/NULL);
int32_t L_29 = V_4;
if ((((int32_t)L_29) > ((int32_t)0)))
{
goto IL_00d1;
}
}
IL_00b8:
{
// DestroySurface(evictionObject);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = V_2;
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(13 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_30);
// surfacesToRemoveFromDict.Add(kvp.Key);
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_31 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL);
int32_t L_32 = KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Key_mC1FD5750BADDBCAE55646BB386A2E4069F75DE92_RuntimeMethod_var);
NullCheck(L_31);
List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771(L_31, L_32, /*hidden argument*/List_1_Add_m50C0D1F69B2EF31137658E2F052EBBAC7BF82771_RuntimeMethod_var);
}
IL_00d1:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
bool L_33 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_33)
{
goto IL_0032;
}
}
IL_00dd:
{
IL2CPP_LEAVE(0xED, FINALLY_00df);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00df;
}
FINALLY_00df:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(223)
} // end finally (depth: 1)
IL2CPP_CLEANUP(223)
{
IL2CPP_JUMP_TBL(0xED, IL_00ed)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00ed:
{
// for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i)
V_5 = 0;
goto IL_0111;
}
IL_00f2:
{
// pendingSurfacesForEviction.Remove(surfacesToRemoveFromDict[i]);
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_34 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_35 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL);
int32_t L_36 = V_5;
NullCheck(L_35);
int32_t L_37 = List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_inline(L_35, L_36, /*hidden argument*/List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_RuntimeMethod_var);
NullCheck(L_34);
Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953(L_34, L_37, /*hidden argument*/Dictionary_2_Remove_mBDF06651E63454AD682A81998C4EC134CB619953_RuntimeMethod_var);
// for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i)
int32_t L_38 = V_5;
V_5 = ((int32_t)il2cpp_codegen_add((int32_t)L_38, (int32_t)1));
}
IL_0111:
{
// for (int i = 0; i < surfacesToRemoveFromDict.Count; ++i)
int32_t L_39 = V_5;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_40 = SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline(__this, /*hidden argument*/NULL);
NullCheck(L_40);
int32_t L_41 = List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_inline(L_40, /*hidden argument*/List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_RuntimeMethod_var);
if ((((int32_t)L_39) < ((int32_t)L_41)))
{
goto IL_00f2;
}
}
{
// }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase::TryGetHighestPriorityRequest(UnityEngine.XR.WSA.SurfaceData&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___bestSurfaceData0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_TryGetHighestPriorityRequest_m13220FB84B555EBE712CAB161B61F380D5849A70_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL;
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// bestSurfaceData = bestSurfaceDataNull;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = ___bestSurfaceData0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = __this->get_bestSurfaceDataNull_27();
*(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0 = L_1;
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_0)->___outputCollider_3), (void*)NULL);
#endif
// if (surfaceObjects == null || surfaceObjects.Count == 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0021;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
int32_t L_4 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_3, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if (L_4)
{
goto IL_0023;
}
}
IL_0021:
{
// return false;
return (bool)0;
}
IL_0023:
{
// Surface bestSurface = null;
V_0 = (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D *)NULL;
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_5 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_5);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_6 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_5, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_1 = L_6;
}
IL_0031:
try
{ // begin try (depth: 1)
{
goto IL_0077;
}
IL_0033:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_7 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_7;
// if (!kvp.Value.awaitingBake)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_8);
bool L_9 = Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline(L_8, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_0077;
}
}
IL_0049:
{
// if (bestSurface == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = V_0;
if (L_10)
{
goto IL_0056;
}
}
IL_004c:
{
// bestSurface = kvp.Value;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_11 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
V_0 = L_11;
// continue;
goto IL_0077;
}
IL_0056:
{
// if (kvp.Value.updateTime < bestSurface.updateTime)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_12);
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_13 = Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline(L_12, /*hidden argument*/NULL);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_14 = V_0;
NullCheck(L_14);
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_15 = Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline(L_14, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_il2cpp_TypeInfo_var);
bool L_16 = DateTime_op_LessThan_m75DE4F8CC5F5EE392829A9B37C5C98B7FC97061A(L_13, L_15, /*hidden argument*/NULL);
if (!L_16)
{
goto IL_0077;
}
}
IL_006f:
{
// bestSurface = kvp.Value;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_17 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
V_0 = L_17;
}
IL_0077:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_18 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_18)
{
goto IL_0033;
}
}
IL_0080:
{
IL2CPP_LEAVE(0x90, FINALLY_0082);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0082;
}
FINALLY_0082:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_1), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(130)
} // end finally (depth: 1)
IL2CPP_CLEANUP(130)
{
IL2CPP_JUMP_TBL(0x90, IL_0090)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0090:
{
// if (bestSurface == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0;
if (L_19)
{
goto IL_0095;
}
}
{
// return false;
return (bool)0;
}
IL_0095:
{
// AddRequiredComponentsForBaking(bestSurface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0;
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(10 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_20);
// UpdateSurfaceData(bestSurface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = V_0;
VirtActionInvoker1< Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * >::Invoke(15 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase/Surface) */, __this, L_21);
// bestSurfaceData = bestSurface.surfaceData;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_22 = ___bestSurfaceData0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = V_0;
NullCheck(L_23);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_24 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_23, /*hidden argument*/NULL);
*(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22 = L_24;
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputMesh_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputAnchor_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)L_22)->___outputCollider_3), (void*)NULL);
#endif
// return true;
return (bool)1;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// SurfaceData tempSurfaceData = surface.surfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
NullCheck(L_0);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_0, /*hidden argument*/NULL);
V_0 = L_1;
// tempSurfaceData.id = surface.surfaceId;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_2 = ___surface0;
NullCheck(L_2);
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_3 = Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline(L_2, /*hidden argument*/NULL);
(&V_0)->set_id_0(L_3);
// tempSurfaceData.trianglesPerCubicMeter = lodToPcm[(int)lodType];
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_4 = SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline(/*hidden argument*/NULL);
int32_t L_5 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(__this, /*hidden argument*/NULL);
NullCheck(L_4);
int32_t L_6 = L_5;
int32_t L_7 = (L_4)->GetAt(static_cast<il2cpp_array_size_t>(L_6));
(&V_0)->set_trianglesPerCubicMeter_4((((float)((float)L_7))));
// tempSurfaceData.bakeCollider = false;
(&V_0)->set_bakeCollider_5((bool)0);
// tempSurfaceData.outputMesh = surface.meshFilter;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0;
NullCheck(L_8);
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_9 = Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline(L_8, /*hidden argument*/NULL);
(&V_0)->set_outputMesh_1(L_9);
// surface.surfaceData = tempSurfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_11 = V_0;
NullCheck(L_10);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_10, L_11, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::ForEachSurfaceInCache(System.Action`1<UnityEngine.XR.WSA.SpatialMappingBase_Surface>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * ___callback0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (callback == null)
Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_0 = ___callback0;
if (L_0)
{
goto IL_0004;
}
}
{
// return;
return;
}
IL_0004:
{
// if (surfaceObjects == null || surfaceObjects.Count == 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0019;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_2);
int32_t L_3 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_2, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if (L_3)
{
goto IL_001a;
}
}
IL_0019:
{
// return;
return;
}
IL_001a:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_4 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_4);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_5 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_4, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_5;
}
IL_0026:
try
{ // begin try (depth: 1)
{
goto IL_003d;
}
IL_0028:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_6 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_6;
// callback(kvp.Value);
Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_7 = ___callback0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_7);
Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63(L_7, L_8, /*hidden argument*/Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var);
}
IL_003d:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_9 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_9)
{
goto IL_0028;
}
}
IL_0046:
{
IL2CPP_LEAVE(0x56, FINALLY_0048);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0048;
}
FINALLY_0048:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(72)
} // end finally (depth: 1)
IL2CPP_CLEANUP(72)
{
IL2CPP_JUMP_TBL(0x56, IL_0056)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0056:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_10 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_10);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_11 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_10, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_11;
}
IL_0062:
try
{ // begin try (depth: 1)
{
goto IL_0088;
}
IL_0064:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_12 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_12;
// if (ShouldRemainActiveWhileBeingRemoved(kvp.Value))
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
bool L_14 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_13, /*hidden argument*/NULL);
if (!L_14)
{
goto IL_0088;
}
}
IL_007b:
{
// callback(kvp.Value);
Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_15 = ___callback0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_16 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_15);
Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63(L_15, L_16, /*hidden argument*/Action_1_Invoke_m4A7C10245773823DA7B25B056136A17888BDAA63_RuntimeMethod_var);
}
IL_0088:
{
// foreach (KeyValuePair<int, Surface> kvp in pendingSurfacesForEviction)
bool L_17 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_17)
{
goto IL_0064;
}
}
IL_0091:
{
IL2CPP_LEAVE(0xA1, FINALLY_0093);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0093;
}
FINALLY_0093:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(147)
} // end finally (depth: 1)
IL2CPP_CLEANUP(147)
{
IL2CPP_JUMP_TBL(0xA1, IL_00a1)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00a1:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnDidApplyAnimationProperties()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_OnDidApplyAnimationProperties_mDF9C4A11854855CF3707AD567177A009731AE03F (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// OnResetProperties();
VirtActionInvoker0::Invoke(16 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() */, __this);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::Reset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// OnResetProperties();
VirtActionInvoker0::Invoke(16 /* System.Void UnityEngine.XR.WSA.SpatialMappingBase::OnResetProperties() */, __this);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448 (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// VolumeType m_VolumeType = VolumeType.AxisAlignedBox;
__this->set_m_VolumeType_9(1);
// float m_SphereRadius = 2.0f;
__this->set_m_SphereRadius_10((2.0f));
// Vector3 m_HalfBoxExtents = Vector3.one * 4.0f;
IL2CPP_RUNTIME_CLASS_INIT(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = Vector3_get_one_mA11B83037CB269C6076CBCF754E24C8F3ACEC2AB(/*hidden argument*/NULL);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_1 = Vector3_op_Multiply_m1C5F07723615156ACF035D88A1280A9E8F35A04E(L_0, (4.0f), /*hidden argument*/NULL);
__this->set_m_HalfBoxExtents_11(L_1);
// LODType m_LodType = LODType.Medium;
__this->set_m_LodType_12(1);
// int m_NumUpdatesBeforeRemoval = 10;
__this->set_m_NumUpdatesBeforeRemoval_13(((int32_t)10));
// float m_SecondsBetweenUpdates = 2.5f;
__this->set_m_SecondsBetweenUpdates_14((2.5f));
// private Dictionary<int, Surface> m_PendingSurfacesForEviction = new Dictionary<int, Surface>();
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_2 = (Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 *)il2cpp_codegen_object_new(Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10_il2cpp_TypeInfo_var);
Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA(L_2, /*hidden argument*/Dictionary_2__ctor_m5661B11DFE0C71075E8A172EF0BEBC0E434824EA_RuntimeMethod_var);
__this->set_m_PendingSurfacesForEviction_23(L_2);
// private List<int> m_SurfacesToRemoveFromDict = new List<int>();
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_3 = (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 *)il2cpp_codegen_object_new(List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226_il2cpp_TypeInfo_var);
List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4(L_3, /*hidden argument*/List_1__ctor_mA7F9F92F641CEECFD9D8CFDC667568A05FFD27B4_RuntimeMethod_var);
__this->set_m_SurfacesToRemoveFromDict_24(L_3);
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase__cctor_mDE92F7F277D10B7F98485323B7E58847C05CB24B_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// static readonly float s_MovementUpdateThresholdSqr = 0.0001f;
((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_MovementUpdateThresholdSqr_4((0.0001f));
// static readonly float s_EvictionUpdateTickThresholdSqr = 100.0f; // 10 * 10
((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_EvictionUpdateTickThresholdSqr_5((100.0f));
// static int s_ObserverIdCounter = 0;
((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_ObserverIdCounter_6(0);
// private static readonly int[] s_LodToPcm = { 2000, 750, 200 };
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)SZArrayNew(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83_il2cpp_TypeInfo_var, (uint32_t)3);
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_1 = L_0;
RuntimeFieldHandle_t844BDF00E8E6FE69D9AEAA7657F09018B864F4EF L_2 = { reinterpret_cast<intptr_t> (U3CPrivateImplementationDetailsU3E_tBE168E59272B45F7A94B1F451A29AE3BCD661A15____D15896F389DBE7C4EB4B27E5CA408E92D08149C9_0_FieldInfo_var) };
RuntimeHelpers_InitializeArray_m29F50CDFEEE0AB868200291366253DD4737BC76A((RuntimeArray *)(RuntimeArray *)L_1, L_2, /*hidden argument*/NULL);
((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->set_s_LodToPcm_26(L_1);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.SurfaceId UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_surfaceId()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public SurfaceId surfaceId { get; set; }
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = __this->get_U3CsurfaceIdU3Ek__BackingField_0();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_surfaceId(UnityEngine.XR.WSA.SurfaceId)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method)
{
{
// public SurfaceId surfaceId { get; set; }
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = ___value0;
__this->set_U3CsurfaceIdU3Ek__BackingField_0(L_0);
return;
}
}
// System.DateTime UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_updateTime()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public System.DateTime updateTime { get; set; }
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = __this->get_U3CupdateTimeU3Ek__BackingField_1();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_updateTime(System.DateTime)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method)
{
{
// public System.DateTime updateTime { get; set; }
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = ___value0;
__this->set_U3CupdateTimeU3Ek__BackingField_1(L_0);
return;
}
}
// UnityEngine.GameObject UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public GameObject gameObject { get; set; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_U3CgameObjectU3Ek__BackingField_2();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_gameObject(UnityEngine.GameObject)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method)
{
{
// public GameObject gameObject { get; set; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0;
__this->set_U3CgameObjectU3Ek__BackingField_2(L_0);
return;
}
}
// UnityEngine.XR.WSA.SurfaceData UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_surfaceData()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public SurfaceData surfaceData { get; set; }
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = __this->get_U3CsurfaceDataU3Ek__BackingField_3();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_surfaceData(UnityEngine.XR.WSA.SurfaceData)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method)
{
{
// public SurfaceData surfaceData { get; set; }
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___value0;
__this->set_U3CsurfaceDataU3Ek__BackingField_3(L_0);
return;
}
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_remainingUpdatesToLive()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public int remainingUpdatesToLive { get; set; }
int32_t L_0 = __this->get_U3CremainingUpdatesToLiveU3Ek__BackingField_4();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_remainingUpdatesToLive(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// public int remainingUpdatesToLive { get; set; }
int32_t L_0 = ___value0;
__this->set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(L_0);
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_awaitingBake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public bool awaitingBake { get; set; }
bool L_0 = __this->get_U3CawaitingBakeU3Ek__BackingField_5();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_awaitingBake(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method)
{
{
// public bool awaitingBake { get; set; }
bool L_0 = ___value0;
__this->set_U3CawaitingBakeU3Ek__BackingField_5(L_0);
return;
}
}
// UnityEngine.MeshFilter UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshFilter()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshFilter meshFilter { get; set; }
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = __this->get_U3CmeshFilterU3Ek__BackingField_6();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshFilter(UnityEngine.MeshFilter)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method)
{
{
// public MeshFilter meshFilter { get; set; }
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = ___value0;
__this->set_U3CmeshFilterU3Ek__BackingField_6(L_0);
return;
}
}
// UnityEngine.MeshRenderer UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshRenderer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshRenderer meshRenderer { get; set; }
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = __this->get_U3CmeshRendererU3Ek__BackingField_7();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshRenderer(UnityEngine.MeshRenderer)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method)
{
{
// public MeshRenderer meshRenderer { get; set; }
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___value0;
__this->set_U3CmeshRendererU3Ek__BackingField_7(L_0);
return;
}
}
// UnityEngine.MeshCollider UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_meshCollider()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshCollider meshCollider { get; set; }
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = __this->get_U3CmeshColliderU3Ek__BackingField_8();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_meshCollider(UnityEngine.MeshCollider)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method)
{
{
// public MeshCollider meshCollider { get; set; }
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = ___value0;
__this->set_U3CmeshColliderU3Ek__BackingField_8(L_0);
return;
}
}
// UnityEngine.XR.WSA.WorldAnchor UnityEngine.XR.WSA.SpatialMappingBase_Surface::get_worldAnchor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public WorldAnchor worldAnchor { get; set; }
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = __this->get_U3CworldAnchorU3Ek__BackingField_9();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::set_worldAnchor(UnityEngine.XR.WSA.WorldAnchor)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method)
{
{
// public WorldAnchor worldAnchor { get; set; }
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = ___value0;
__this->set_U3CworldAnchorU3Ek__BackingField_9(L_0);
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_Surface::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Surface__ctor_m5034101390586B7DF34E820D9CC592A45C6D5D01 (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback__ctor_m34CF9585F05EE122494CB1FC3151AC877FED820B (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
__this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1));
__this->set_method_3(___method1);
__this->set_m_target_2(___object0);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::Invoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method)
{
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11();
Delegate_t** delegatesToInvoke;
il2cpp_array_size_t length;
if (delegateArrayToInvoke != NULL)
{
length = delegateArrayToInvoke->max_length;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0));
}
else
{
length = 1;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this);
}
for (il2cpp_array_size_t i = 0; i < length; i++)
{
Delegate_t* currentDelegate = delegatesToInvoke[i];
Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0();
RuntimeObject* targetThis = currentDelegate->get_m_target_2();
RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3());
if (!il2cpp_codegen_method_is_virtual(targetMethod))
{
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod);
}
bool ___methodIsStatic = MethodIsStatic(targetMethod);
int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod);
if (___methodIsStatic)
{
if (___parameterCount == 4)
{
// open
typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod);
}
else
{
// closed
typedef void (*FunctionPointerType) (void*, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod);
}
}
else if (___parameterCount != 4)
{
// open
if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this))
{
if (il2cpp_codegen_method_is_generic_instance(targetMethod))
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
GenericInterfaceActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
else
GenericVirtActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
}
else
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
InterfaceActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
else
VirtActionInvoker3< SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
}
}
else
{
typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod);
}
}
else
{
// closed
if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this))
{
if (targetThis == NULL)
{
typedef void (*FunctionPointerType) (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod);
}
else if (il2cpp_codegen_method_is_generic_instance(targetMethod))
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
GenericInterfaceActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
else
GenericVirtActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(targetMethod, targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
}
else
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
InterfaceActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
else
VirtActionInvoker4< SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3);
}
}
else
{
typedef void (*FunctionPointerType) (void*, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 , bool, float, const RuntimeMethod*);
((FunctionPointerType)targetMethodPointer)(targetThis, ___requester0, ___bakedData1, ___outputWritten2, ___elapsedBakeTimeSeconds3, targetMethod);
}
}
}
}
// System.IAsyncResult UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::BeginInvoke(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.AsyncCallback,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback4, RuntimeObject * ___object5, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SurfaceDataReadyCallback_BeginInvoke_mB767F35E7B337B4AC98E4294929A4E0262A964DB_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
void *__d_args[5] = {0};
__d_args[0] = ___requester0;
__d_args[1] = Box(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var, &___bakedData1);
__d_args[2] = Box(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_il2cpp_TypeInfo_var, &___outputWritten2);
__d_args[3] = Box(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1_il2cpp_TypeInfo_var, &___elapsedBakeTimeSeconds3);
return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback4, (RuntimeObject*)___object5);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback::EndInvoke(System.IAsyncResult)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SurfaceDataReadyCallback_EndInvoke_m118FFFA0EFF39D860366ACDF1FD91B7AC9F55051 (SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * __this, RuntimeObject* ___result0, const RuntimeMethod* method)
{
il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result0, 0);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Int32 UnityEngine.XR.WSA.SpatialMappingCollider::get_layer()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_Layer;
int32_t L_0 = __this->get_m_Layer_28();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_layer(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_layer_m520AEB5C0C3BA60A2A2D575A855E434FE7880E99 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// m_Layer = value;
int32_t L_0 = ___value0;
__this->set_m_Layer_28(L_0);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL);
// }
return;
}
}
// UnityEngine.PhysicMaterial UnityEngine.XR.WSA.SpatialMappingCollider::get_material()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_Material;
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = __this->get_m_Material_29();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_material(UnityEngine.PhysicMaterial)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_material_m6A2C956014D43440480A2D68997C166DDE2F6220 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * ___value0, const RuntimeMethod* method)
{
{
// m_Material = value;
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = ___value0;
__this->set_m_Material_29(L_0);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingCollider::get_enableCollisions()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_EnableCollisions;
bool L_0 = __this->get_m_EnableCollisions_30();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::set_enableCollisions(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_set_enableCollisions_m8E888DD954EE93E7672DA14F0ADFA52CACACB1DD (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// m_EnableCollisions = value;
bool L_0 = ___value0;
__this->set_m_EnableCollisions_30(L_0);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::Awake()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_Awake_mD0F91D9DF846C1C8CE1F5D602FC43F065A7E1F10 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// bakePhysics = true;
SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline(__this, (bool)1, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnSurfaceDataReady(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider_OnSurfaceDataReady_m091E11BE2C56B1B6DEEF271012886CE195B90950_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL;
{
// if (!surfaceObjects.TryGetValue(bakedData.id.handle, out surfaceData))
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData1;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = L_1.get_id_0();
int32_t L_3 = L_2.get_handle_0();
NullCheck(L_0);
bool L_4 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_0, L_3, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var);
if (L_4)
{
goto IL_001b;
}
}
{
// return;
return;
}
IL_001b:
{
// surfaceData.awaitingBake = false;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = V_0;
NullCheck(L_5);
Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_5, (bool)0, /*hidden argument*/NULL);
// if (!outputWritten)
bool L_6 = ___outputWritten2;
if (L_6)
{
goto IL_0026;
}
}
{
// return;
return;
}
IL_0026:
{
// if (surfaceData.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = V_0;
NullCheck(L_7);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_0054;
}
}
{
// Debug.LogError(string.Format("A SpatialMappingCollider component can not apply baked data to the surface with id \"{0}\" because its GameObject is null.", bakedData.id.handle));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_10 = ___bakedData1;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_11 = L_10.get_id_0();
int32_t L_12 = L_11.get_handle_0();
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_13);
String_t* L_15 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralDD1FA74A105812D05EDBBA6CA1731A9A0C697ED4, L_14, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_15, /*hidden argument*/NULL);
// return;
return;
}
IL_0054:
{
// if (bakedData.outputCollider == null)
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_16 = ___bakedData1;
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_17 = L_16.get_outputCollider_3();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_18 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_18)
{
goto IL_0063;
}
}
{
// return;
return;
}
IL_0063:
{
// if (requester != this)
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_19 = ___requester0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_20 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_19, __this, /*hidden argument*/NULL);
if (!L_20)
{
goto IL_0074;
}
}
{
// CloneBakedComponents(bakedData, surfaceData);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = ___bakedData1;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_22 = V_0;
SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC(__this, L_21, L_22, /*hidden argument*/NULL);
}
IL_0074:
{
// bakedData.outputCollider.gameObject.layer = layer;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_23 = ___bakedData1;
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_24 = L_23.get_outputCollider_3();
NullCheck(L_24);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_25 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_24, /*hidden argument*/NULL);
int32_t L_26 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL);
NullCheck(L_25);
GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907(L_25, L_26, /*hidden argument*/NULL);
// if (material != null)
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_27 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_28 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_27, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_28)
{
goto IL_00a9;
}
}
{
// bakedData.outputCollider.material = material;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_29 = ___bakedData1;
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_30 = L_29.get_outputCollider_3();
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_31 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL);
NullCheck(L_30);
Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74(L_30, L_31, /*hidden argument*/NULL);
}
IL_00a9:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, bool ___shouldBeActiveWhileRemoved0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surfaceData1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider_OnBeginSurfaceEviction_m21A70B520DA8C193B777EE78E39AE86AE103CACF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (surfaceData.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surfaceData1;
NullCheck(L_0);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_000f;
}
}
{
// return;
return;
}
IL_000f:
{
// if (surfaceData.meshCollider == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surfaceData1;
NullCheck(L_3);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_4 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_001e;
}
}
{
// return;
return;
}
IL_001e:
{
// surfaceData.meshCollider.enabled = shouldBeActiveWhileRemoved;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surfaceData1;
NullCheck(L_6);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_7 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_6, /*hidden argument*/NULL);
bool L_8 = ___shouldBeActiveWhileRemoved0;
NullCheck(L_7);
Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B(L_7, L_8, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::UpdateSurfaceData(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_UpdateSurfaceData_mBC5EB61B9080BAB2C3D645A22A30C907AD5972CD (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// base.UpdateSurfaceData(surface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
SpatialMappingBase_UpdateSurfaceData_m54007C547C0BEA915A1178C572AA8F8D2BF598B4(__this, L_0, /*hidden argument*/NULL);
// SurfaceData tempSurfaceData = surface.surfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0;
NullCheck(L_1);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_2 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_1, /*hidden argument*/NULL);
V_0 = L_2;
// tempSurfaceData.bakeCollider = bakePhysics;
bool L_3 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(__this, /*hidden argument*/NULL);
(&V_0)->set_bakeCollider_5(L_3);
// tempSurfaceData.outputCollider = surface.meshCollider;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0;
NullCheck(L_4);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_5 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_4, /*hidden argument*/NULL);
(&V_0)->set_outputCollider_3(L_5);
// surface.surfaceData = tempSurfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_7 = V_0;
NullCheck(L_6);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_6, L_7, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::AddRequiredComponentsForBaking(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider_AddRequiredComponentsForBaking_m713A141669C87A26C040C213FBDC53A0AFEAB7BC_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_0;
memset((&V_0), 0, sizeof(V_0));
{
// base.AddRequiredComponentsForBaking(surface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
SpatialMappingBase_AddRequiredComponentsForBaking_m39F67F97247869F12E9E806B6D21AB100AA9F7EA(__this, L_0, /*hidden argument*/NULL);
// if (surface.meshCollider == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_1 = ___surface0;
NullCheck(L_1);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_2 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_1, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_2, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_3)
{
goto IL_0026;
}
}
{
// surface.meshCollider = surface.gameObject.AddComponent<MeshCollider>() as MeshCollider;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_4 = ___surface0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0;
NullCheck(L_5);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_5, /*hidden argument*/NULL);
NullCheck(L_6);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_7 = GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C(L_6, /*hidden argument*/GameObject_AddComponent_TisMeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE_m38A789A66BD8A824B7D5FF46C20C4BD3CE0F3B3C_RuntimeMethod_var);
NullCheck(L_4);
Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline(L_4, L_7, /*hidden argument*/NULL);
}
IL_0026:
{
// SurfaceData tempSurfaceData = surface.surfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_8 = ___surface0;
NullCheck(L_8);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_9 = Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline(L_8, /*hidden argument*/NULL);
V_0 = L_9;
// tempSurfaceData.outputCollider = surface.meshCollider;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0;
NullCheck(L_10);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_11 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_10, /*hidden argument*/NULL);
(&V_0)->set_outputCollider_3(L_11);
// surface.surfaceData = tempSurfaceData;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = ___surface0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_13 = V_0;
NullCheck(L_12);
Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline(L_12, L_13, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::ApplyPropertiesToCachedSurfaces()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (material == null)
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_000f;
}
}
{
// return;
return;
}
IL_000f:
{
// ForEachSurfaceInCache(delegate(SpatialMappingBase.Surface surface)
// {
// if (surface.meshCollider == null)
// {
// return;
// }
//
// if (surface.gameObject != null)
// {
// if (surface.gameObject.layer != layer)
// {
// surface.gameObject.layer = layer;
// }
// }
//
// if (surface.meshCollider.material != material)
// {
// surface.meshCollider.material = material;
// }
//
// if (surface.meshCollider.enabled != enableCollisions)
// {
// surface.meshCollider.enabled = enableCollisions;
// }
// });
Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 * L_2 = (Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4 *)il2cpp_codegen_object_new(Action_1_t258F021AE2618137D142281C8D399C2E5BB24FB4_il2cpp_TypeInfo_var);
Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC(L_2, __this, (intptr_t)((intptr_t)SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_RuntimeMethod_var), /*hidden argument*/Action_1__ctor_m03B4ABDDD2484F8DD29BC579D18F63D2D69B8CBC_RuntimeMethod_var);
SpatialMappingBase_ForEachSurfaceInCache_mE2BFDBAD198BBC7314E600477E1209864D8C2F12(__this, L_2, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::OnResetProperties()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_OnResetProperties_m357A522F32322A1A4F06A66F085B4E03DE456312 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// base.OnResetProperties();
SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A(__this, /*hidden argument*/NULL);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingCollider_ApplyPropertiesToCachedSurfaces_m670D68C9011AEAD66004ABE2423FAC71FC451C5F(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781 (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider__ctor_mF5B1E8581795F2235B94D2192D5370FE2691E781_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// bool m_EnableCollisions = true;
__this->set_m_EnableCollisions_30((bool)1);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingCollider::<ApplyPropertiesToCachedSurfaces>b__17_0(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingCollider_U3CApplyPropertiesToCachedSurfacesU3Eb__17_0_m4986DE9A169D6A444E7FD3CAD56479EFB9E761AE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (surface.meshCollider == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
NullCheck(L_0);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_1 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_000f;
}
}
{
// return;
return;
}
IL_000f:
{
// if (surface.gameObject != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface0;
NullCheck(L_3);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_5 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_0041;
}
}
{
// if (surface.gameObject.layer != layer)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface0;
NullCheck(L_6);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL);
NullCheck(L_7);
int32_t L_8 = GameObject_get_layer_m0DE90D8A3D3AA80497A3A80FBEAC2D207C16B9C8(L_7, /*hidden argument*/NULL);
int32_t L_9 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL);
if ((((int32_t)L_8) == ((int32_t)L_9)))
{
goto IL_0041;
}
}
{
// surface.gameObject.layer = layer;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0;
NullCheck(L_10);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_11 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_10, /*hidden argument*/NULL);
int32_t L_12 = SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline(__this, /*hidden argument*/NULL);
NullCheck(L_11);
GameObject_set_layer_mDAC8037FCFD0CE62DB66004C4342EA20CF604907(L_11, L_12, /*hidden argument*/NULL);
}
IL_0041:
{
// if (surface.meshCollider.material != material)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_13 = ___surface0;
NullCheck(L_13);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_14 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_13, /*hidden argument*/NULL);
NullCheck(L_14);
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_15 = Collider_get_material_m4F6B81A3CD1B3B579579EF2DBA73CEF29072766A(L_14, /*hidden argument*/NULL);
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_16 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_17 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_15, L_16, /*hidden argument*/NULL);
if (!L_17)
{
goto IL_006a;
}
}
{
// surface.meshCollider.material = material;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = ___surface0;
NullCheck(L_18);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_19 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_18, /*hidden argument*/NULL);
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_20 = SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline(__this, /*hidden argument*/NULL);
NullCheck(L_19);
Collider_set_material_m2978E803DF20381466E0BD1F41F759DA015C5E74(L_19, L_20, /*hidden argument*/NULL);
}
IL_006a:
{
// if (surface.meshCollider.enabled != enableCollisions)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = ___surface0;
NullCheck(L_21);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_22 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_21, /*hidden argument*/NULL);
NullCheck(L_22);
bool L_23 = Collider_get_enabled_mED644D98C6AC2DF95BD86145E8D31AD7081C76EB(L_22, /*hidden argument*/NULL);
bool L_24 = SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline(__this, /*hidden argument*/NULL);
if ((((int32_t)L_23) == ((int32_t)L_24)))
{
goto IL_008e;
}
}
{
// surface.meshCollider.enabled = enableCollisions;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = ___surface0;
NullCheck(L_25);
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_26 = Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline(L_25, /*hidden argument*/NULL);
bool L_27 = SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline(__this, /*hidden argument*/NULL);
NullCheck(L_26);
Collider_set_enabled_mF84DE8B0C8CAF33ACDB7F29BC055D9C8CFACB57B(L_26, L_27, /*hidden argument*/NULL);
}
IL_008e:
{
// });
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// private List<SMComponentRecord> m_Components = new List<SMComponentRecord>(); // registered component list
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_0 = (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 *)il2cpp_codegen_object_new(List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0_il2cpp_TypeInfo_var);
List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52(L_0, /*hidden argument*/List_1__ctor_m92F27154FD86EFA134C0B5E6E4DA50FC28F01D52_RuntimeMethod_var);
__this->set_m_Components_2(L_0);
// private SMBakeRequest[] m_InFlightRequests = new SMBakeRequest[kIdealInFlightSurfaceCount]; // in-flight requests
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_1 = (SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD*)(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD*)SZArrayNew(SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD_il2cpp_TypeInfo_var, (uint32_t)2);
__this->set_m_InFlightRequests_3(L_1);
// private SpatialMappingContext() {}
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
// private SpatialMappingContext() {}
return;
}
}
// UnityEngine.XR.WSA.SpatialMappingContext UnityEngine.XR.WSA.SpatialMappingContext::get_Instance()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010 (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// get { return instance; }
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = ((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->get_instance_0();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::RegisterComponent(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * V_0 = NULL;
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_1;
memset((&V_1), 0, sizeof(V_1));
{
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_0 = (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_1 = V_0;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = ___smComponent0;
NullCheck(L_1);
L_1->set_smComponent_0(L_2);
// if (smComponent == null)
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_3 = V_0;
NullCheck(L_3);
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_4 = L_3->get_smComponent_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_0026;
}
}
{
// throw new ArgumentNullException("smComponent");
ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_6 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_6, _stringLiteral85EE1AFFF61EEAA487746F3F8C1685BB1C03665C, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_6, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var);
}
IL_0026:
{
// if (onDataReady == null)
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_7 = ___onDataReady1;
if (L_7)
{
goto IL_0034;
}
}
{
// throw new ArgumentNullException("onDataReady");
ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_8 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_8, _stringLiteralB782D9835143821E697B67407CCFB082FE6322A9, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_8, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var);
}
IL_0034:
{
// if (getHighestPri == null)
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_9 = ___getHighestPri2;
if (L_9)
{
goto IL_0042;
}
}
{
// throw new ArgumentNullException("getHighestPri");
ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_10 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_10, _stringLiteralA5720A5DE163F01678ACB0606AF0EEED421C94EB, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_10, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var);
}
IL_0042:
{
// if (observer == null)
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_11 = ___observer3;
if (L_11)
{
goto IL_0051;
}
}
{
// throw new ArgumentNullException("observer");
ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD * L_12 = (ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD *)il2cpp_codegen_object_new(ArgumentNullException_t581DF992B1F3E0EC6EFB30CC5DC43519A79B27AD_il2cpp_TypeInfo_var);
ArgumentNullException__ctor_mEE0C0D6FCB2D08CD7967DBB1329A0854BBED49ED(L_12, _stringLiteral307527C227AC648BB119BCB457EBB8466E79827C, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_12, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var);
}
IL_0051:
{
// SMComponentRecord findResult = m_Components.Find(record => record.m_Component == smComponent);
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_13 = __this->get_m_Components_2();
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_14 = V_0;
Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * L_15 = (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *)il2cpp_codegen_object_new(Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var);
Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972(L_15, L_14, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_RuntimeMethod_var), /*hidden argument*/Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var);
NullCheck(L_13);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_16 = List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52(L_13, L_15, /*hidden argument*/List_1_Find_mEBB03AE7A46CD2A87BC5F4586A3754A34D973A52_RuntimeMethod_var);
// if (findResult.m_Component != null)
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_17 = L_16.get_m_Component_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_18 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_17, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_18)
{
goto IL_0080;
}
}
{
// throw new ArgumentException("RegisterComponent on a component already registered!");
ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_19 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var);
ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_19, _stringLiteral44A541D01189AFFA834A25E0A93A328341730C75, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_19, NULL, SpatialMappingContext_RegisterComponent_m8027F8D525EEFEB831D657E5E5B5B199915CBCB4_RuntimeMethod_var);
}
IL_0080:
{
// rec.m_Component = smComponent;
U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * L_20 = V_0;
NullCheck(L_20);
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_21 = L_20->get_smComponent_0();
(&V_1)->set_m_Component_0(L_21);
// rec.m_OnDataReady = onDataReady;
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_22 = ___onDataReady1;
(&V_1)->set_m_OnDataReady_1(L_22);
// rec.m_GetHighestPri = getHighestPri;
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_23 = ___getHighestPri2;
(&V_1)->set_m_GetHighestPri_2(L_23);
// rec.m_SurfaceObserver = observer;
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_24 = ___observer3;
(&V_1)->set_m_SurfaceObserver_3(L_24);
// m_Components.Add(rec);
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_25 = __this->get_m_Components_2();
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_26 = V_1;
NullCheck(L_25);
List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009(L_25, L_26, /*hidden argument*/List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::DeregisterComponent(UnityEngine.XR.WSA.SpatialMappingBase)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___smComponent0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * V_0 = NULL;
{
U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_0 = (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 *)il2cpp_codegen_object_new(U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89_il2cpp_TypeInfo_var);
U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373(L_0, /*hidden argument*/NULL);
V_0 = L_0;
U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_1 = V_0;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = ___smComponent0;
NullCheck(L_1);
L_1->set_smComponent_0(L_2);
// int removeCount = m_Components.RemoveAll(record => record.m_Component == smComponent);
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_3 = __this->get_m_Components_2();
U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * L_4 = V_0;
Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD * L_5 = (Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD *)il2cpp_codegen_object_new(Predicate_1_t6F7540C077F0B3EA4CE6ECBBC6A77BC9442C49BD_il2cpp_TypeInfo_var);
Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972(L_5, L_4, (intptr_t)((intptr_t)U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_RuntimeMethod_var), /*hidden argument*/Predicate_1__ctor_m79CE8CA3554CF9EDB5401CD70B51C5E29E19A972_RuntimeMethod_var);
NullCheck(L_3);
int32_t L_6 = List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10(L_3, L_5, /*hidden argument*/List_1_RemoveAll_m17AE403184E6B8ED554DFF30AE38595BF2FDEB10_RuntimeMethod_var);
// if (removeCount == 0)
if (L_6)
{
goto IL_0031;
}
}
{
// throw new ArgumentException("DeregisterComponent for a component not registered!");
ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 * L_7 = (ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1 *)il2cpp_codegen_object_new(ArgumentException_tEDCD16F20A09ECE461C3DA766C16EDA8864057D1_il2cpp_TypeInfo_var);
ArgumentException__ctor_m9A85EF7FEFEC21DDD525A67E831D77278E5165B7(L_7, _stringLiteral3D9A40DDD9AF3D33ED1C157EA10B0DD27C405802, /*hidden argument*/NULL);
IL2CPP_RAISE_MANAGED_EXCEPTION(L_7, NULL, SpatialMappingContext_DeregisterComponent_mA2B6842260276F8E0C622E7634AFEE4F6CF410CF_RuntimeMethod_var);
}
IL_0031:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::OnSurfaceDataReady(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
// int inFlightIdx = GetInFlightIndexFromSD(sd);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___sd0;
int32_t L_1 = SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9(__this, L_0, /*hidden argument*/NULL);
V_0 = L_1;
// PropagateDataReadyEventToComponents(sd, outputWritten, elapsedBakeTimeSeconds, inFlightIdx);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_2 = ___sd0;
bool L_3 = ___outputWritten1;
float L_4 = ___elapsedBakeTimeSeconds2;
int32_t L_5 = V_0;
SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA(__this, L_2, L_3, L_4, L_5, /*hidden argument*/NULL);
// UpdateInFlightRecords(inFlightIdx, elapsedBakeTimeSeconds);
int32_t L_6 = V_0;
float L_7 = ___elapsedBakeTimeSeconds2;
SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21(__this, L_6, L_7, /*hidden argument*/NULL);
// RequestMeshPriorityFromComponents();
SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Int32 UnityEngine.XR.WSA.SpatialMappingContext::GetInFlightIndexFromSD(UnityEngine.XR.WSA.SurfaceData)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingContext_GetInFlightIndexFromSD_mD5589ADEDEB5864958872B01F3668CEE8066F9D9 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, const RuntimeMethod* method)
{
int32_t V_0 = 0;
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 V_1;
memset((&V_1), 0, sizeof(V_1));
{
// for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex)
V_0 = 0;
goto IL_005a;
}
IL_0004:
{
// SMBakeRequest rq = m_InFlightRequests[inFlightIndex];
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_0 = __this->get_m_InFlightRequests_3();
int32_t L_1 = V_0;
NullCheck(L_0);
int32_t L_2 = L_1;
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_3 = (L_0)->GetAt(static_cast<il2cpp_array_size_t>(L_2));
V_1 = L_3;
// if (rq.m_RequestData.id.handle == sd.id.handle &&
// rq.m_RequestData.trianglesPerCubicMeter == sd.trianglesPerCubicMeter &&
// rq.m_RequestData.bakeCollider == sd.bakeCollider)
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_4 = V_1;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_5 = L_4.get_m_RequestData_0();
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_6 = L_5.get_id_0();
int32_t L_7 = L_6.get_handle_0();
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_8 = ___sd0;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_9 = L_8.get_id_0();
int32_t L_10 = L_9.get_handle_0();
if ((!(((uint32_t)L_7) == ((uint32_t)L_10))))
{
goto IL_0056;
}
}
{
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_11 = V_1;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_12 = L_11.get_m_RequestData_0();
float L_13 = L_12.get_trianglesPerCubicMeter_4();
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_14 = ___sd0;
float L_15 = L_14.get_trianglesPerCubicMeter_4();
if ((!(((float)L_13) == ((float)L_15))))
{
goto IL_0056;
}
}
{
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 L_16 = V_1;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_17 = L_16.get_m_RequestData_0();
bool L_18 = L_17.get_bakeCollider_5();
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_19 = ___sd0;
bool L_20 = L_19.get_bakeCollider_5();
if ((!(((uint32_t)L_18) == ((uint32_t)L_20))))
{
goto IL_0056;
}
}
{
// return inFlightIndex;
int32_t L_21 = V_0;
return L_21;
}
IL_0056:
{
// for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex)
int32_t L_22 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_22, (int32_t)1));
}
IL_005a:
{
// for (int inFlightIndex = 0; inFlightIndex < m_InFlightRequests.Length; ++inFlightIndex)
int32_t L_23 = V_0;
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_24 = __this->get_m_InFlightRequests_3();
NullCheck(L_24);
if ((((int32_t)L_23) < ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_24)->max_length)))))))
{
goto IL_0004;
}
}
{
// return -1;
return (-1);
}
}
// UnityEngine.XR.WSA.SpatialMappingBase UnityEngine.XR.WSA.SpatialMappingContext::GetSMComponentFromInFlightIndex(System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, const RuntimeMethod* method)
{
{
// if (inFlightIndex < 0)
int32_t L_0 = ___inFlightIndex0;
if ((((int32_t)L_0) >= ((int32_t)0)))
{
goto IL_0006;
}
}
{
// return null;
return (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL;
}
IL_0006:
{
// if (m_InFlightRequests == null ||
// inFlightIndex >= m_InFlightRequests.Length ||
// m_InFlightRequests[inFlightIndex].IsClear())
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_1 = __this->get_m_InFlightRequests_3();
if (!L_1)
{
goto IL_002c;
}
}
{
int32_t L_2 = ___inFlightIndex0;
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_3 = __this->get_m_InFlightRequests_3();
NullCheck(L_3);
if ((((int32_t)L_2) >= ((int32_t)(((int32_t)((int32_t)(((RuntimeArray*)L_3)->max_length)))))))
{
goto IL_002c;
}
}
{
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_4 = __this->get_m_InFlightRequests_3();
int32_t L_5 = ___inFlightIndex0;
NullCheck(L_4);
bool L_6 = SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5))), /*hidden argument*/NULL);
if (!L_6)
{
goto IL_002e;
}
}
IL_002c:
{
// return null;
return (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL;
}
IL_002e:
{
// return m_InFlightRequests[inFlightIndex].m_Requester.m_Component;
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_7 = __this->get_m_InFlightRequests_3();
int32_t L_8 = ___inFlightIndex0;
NullCheck(L_7);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_9 = ((L_7)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_8)))->get_address_of_m_Requester_1();
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_10 = L_9->get_m_Component_0();
return L_10;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::PropagateDataReadyEventToComponents(UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single,System.Int32)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___sd0, bool ___outputWritten1, float ___elapsedBakeTimeSeconds2, int32_t ___inFlightIndex3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_PropagateDataReadyEventToComponents_m16907610BA5CF7D52CF280FD949E783E9ECFD5CA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * V_1 = NULL;
Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 V_2;
memset((&V_2), 0, sizeof(V_2));
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_3;
memset((&V_3), 0, sizeof(V_3));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 1);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// SpatialMappingBase.LODType lod = SpatialMappingBase.GetLODFromTPCM(sd.trianglesPerCubicMeter);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___sd0;
float L_1 = L_0.get_trianglesPerCubicMeter_4();
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
int32_t L_2 = SpatialMappingBase_GetLODFromTPCM_mB942609B9A2BE4201CFF14AD29E3833D04AC17D8((((double)((double)(double)L_1))), /*hidden argument*/NULL);
V_0 = L_2;
// SpatialMappingBase requester = GetSMComponentFromInFlightIndex(inFlightIndex);
int32_t L_3 = ___inFlightIndex3;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_4 = SpatialMappingContext_GetSMComponentFromInFlightIndex_mF28F6A135A6D8C4FA7D76EEB7A98D62714C498F6(__this, L_3, /*hidden argument*/NULL);
V_1 = L_4;
// if (outputWritten)
bool L_5 = ___outputWritten1;
if (!L_5)
{
goto IL_0078;
}
}
{
// foreach (SMComponentRecord comp in m_Components)
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_6 = __this->get_m_Components_2();
NullCheck(L_6);
Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 L_7 = List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537(L_6, /*hidden argument*/List_1_GetEnumerator_m939FB5AF2C64F6D130A3B5E4CFABE1354497D537_RuntimeMethod_var);
V_2 = L_7;
}
IL_0025:
try
{ // begin try (depth: 1)
{
goto IL_005f;
}
IL_0027:
{
// foreach (SMComponentRecord comp in m_Components)
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_8 = Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_inline((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_RuntimeMethod_var);
V_3 = L_8;
// if (comp.m_Component.lodType == lod && comp.m_Component.bakePhysics == sd.bakeCollider)
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_9 = V_3;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_10 = L_9.get_m_Component_0();
NullCheck(L_10);
int32_t L_11 = SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline(L_10, /*hidden argument*/NULL);
int32_t L_12 = V_0;
if ((!(((uint32_t)L_11) == ((uint32_t)L_12))))
{
goto IL_005f;
}
}
IL_003d:
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_13 = V_3;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_14 = L_13.get_m_Component_0();
NullCheck(L_14);
bool L_15 = SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline(L_14, /*hidden argument*/NULL);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_16 = ___sd0;
bool L_17 = L_16.get_bakeCollider_5();
if ((!(((uint32_t)L_15) == ((uint32_t)L_17))))
{
goto IL_005f;
}
}
IL_0050:
{
// comp.m_OnDataReady(requester, sd, outputWritten, elapsedBakeTimeSeconds);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_18 = V_3;
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_19 = L_18.get_m_OnDataReady_1();
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_20 = V_1;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_21 = ___sd0;
bool L_22 = ___outputWritten1;
float L_23 = ___elapsedBakeTimeSeconds2;
NullCheck(L_19);
SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0(L_19, L_20, L_21, L_22, L_23, /*hidden argument*/NULL);
}
IL_005f:
{
// foreach (SMComponentRecord comp in m_Components)
bool L_24 = Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_MoveNext_mA753642A8866BCBB2E09790DACF356585713E7CD_RuntimeMethod_var);
if (L_24)
{
goto IL_0027;
}
}
IL_0068:
{
IL2CPP_LEAVE(0xBD, FINALLY_006a);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_006a;
}
FINALLY_006a:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A((Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 *)(&V_2), /*hidden argument*/Enumerator_Dispose_m8FD886547CD472ECD1472BB2F59C64E7D3A8759A_RuntimeMethod_var);
IL2CPP_END_FINALLY(106)
} // end finally (depth: 1)
IL2CPP_CLEANUP(106)
{
IL2CPP_JUMP_TBL(0xBD, IL_00bd)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_0078:
{
// if (inFlightIndex != -1)
int32_t L_25 = ___inFlightIndex3;
if ((((int32_t)L_25) == ((int32_t)(-1))))
{
goto IL_009e;
}
}
{
// m_InFlightRequests[inFlightIndex].m_Requester.m_OnDataReady(requester, sd, outputWritten, elapsedBakeTimeSeconds);
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_26 = __this->get_m_InFlightRequests_3();
int32_t L_27 = ___inFlightIndex3;
NullCheck(L_26);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_28 = ((L_26)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_27)))->get_address_of_m_Requester_1();
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_29 = L_28->get_m_OnDataReady_1();
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_30 = V_1;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_31 = ___sd0;
bool L_32 = ___outputWritten1;
float L_33 = ___elapsedBakeTimeSeconds2;
NullCheck(L_29);
SurfaceDataReadyCallback_Invoke_mD9CA9D1746AF5AE4D247404CF4E49DA5FEC086A0(L_29, L_30, L_31, L_32, L_33, /*hidden argument*/NULL);
// }
return;
}
IL_009e:
{
// Debug.LogError(System.String.Format("SpatialMappingContext unable to notify a component about a failure to cook surface {0}!", sd.id.handle));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_34 = ___sd0;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_35 = L_34.get_id_0();
int32_t L_36 = L_35.get_handle_0();
int32_t L_37 = L_36;
RuntimeObject * L_38 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_37);
String_t* L_39 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralAE9F75EABE0850F0B8A701C7B2478D0F8C395D79, L_38, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_39, /*hidden argument*/NULL);
}
IL_00bd:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::UpdateInFlightRecords(System.Int32,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, int32_t ___inFlightIndex0, float ___elapsedBakeTimeSeconds1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_UpdateInFlightRecords_mB8AD8D918F398F51B66087489675B921FC57BD21_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (inFlightIndex == 0 || inFlightIndex == 1)
int32_t L_0 = ___inFlightIndex0;
if (!L_0)
{
goto IL_0007;
}
}
{
int32_t L_1 = ___inFlightIndex0;
if ((!(((uint32_t)L_1) == ((uint32_t)1))))
{
goto IL_0055;
}
}
IL_0007:
{
// if (m_InFlightSurfaces <= 0)
int32_t L_2 = __this->get_m_InFlightSurfaces_4();
if ((((int32_t)L_2) > ((int32_t)0)))
{
goto IL_001c;
}
}
{
// Debug.LogError("SMContext: unexpectedly got a data ready event with too few in flight surfaces!");
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(_stringLiteralAC5BF571DE9975A9AA7E383FF7EA6E291929C5DE, /*hidden argument*/NULL);
// }
goto IL_002a;
}
IL_001c:
{
// m_InFlightSurfaces--;
int32_t L_3 = __this->get_m_InFlightSurfaces_4();
__this->set_m_InFlightSurfaces_4(((int32_t)il2cpp_codegen_subtract((int32_t)L_3, (int32_t)1)));
}
IL_002a:
{
// m_InFlightRequests[inFlightIndex].Clear();
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_4 = __this->get_m_InFlightRequests_3();
int32_t L_5 = ___inFlightIndex0;
NullCheck(L_4);
SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_4)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_5))), /*hidden argument*/NULL);
// if (!m_InFlightRequests[inFlightIndex].IsClear())
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_6 = __this->get_m_InFlightRequests_3();
int32_t L_7 = ___inFlightIndex0;
NullCheck(L_6);
SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_6)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_7))), /*hidden argument*/NULL);
// m_NextIndex = inFlightIndex;
int32_t L_8 = ___inFlightIndex0;
__this->set_m_NextIndex_5(L_8);
// }
return;
}
IL_0055:
{
// Debug.LogError(System.String.Format("SMContext: unable to update in flight record for an invalid index {0}!", inFlightIndex));
int32_t L_9 = ___inFlightIndex0;
int32_t L_10 = L_9;
RuntimeObject * L_11 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_10);
String_t* L_12 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral82AA2F03AC2CF34CF663318762D43CC36CFFC6C1, L_11, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_12, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::RequestMeshPriorityFromComponents()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C V_1;
memset((&V_1), 0, sizeof(V_1));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 V_2;
memset((&V_2), 0, sizeof(V_2));
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B9_0 = NULL;
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B8_0 = NULL;
int32_t G_B10_0 = 0;
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * G_B10_1 = NULL;
{
// if (m_InFlightSurfaces < kIdealInFlightSurfaceCount)
int32_t L_0 = __this->get_m_InFlightSurfaces_4();
if ((((int32_t)L_0) >= ((int32_t)2)))
{
goto IL_0110;
}
}
{
// for (int ii = 0; ii < m_Components.Count; ++ii)
V_0 = 0;
goto IL_00ff;
}
IL_0013:
{
// SMComponentRecord comp = m_Components[ii];
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_1 = __this->get_m_Components_2();
int32_t L_2 = V_0;
NullCheck(L_1);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_3 = List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_inline(L_1, L_2, /*hidden argument*/List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_RuntimeMethod_var);
V_1 = L_3;
// if (comp.m_GetHighestPri(out nextRequest))
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_4 = V_1;
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_5 = L_4.get_m_GetHighestPri_2();
NullCheck(L_5);
bool L_6 = GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3(L_5, (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *)(&V_2), /*hidden argument*/NULL);
if (!L_6)
{
goto IL_00fb;
}
}
{
// if (-1 == m_NextIndex || !m_InFlightRequests[m_NextIndex].IsClear())
int32_t L_7 = __this->get_m_NextIndex_5();
if ((((int32_t)(-1)) == ((int32_t)L_7)))
{
goto IL_0053;
}
}
{
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_8 = __this->get_m_InFlightRequests_3();
int32_t L_9 = __this->get_m_NextIndex_5();
NullCheck(L_8);
bool L_10 = SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C((SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *)((L_8)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_9))), /*hidden argument*/NULL);
if (L_10)
{
goto IL_006e;
}
}
IL_0053:
{
// Debug.LogError(System.String.Format("SMContext: next index {0} may not be clear!", m_NextIndex));
int32_t L_11 = __this->get_m_NextIndex_5();
int32_t L_12 = L_11;
RuntimeObject * L_13 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_12);
String_t* L_14 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteralF9641356B56AB3E220318DB9A52C7620EC3E8076, L_13, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_14, /*hidden argument*/NULL);
// }
return;
}
IL_006e:
{
// if (comp.m_SurfaceObserver.RequestMeshAsync(nextRequest, OnSurfaceDataReady))
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_15 = V_1;
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_16 = L_15.get_m_SurfaceObserver_3();
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_17 = V_2;
SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 * L_18 = (SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092 *)il2cpp_codegen_object_new(SurfaceDataReadyDelegate_t612948BD68C321AF19136CC76F4F94B778B20092_il2cpp_TypeInfo_var);
SurfaceDataReadyDelegate__ctor_mB653644D30A5B829714DDEE56B57C2C01AE263E2(L_18, __this, (intptr_t)((intptr_t)SpatialMappingContext_OnSurfaceDataReady_m504770F8B83EB20DF9020AAE149461207F847D4C_RuntimeMethod_var), /*hidden argument*/NULL);
NullCheck(L_16);
bool L_19 = SurfaceObserver_RequestMeshAsync_mF7815161E179CE34FBB9FC52127DAE4B39FEBE95(L_16, L_17, L_18, /*hidden argument*/NULL);
if (!L_19)
{
goto IL_00f0;
}
}
{
// m_InFlightRequests[m_NextIndex].m_RequestData = nextRequest;
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_20 = __this->get_m_InFlightRequests_3();
int32_t L_21 = __this->get_m_NextIndex_5();
NullCheck(L_20);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_22 = V_2;
((L_20)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_21)))->set_m_RequestData_0(L_22);
// m_InFlightRequests[m_NextIndex].m_Requester = comp;
SMBakeRequestU5BU5D_t061F4BF5C0EBA3134662FFE7D50CF7B67CCCECDD* L_23 = __this->get_m_InFlightRequests_3();
int32_t L_24 = __this->get_m_NextIndex_5();
NullCheck(L_23);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_25 = V_1;
((L_23)->GetAddressAt(static_cast<il2cpp_array_size_t>(L_24)))->set_m_Requester_1(L_25);
// m_InFlightSurfaces++;
int32_t L_26 = __this->get_m_InFlightSurfaces_4();
__this->set_m_InFlightSurfaces_4(((int32_t)il2cpp_codegen_add((int32_t)L_26, (int32_t)1)));
// m_NextIndex = m_NextIndex == 1 ? 0 : 1;
int32_t L_27 = __this->get_m_NextIndex_5();
G_B8_0 = __this;
if ((((int32_t)L_27) == ((int32_t)1)))
{
G_B9_0 = __this;
goto IL_00d1;
}
}
{
G_B10_0 = 1;
G_B10_1 = G_B8_0;
goto IL_00d2;
}
IL_00d1:
{
G_B10_0 = 0;
G_B10_1 = G_B9_0;
}
IL_00d2:
{
NullCheck(G_B10_1);
G_B10_1->set_m_NextIndex_5(G_B10_0);
// m_Components.RemoveAt(ii);
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_28 = __this->get_m_Components_2();
int32_t L_29 = V_0;
NullCheck(L_28);
List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342(L_28, L_29, /*hidden argument*/List_1_RemoveAt_m924A71B9A986C7A8F051600FF46E93DFAD73F342_RuntimeMethod_var);
// m_Components.Add(comp);
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_30 = __this->get_m_Components_2();
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_31 = V_1;
NullCheck(L_30);
List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009(L_30, L_31, /*hidden argument*/List_1_Add_mA1F24FBC4B1846126D906EC04A7A2455761DE009_RuntimeMethod_var);
// break;
return;
}
IL_00f0:
{
// Debug.LogError("SMContext: unexpected failure requesting mesh bake!");
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(_stringLiteral83D748A4D24B0945189E5C60B86FCDCF5E71A290, /*hidden argument*/NULL);
// break;
return;
}
IL_00fb:
{
// for (int ii = 0; ii < m_Components.Count; ++ii)
int32_t L_32 = V_0;
V_0 = ((int32_t)il2cpp_codegen_add((int32_t)L_32, (int32_t)1));
}
IL_00ff:
{
// for (int ii = 0; ii < m_Components.Count; ++ii)
int32_t L_33 = V_0;
List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * L_34 = __this->get_m_Components_2();
NullCheck(L_34);
int32_t L_35 = List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_inline(L_34, /*hidden argument*/List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_RuntimeMethod_var);
if ((((int32_t)L_33) < ((int32_t)L_35)))
{
goto IL_0013;
}
}
IL_0110:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::ComponentHasDataRequests()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext_ComponentHasDataRequests_m5529DEFB30F2B54DF0D7A2D293AFC2B1EF7B6C67 (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * __this, const RuntimeMethod* method)
{
{
// RequestMeshPriorityFromComponents();
SpatialMappingContext_RequestMeshPriorityFromComponents_m2F55523E87774786F18EE78A47CA1DAFD74E5705(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext::.cctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext__cctor_mE1027CD21E2DC2792C377C0FAC92F4A42B5506CD_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// private static readonly SpatialMappingContext instance = new SpatialMappingContext();
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = (SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 *)il2cpp_codegen_object_new(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext__ctor_mE213514204AEFCDC1130E4496A75CAC9C190EEC9(L_0, /*hidden argument*/NULL);
((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->set_instance_0(L_0);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass12_0__ctor_mF948151007C0E6D8E5A56D07390BB18A0EFEC22E (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass12_0::<RegisterComponent>b__0(UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811 (U3CU3Ec__DisplayClass12_0_t5A8DD8388DA2F2660BC9041A608B07D1574C7692 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___record0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass12_0_U3CRegisterComponentU3Eb__0_m1F1967D704E5FE3AD22823A3F582232B7CB9E811_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// SMComponentRecord findResult = m_Components.Find(record => record.m_Component == smComponent);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = ___record0;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_1 = L_0.get_m_Component_0();
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = __this->get_smComponent_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void U3CU3Ec__DisplayClass13_0__ctor_m8F2D1733A044CAB323EC721F55EF8CF934305373 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, const RuntimeMethod* method)
{
{
Object__ctor_m925ECA5E85CA100E3FB86A4F9E15C120E9A184C0(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_<>c__DisplayClass13_0::<DeregisterComponent>b__0(UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22 (U3CU3Ec__DisplayClass13_0_tC8ABC512A767F0D043F020D684BEAF1867207A89 * __this, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C ___record0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (U3CU3Ec__DisplayClass13_0_U3CDeregisterComponentU3Eb__0_m531DFED41F5A4968FD1E2672AA38C55D49452F22_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// int removeCount = m_Components.RemoveAll(record => record.m_Component == smComponent);
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = ___record0;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_1 = L_0.get_m_Component_0();
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_2 = __this->get_smComponent_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_3 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, L_2, /*hidden argument*/NULL);
return L_3;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::.ctor(System.Object,System.IntPtr)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GetHighestPriorityCallback__ctor_m47258A0A36E0E79506F872C8E03AB33D8A666B47 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, RuntimeObject * ___object0, intptr_t ___method1, const RuntimeMethod* method)
{
__this->set_method_ptr_0(il2cpp_codegen_get_method_pointer((RuntimeMethod*)___method1));
__this->set_method_3(___method1);
__this->set_m_target_2(___object0);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::Invoke(UnityEngine.XR.WSA.SurfaceData&)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_Invoke_m26851E34E8F7F00E6D82EB593811F3230E8CB3E3 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, const RuntimeMethod* method)
{
bool result = false;
DelegateU5BU5D_tDFCDEE2A6322F96C0FE49AF47E9ADB8C4B294E86* delegateArrayToInvoke = __this->get_delegates_11();
Delegate_t** delegatesToInvoke;
il2cpp_array_size_t length;
if (delegateArrayToInvoke != NULL)
{
length = delegateArrayToInvoke->max_length;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(delegateArrayToInvoke->GetAddressAtUnchecked(0));
}
else
{
length = 1;
delegatesToInvoke = reinterpret_cast<Delegate_t**>(&__this);
}
for (il2cpp_array_size_t i = 0; i < length; i++)
{
Delegate_t* currentDelegate = delegatesToInvoke[i];
Il2CppMethodPointer targetMethodPointer = currentDelegate->get_method_ptr_0();
RuntimeObject* targetThis = currentDelegate->get_m_target_2();
RuntimeMethod* targetMethod = (RuntimeMethod*)(currentDelegate->get_method_3());
if (!il2cpp_codegen_method_is_virtual(targetMethod))
{
il2cpp_codegen_raise_execution_engine_exception_if_method_is_not_found(targetMethod);
}
bool ___methodIsStatic = MethodIsStatic(targetMethod);
int ___parameterCount = il2cpp_codegen_method_parameter_count(targetMethod);
if (___methodIsStatic)
{
if (___parameterCount == 1)
{
// open
typedef bool (*FunctionPointerType) (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(___dataRequest0, targetMethod);
}
else
{
// closed
typedef bool (*FunctionPointerType) (void*, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(targetThis, ___dataRequest0, targetMethod);
}
}
else
{
// closed
if (il2cpp_codegen_method_is_virtual(targetMethod) && !il2cpp_codegen_object_is_of_sealed_type(targetThis) && il2cpp_codegen_delegate_has_invoker((Il2CppDelegate*)__this))
{
if (targetThis == NULL)
{
typedef bool (*FunctionPointerType) (SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(___dataRequest0, targetMethod);
}
else if (il2cpp_codegen_method_is_generic_instance(targetMethod))
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
result = GenericInterfaceFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(targetMethod, targetThis, ___dataRequest0);
else
result = GenericVirtFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(targetMethod, targetThis, ___dataRequest0);
}
else
{
if (il2cpp_codegen_method_is_interface_method(targetMethod))
result = InterfaceFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), il2cpp_codegen_method_get_declaring_type(targetMethod), targetThis, ___dataRequest0);
else
result = VirtFuncInvoker1< bool, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * >::Invoke(il2cpp_codegen_method_get_slot(targetMethod), targetThis, ___dataRequest0);
}
}
else
{
typedef bool (*FunctionPointerType) (void*, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 *, const RuntimeMethod*);
result = ((FunctionPointerType)targetMethodPointer)(targetThis, ___dataRequest0, targetMethod);
}
}
}
return result;
}
// System.IAsyncResult UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::BeginInvoke(UnityEngine.XR.WSA.SurfaceData&,System.AsyncCallback,System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject* GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, AsyncCallback_t3F3DA3BEDAEE81DD1D24125DF8EB30E85EE14DA4 * ___callback1, RuntimeObject * ___object2, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (GetHighestPriorityCallback_BeginInvoke_m1CE22675CEE0E13C0A8E683B62D6CE4B3E1DEB80_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
void *__d_args[2] = {0};
__d_args[0] = Box(SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66_il2cpp_TypeInfo_var, &*___dataRequest0);
return (RuntimeObject*)il2cpp_codegen_delegate_begin_invoke((RuntimeDelegate*)__this, __d_args, (RuntimeDelegate*)___callback1, (RuntimeObject*)___object2);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback::EndInvoke(UnityEngine.XR.WSA.SurfaceData&,System.IAsyncResult)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool GetHighestPriorityCallback_EndInvoke_m24E6E8AA7D5216421B258A5A146EDF5E80A16845 (GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * ___dataRequest0, RuntimeObject* ___result1, const RuntimeMethod* method)
{
void* ___out_args[] = {
___dataRequest0,
};
RuntimeObject *__result = il2cpp_codegen_delegate_end_invoke((Il2CppAsyncResult*) ___result1, ___out_args);
return *(bool*)UnBox ((RuntimeObject*)__result);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled)
{
Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL);
}
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke_back(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled)
{
Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL);
}
// Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_pinvoke_cleanup(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled)
{
Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL);
}
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com_back(const SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled, SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059& unmarshaled)
{
Exception_t* ___m_RequestData_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_RequestData' of type 'SMBakeRequest'.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_RequestData_0Exception, NULL, NULL);
}
// Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMBakeRequest
IL2CPP_EXTERN_C void SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshal_com_cleanup(SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059_marshaled_com& marshaled)
{
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946 (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method)
{
{
// m_RequestData.id.handle = 0;
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = __this->get_address_of_m_RequestData_0();
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * L_1 = L_0->get_address_of_id_0();
L_1->set_handle_0(0);
// m_Requester.Clear();
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_2 = __this->get_address_of_m_Requester_1();
SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF((SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *)L_2, /*hidden argument*/NULL);
// }
return;
}
}
IL2CPP_EXTERN_C void SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * _thisAdjusted = reinterpret_cast<SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *>(__this + 1);
SMBakeRequest_Clear_m86306BA81672224B59FAF4E222F232C6D2CC7946(_thisAdjusted, method);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_SMBakeRequest::IsClear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C (SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * __this, const RuntimeMethod* method)
{
{
// return (m_RequestData.id.handle == 0 && m_Requester.IsClear());
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 * L_0 = __this->get_address_of_m_RequestData_0();
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF * L_1 = L_0->get_address_of_id_0();
int32_t L_2 = L_1->get_handle_0();
if (L_2)
{
goto IL_001e;
}
}
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * L_3 = __this->get_address_of_m_Requester_1();
bool L_4 = SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6((SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *)L_3, /*hidden argument*/NULL);
return L_4;
}
IL_001e:
{
return (bool)0;
}
}
IL2CPP_EXTERN_C bool SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 * _thisAdjusted = reinterpret_cast<SMBakeRequest_tFD8DB762AEF9457B4E77417EA151D93CF413E059 *>(__this + 1);
return SMBakeRequest_IsClear_m3BA8862A1CA764128849ADFE016EBDAF51BB842C(_thisAdjusted, method);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled)
{
Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL);
}
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled)
{
Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL);
}
// Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_pinvoke_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_pinvoke& marshaled)
{
}
// Conversion methods for marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled)
{
Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL);
}
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_back(const SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled, SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C& unmarshaled)
{
Exception_t* ___m_Component_0Exception = il2cpp_codegen_get_marshal_directive_exception("Cannot marshal field 'm_Component' of type 'SMComponentRecord': Reference type field marshaling is not supported.");
IL2CPP_RAISE_MANAGED_EXCEPTION(___m_Component_0Exception, NULL, NULL);
}
// Conversion method for clean up from marshalling of: UnityEngine.XR.WSA.SpatialMappingContext/SMComponentRecord
IL2CPP_EXTERN_C void SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshal_com_cleanup(SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C_marshaled_com& marshaled)
{
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::.ctor(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SpatialMappingBase_SurfaceDataReadyCallback,UnityEngine.XR.WSA.SpatialMappingContext_GetHighestPriorityCallback,UnityEngine.XR.WSA.SurfaceObserver)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method)
{
{
// m_Component = comp;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_0 = ___comp0;
__this->set_m_Component_0(L_0);
// m_OnDataReady = onDataReady;
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_1 = ___onDataReady1;
__this->set_m_OnDataReady_1(L_1);
// m_GetHighestPri = getHighestPri;
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_2 = ___getHighestPri2;
__this->set_m_GetHighestPri_2(L_2);
// m_SurfaceObserver = observer;
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_3 = ___observer3;
__this->set_m_SurfaceObserver_3(L_3);
// }
return;
}
}
IL2CPP_EXTERN_C void SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723_AdjustorThunk (RuntimeObject * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___comp0, SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * ___onDataReady1, GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * ___getHighestPri2, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___observer3, const RuntimeMethod* method)
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1);
SMComponentRecord__ctor_m0D1ED3535BE9E9E7A81A16BE623A843126E9F723(_thisAdjusted, ___comp0, ___onDataReady1, ___getHighestPri2, ___observer3, method);
}
// System.Void UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::Clear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method)
{
{
// m_Component = null;
__this->set_m_Component_0((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 *)NULL);
// m_OnDataReady = null;
__this->set_m_OnDataReady_1((SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 *)NULL);
// m_GetHighestPri = null;
__this->set_m_GetHighestPri_2((GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 *)NULL);
// m_SurfaceObserver = null;
__this->set_m_SurfaceObserver_3((SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)NULL);
// }
return;
}
}
IL2CPP_EXTERN_C void SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1);
SMComponentRecord_Clear_m415CCE1F9F6B4654D3505256EFE05B49589A78DF(_thisAdjusted, method);
}
// System.Boolean UnityEngine.XR.WSA.SpatialMappingContext_SMComponentRecord::IsClear()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6 (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return m_Component == null
// && m_OnDataReady == null
// && m_GetHighestPri == null
// && m_SurfaceObserver == null;
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_0 = __this->get_m_Component_0();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_0028;
}
}
{
SurfaceDataReadyCallback_t534FB5C4E7192E6A02B5D39352EA1F35B770D592 * L_2 = __this->get_m_OnDataReady_1();
if (L_2)
{
goto IL_0028;
}
}
{
GetHighestPriorityCallback_tD9FA96BD5B1C533B326EFB828D2111E9096850E6 * L_3 = __this->get_m_GetHighestPri_2();
if (L_3)
{
goto IL_0028;
}
}
{
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_4 = __this->get_m_SurfaceObserver_3();
return (bool)((((RuntimeObject*)(SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 *)L_4) == ((RuntimeObject*)(RuntimeObject *)NULL))? 1 : 0);
}
IL_0028:
{
return (bool)0;
}
}
IL2CPP_EXTERN_C bool SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method)
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C * _thisAdjusted = reinterpret_cast<SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C *>(__this + 1);
return SMComponentRecord_IsClear_mB3D727B09FA7DC4790DB5566F73E967E28047ED6(_thisAdjusted, method);
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState UnityEngine.XR.WSA.SpatialMappingRenderer::get_renderState()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_CurrentRenderState;
int32_t L_0 = __this->get_m_CurrentRenderState_28();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_renderState(UnityEngine.XR.WSA.SpatialMappingRenderer_RenderState)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_renderState_m8450524C7413463F34521D71AF035D5558C220A2 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// m_CurrentRenderState = value;
int32_t L_0 = ___value0;
__this->set_m_CurrentRenderState_28(L_0);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248(__this, /*hidden argument*/NULL);
// }
return;
}
}
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_visualMaterial()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_VisualMaterial;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_VisualMaterial_29();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_visualMaterial(UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method)
{
{
// m_VisualMaterial = value;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0;
__this->set_m_VisualMaterial_29(L_0);
// }
return;
}
}
// UnityEngine.Material UnityEngine.XR.WSA.SpatialMappingRenderer::get_occlusionMaterial()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_OcclusionMaterial;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_OcclusionMaterial_30();
return L_0;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::set_occlusionMaterial(UnityEngine.Material)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method)
{
{
// m_OcclusionMaterial = value;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0;
__this->set_m_OcclusionMaterial_30(L_0);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnSurfaceDataReady(UnityEngine.XR.WSA.SpatialMappingBase,UnityEngine.XR.WSA.SurfaceData,System.Boolean,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * ___requester0, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___bakedData1, bool ___outputWritten2, float ___elapsedBakeTimeSeconds3, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer_OnSurfaceDataReady_m420A3B0A5C033BCC60642E85BAF41408A07B0BFA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * V_0 = NULL;
{
// if (!surfaceObjects.TryGetValue(bakedData.id.handle, out surface))
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_1 = ___bakedData1;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_2 = L_1.get_id_0();
int32_t L_3 = L_2.get_handle_0();
NullCheck(L_0);
bool L_4 = Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8(L_0, L_3, (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D **)(&V_0), /*hidden argument*/Dictionary_2_TryGetValue_mDACA589E0C84ACB7DF778908A14BED213D8A83F8_RuntimeMethod_var);
if (L_4)
{
goto IL_001b;
}
}
{
// return;
return;
}
IL_001b:
{
// surface.awaitingBake = false;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = V_0;
NullCheck(L_5);
Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline(L_5, (bool)0, /*hidden argument*/NULL);
// if (!outputWritten)
bool L_6 = ___outputWritten2;
if (L_6)
{
goto IL_0026;
}
}
{
// return;
return;
}
IL_0026:
{
// if (surface.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = V_0;
NullCheck(L_7);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_9 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_8, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_9)
{
goto IL_0054;
}
}
{
// Debug.LogError(string.Format("A SpatialMappingRenderer component can not apply baked data to a surface with id \"{0}\" because its GameObject is null.", bakedData.id.handle));
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_10 = ___bakedData1;
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_11 = L_10.get_id_0();
int32_t L_12 = L_11.get_handle_0();
int32_t L_13 = L_12;
RuntimeObject * L_14 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &L_13);
String_t* L_15 = String_Format_m0ACDD8B34764E4040AED0B3EEB753567E4576BFA(_stringLiteral62234BEF4038675D8DA131376AEB172897EAB03D, L_14, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_LogError_m3BCF9B78263152261565DCA9DB7D55F0C391ED29(L_15, /*hidden argument*/NULL);
// return;
return;
}
IL_0054:
{
// if (requester != this)
SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * L_16 = ___requester0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_17 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_16, __this, /*hidden argument*/NULL);
if (!L_17)
{
goto IL_0065;
}
}
{
// CloneBakedComponents(bakedData, surface);
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_18 = ___bakedData1;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_19 = V_0;
SpatialMappingBase_CloneBakedComponents_m66D3996C9094FE1F3DFCAF19BBA3CBEED006BDFC(__this, L_18, L_19, /*hidden argument*/NULL);
}
IL_0065:
{
// if (surface.meshRenderer == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_20 = V_0;
NullCheck(L_20);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_21 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_20, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_22 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_21, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_22)
{
goto IL_00bb;
}
}
{
// surface.meshRenderer = surface.gameObject.GetComponent<MeshRenderer>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = V_0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_24 = V_0;
NullCheck(L_24);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_25 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_24, /*hidden argument*/NULL);
NullCheck(L_25);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_26 = GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72(L_25, /*hidden argument*/GameObject_GetComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m91C1D9637A332988C72E62D52DFCFE89A6DDAB72_RuntimeMethod_var);
NullCheck(L_23);
Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_23, L_26, /*hidden argument*/NULL);
// if (surface.meshRenderer == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_27 = V_0;
NullCheck(L_27);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_28 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_27, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_29 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_28, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_29)
{
goto IL_00a3;
}
}
{
// surface.meshRenderer = surface.gameObject.AddComponent<MeshRenderer>();
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_30 = V_0;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_31 = V_0;
NullCheck(L_31);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_32 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_31, /*hidden argument*/NULL);
NullCheck(L_32);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_33 = GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E(L_32, /*hidden argument*/GameObject_AddComponent_TisMeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED_m16409C054F66125E0380BDDDB1454118A3BAD60E_RuntimeMethod_var);
NullCheck(L_30);
Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_30, L_33, /*hidden argument*/NULL);
}
IL_00a3:
{
// surface.meshRenderer.receiveShadows = false;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_34 = V_0;
NullCheck(L_34);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_35 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_34, /*hidden argument*/NULL);
NullCheck(L_35);
Renderer_set_receiveShadows_mD2BD2FF58156E328677EAE5E175D2069BC2925A0(L_35, (bool)0, /*hidden argument*/NULL);
// surface.meshRenderer.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_36 = V_0;
NullCheck(L_36);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_37 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_36, /*hidden argument*/NULL);
NullCheck(L_37);
Renderer_set_shadowCastingMode_mC7E601EE9B32B63097B216C78ED4F854B0AF21EC(L_37, 0, /*hidden argument*/NULL);
}
IL_00bb:
{
// ApplyRenderSettings(surface.meshRenderer);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_38 = V_0;
NullCheck(L_38);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_39 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_38, /*hidden argument*/NULL);
SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_39, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnBeginSurfaceEviction(System.Boolean,UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, bool ___shouldBeActiveWhileRemoved0, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface1, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer_OnBeginSurfaceEviction_mCD9F24ED93F611DFA1A51A198CC5CC00D5291AFE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (surface.gameObject == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface1;
NullCheck(L_0);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_000f;
}
}
{
// return;
return;
}
IL_000f:
{
// if (surface.meshRenderer == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface1;
NullCheck(L_3);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_3, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_5 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_4, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_5)
{
goto IL_001e;
}
}
{
// return;
return;
}
IL_001e:
{
// surface.meshRenderer.enabled = shouldBeActiveWhileRemoved;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = ___surface1;
NullCheck(L_6);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_7 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_6, /*hidden argument*/NULL);
bool L_8 = ___shouldBeActiveWhileRemoved0;
NullCheck(L_7);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_7, L_8, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyPropertiesToCachedSurfaces()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B V_0;
memset((&V_0), 0, sizeof(V_0));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_1;
memset((&V_1), 0, sizeof(V_1));
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 V_2;
memset((&V_2), 0, sizeof(V_2));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
{
// if (surfaceObjects == null || surfaceObjects.Count == 0)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
if (!L_0)
{
goto IL_0015;
}
}
{
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_1 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_1);
int32_t L_2 = Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81(L_1, /*hidden argument*/Dictionary_2_get_Count_m2CDCD61FC23B545272373EDBD6A1B6D3D3743C81_RuntimeMethod_var);
if (L_2)
{
goto IL_0016;
}
}
IL_0015:
{
// return;
return;
}
IL_0016:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_3 = SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline(__this, /*hidden argument*/NULL);
NullCheck(L_3);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_4 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_3, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_4;
}
IL_0022:
try
{ // begin try (depth: 1)
{
goto IL_0066;
}
IL_0024:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_5 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_1 = L_5;
// GameObject go = kvp.Value.gameObject;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_6 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_6);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline(L_6, /*hidden argument*/NULL);
// if (go == null)
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_8 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_7, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_8)
{
goto IL_0066;
}
}
IL_0040:
{
// if (kvp.Value.meshRenderer == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_9);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_10 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_9, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_11 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_10, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_11)
{
goto IL_0066;
}
}
IL_0054:
{
// ApplyRenderSettings(kvp.Value.meshRenderer);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_12 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_1), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_12);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_13 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_12, /*hidden argument*/NULL);
SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_13, /*hidden argument*/NULL);
}
IL_0066:
{
// foreach (KeyValuePair<int, Surface> kvp in surfaceObjects)
bool L_14 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_14)
{
goto IL_0024;
}
}
IL_006f:
{
IL2CPP_LEAVE(0x7F, FINALLY_0071);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_0071;
}
FINALLY_0071:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(113)
} // end finally (depth: 1)
IL2CPP_CLEANUP(113)
{
IL2CPP_JUMP_TBL(0x7F, IL_007f)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_007f:
{
// foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction)
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_15 = SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline(__this, /*hidden argument*/NULL);
NullCheck(L_15);
Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B L_16 = Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA(L_15, /*hidden argument*/Dictionary_2_GetEnumerator_m0300CC2BC49A99CDFDCC047C98483F6B260D60AA_RuntimeMethod_var);
V_0 = L_16;
}
IL_008b:
try
{ // begin try (depth: 1)
{
goto IL_00e4;
}
IL_008d:
{
// foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction)
KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 L_17 = Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_inline((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_get_Current_m37FCDF5205966327A1B07E0EB67D6592617B58E8_RuntimeMethod_var);
V_2 = L_17;
// if (kvp.Value.meshRenderer == null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_18 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_18);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_19 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_18, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_20 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_19, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (L_20)
{
goto IL_00e4;
}
}
IL_00a9:
{
// ApplyRenderSettings(kvp.Value.meshRenderer);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_21 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_21);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_22 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_21, /*hidden argument*/NULL);
SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50(__this, L_22, /*hidden argument*/NULL);
// if (ShouldRemainActiveWhileBeingRemoved(kvp.Value))
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_23 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
bool L_24 = SpatialMappingBase_ShouldRemainActiveWhileBeingRemoved_m41DCE64B180FB28C5CB32BA4BE2DACCF72B3FCC6(__this, L_23, /*hidden argument*/NULL);
if (!L_24)
{
goto IL_00e4;
}
}
IL_00ca:
{
// kvp.Value.meshRenderer.enabled = renderState != RenderState.None;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_25 = KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_inline((KeyValuePair_2_t3CC18F83AB40E690969F71CD1B17C93AC44B9248 *)(&V_2), /*hidden argument*/KeyValuePair_2_get_Value_m06A77EF14A4355BA4DBB9A14F3349AE383148180_RuntimeMethod_var);
NullCheck(L_25);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_26 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_25, /*hidden argument*/NULL);
int32_t L_27 = SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline(__this, /*hidden argument*/NULL);
NullCheck(L_26);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_26, (bool)((!(((uint32_t)L_27) <= ((uint32_t)0)))? 1 : 0), /*hidden argument*/NULL);
}
IL_00e4:
{
// foreach (KeyValuePair<int, SpatialMappingBase.Surface> kvp in pendingSurfacesForEviction)
bool L_28 = Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_MoveNext_m89C5C4731B704A423349D173039D37C359DA29B1_RuntimeMethod_var);
if (L_28)
{
goto IL_008d;
}
}
IL_00ed:
{
IL2CPP_LEAVE(0xFD, FINALLY_00ef);
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__last_unhandled_exception = (Exception_t *)e.ex;
goto FINALLY_00ef;
}
FINALLY_00ef:
{ // begin finally (depth: 1)
Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1((Enumerator_t2F558C13712498A11197D34827AEBB22E2A0920B *)(&V_0), /*hidden argument*/Enumerator_Dispose_m8E035759C06A467EA835FD23E36AF6308A6493B1_RuntimeMethod_var);
IL2CPP_END_FINALLY(239)
} // end finally (depth: 1)
IL2CPP_CLEANUP(239)
{
IL2CPP_JUMP_TBL(0xFD, IL_00fd)
IL2CPP_RETHROW_IF_UNHANDLED(Exception_t *)
}
IL_00fd:
{
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::ApplyRenderSettings(UnityEngine.MeshRenderer)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___meshRenderer0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer_ApplyRenderSettings_m5A6A66E6A9D7088B675CE293E9F127188EBB8F50_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
int32_t V_0 = 0;
{
// if (meshRenderer == null)
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___meshRenderer0;
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_1 = Object_op_Equality_mBC2401774F3BE33E8CF6F0A8148E66C95D6CFF1C(L_0, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_000a;
}
}
{
// return;
return;
}
IL_000a:
{
// switch (renderState)
int32_t L_2 = SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline(__this, /*hidden argument*/NULL);
V_0 = L_2;
int32_t L_3 = V_0;
switch (L_3)
{
case 0:
{
goto IL_004c;
}
case 1:
{
goto IL_0024;
}
case 2:
{
goto IL_0038;
}
}
}
{
return;
}
IL_0024:
{
// meshRenderer.sharedMaterial = occlusionMaterial;
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = ___meshRenderer0;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_5 = SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline(__this, /*hidden argument*/NULL);
NullCheck(L_4);
Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_4, L_5, /*hidden argument*/NULL);
// meshRenderer.enabled = true;
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_6 = ___meshRenderer0;
NullCheck(L_6);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_6, (bool)1, /*hidden argument*/NULL);
// break;
return;
}
IL_0038:
{
// meshRenderer.sharedMaterial = visualMaterial;
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_7 = ___meshRenderer0;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_8 = SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline(__this, /*hidden argument*/NULL);
NullCheck(L_7);
Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_7, L_8, /*hidden argument*/NULL);
// meshRenderer.enabled = true;
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_9 = ___meshRenderer0;
NullCheck(L_9);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_9, (bool)1, /*hidden argument*/NULL);
// break;
return;
}
IL_004c:
{
// meshRenderer.enabled = false;
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_10 = ___meshRenderer0;
NullCheck(L_10);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_10, (bool)0, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::DestroySurface(UnityEngine.XR.WSA.SpatialMappingBase_Surface)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * ___surface0, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer_DestroySurface_mD0C57EF7CC663F5487EC4AB804E6AED68460E2BA_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// if (surface.meshRenderer != null)
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_0 = ___surface0;
NullCheck(L_0);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_1 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_0, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
bool L_2 = Object_op_Inequality_m31EF58E217E8F4BDD3E409DEF79E1AEE95874FC1(L_1, (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 *)NULL, /*hidden argument*/NULL);
if (!L_2)
{
goto IL_0038;
}
}
{
// surface.meshRenderer.sharedMaterial = null;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_3 = ___surface0;
NullCheck(L_3);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_4 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_3, /*hidden argument*/NULL);
NullCheck(L_4);
Renderer_set_sharedMaterial_mC94A354D9B0FCA081754A7CB51AEE5A9AD3946A3(L_4, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL);
// surface.meshRenderer.enabled = false;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_5 = ___surface0;
NullCheck(L_5);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_6 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_5, /*hidden argument*/NULL);
NullCheck(L_6);
Renderer_set_enabled_m0933766657F2685BAAE3340B0A984C0E63925303(L_6, (bool)0, /*hidden argument*/NULL);
// Destroy(surface.meshRenderer);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_7 = ___surface0;
NullCheck(L_7);
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_8 = Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline(L_7, /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_8, /*hidden argument*/NULL);
// surface.meshRenderer = null;
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_9 = ___surface0;
NullCheck(L_9);
Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline(L_9, (MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED *)NULL, /*hidden argument*/NULL);
}
IL_0038:
{
// base.DestroySurface(surface);
Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * L_10 = ___surface0;
SpatialMappingBase_DestroySurface_m61864CCED61827A61A95FA29FAD6ED9920F67E04(__this, L_10, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnDestroy()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnDestroy_m9D860213004344023EA62B0F871F9034B73B1435 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// occlusionMaterial = null;
SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline(__this, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL);
// visualMaterial = null;
SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline(__this, (Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 *)NULL, /*hidden argument*/NULL);
// base.OnDestroy();
SpatialMappingBase_OnDestroy_mAF2456D391A059BD21C03AC4F8D0CC1119677E54(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::OnResetProperties()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_OnResetProperties_m3FBB23E78FA0835DA1938EA25F0C526EDB114CF3 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// base.OnResetProperties();
SpatialMappingBase_OnResetProperties_mD42F9367CEA98C6FABE37B83736BD9C6E405AE5A(__this, /*hidden argument*/NULL);
// ApplyPropertiesToCachedSurfaces();
SpatialMappingRenderer_ApplyPropertiesToCachedSurfaces_mBF763A7CC07840540AF529416F5F8F21F3929248(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::Reset()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer_Reset_m34D8765E9CDCDF837994F9D19748F16054304DEF (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// base.Reset();
SpatialMappingBase_Reset_m2DB6F9468DCD37B2364AC0E1638C2D8C16A0B411(__this, /*hidden argument*/NULL);
// }
return;
}
}
// System.Void UnityEngine.XR.WSA.SpatialMappingRenderer::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77 (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingRenderer__ctor_m14922A96C242112D7063A6D099A62FAE3683AA77_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// private RenderState m_CurrentRenderState = RenderState.Occlusion;
__this->set_m_CurrentRenderState_28(1);
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
SpatialMappingBase__ctor_m2C139D01FF3CA646961AB38B6A16E8D42E2C6448(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_timeToPressOnTap_m98D628A1BA4ADD84B66268FC108B32F6FC8B1FC0_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// get { return m_TimeToPressOnTap; }
float L_0 = __this->get_m_TimeToPressOnTap_31();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float HoloLensInputModule_get_normalizedNavigationToScreenOffsetScalar_mE683140D392D6E0CC4161770428E8BDF5C69BC6E_inline (HoloLensInputModule_tC36B61820547C510BC172F7EA408C6C9AC1C2FFB * __this, const RuntimeMethod* method)
{
{
// get { return m_NormalizedNavigationToScreenOffsetScalar; }
float L_0 = __this->get_m_NormalizedNavigationToScreenOffsetScalar_30();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool StandaloneInputModule_get_forceModuleActive_m7C481C9C4D478CB162E289F9D038859990973E6E_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method)
{
{
// get { return m_ForceModuleActive; }
bool L_0 = __this->get_m_ForceModuleActive_29();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * StandaloneInputModule_GetCurrentFocusedGameObject_mA354FCB4E2546E1F49D165207705A26D29EBB3D7_inline (StandaloneInputModule_tF3BDE3C0D374D1A0C87654254FA5E74F6B8C1EF5 * __this, const RuntimeMethod* method)
{
{
// return m_CurrentFocusedGameObject;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_CurrentFocusedGameObject_21();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * BaseInputModule_get_eventSystem_mEF6DEC17FF56D786AA217A52FCCFE8C6F38546BE_inline (BaseInputModule_t904837FCFA79B6C3CED862FF85C9C5F8D6F32939 * __this, const RuntimeMethod* method)
{
{
// get { return m_EventSystem; }
EventSystem_t06ACEF1C8D95D44D3A7F57ED4BAA577101B4EA77 * L_0 = __this->get_m_EventSystem_6();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_observerId_m6AFBE2E2DD43BE4877B51B515994535F544E1E07_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// protected int observerId { get; set; }
int32_t L_0 = ___value0;
__this->set_U3CobserverIdU3Ek__BackingField_16(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObjects_m034B1632BAC1CE797ADE3EF453B3BF7F0C0B8E90_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * ___value0, const RuntimeMethod* method)
{
{
// protected Dictionary<int, Surface> surfaceObjects { get; set; }
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = ___value0;
__this->set_U3CsurfaceObjectsU3Ek__BackingField_18(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_selectedCamera_m571711921F39F8AC923BF9964A3E559DEF2455A2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * ___value0, const RuntimeMethod* method)
{
{
// protected Camera selectedCamera { get; set; }
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = ___value0;
__this->set_U3CselectedCameraU3Ek__BackingField_21(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_nextSurfaceChangeUpdateTime_m6EC9BA4E9FFDEE3AA5687571ABA564FB59BF590E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, float ___value0, const RuntimeMethod* method)
{
{
// protected float nextSurfaceChangeUpdateTime { get; set; }
float L_0 = ___value0;
__this->set_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceObserver_mDDE2BC259C50248E17B85DDB4C68097E7C97B9DE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * ___value0, const RuntimeMethod* method)
{
{
// protected SurfaceObserver surfaceObserver { get; set; }
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = ___value0;
__this->set_U3CsurfaceObserverU3Ek__BackingField_17(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingContext_get_Instance_mA5271449E43E6E5007DDB44EA5A45D2654F37010Unity_XR_WindowsMR_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// get { return instance; }
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var);
SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956 * L_0 = ((SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingContext_tA89EB4233F15400EB4738958914DC70FE97D5956_il2cpp_TypeInfo_var))->get_instance_0();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * SpatialMappingBase_get_surfaceObserver_mCCFB2C005717E6F95DEF12840A43E6711CB1E168_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected SurfaceObserver surfaceObserver { get; set; }
SurfaceObserver_tE97E43137858D5F6A417980ECDABAC2BB4CF1864 * L_0 = __this->get_U3CsurfaceObserverU3Ek__BackingField_17();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_halfBoxExtents_m13BDC602E59A22A2237003FB8CB41180AFA2081F_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_HalfBoxExtents; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_m_HalfBoxExtents_11();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bounds_m537FDB6EDF4E405E7D140CFE44828BCB753C60EE_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 ___value0, const RuntimeMethod* method)
{
{
// protected Bounds bounds { get; set; }
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = ___value0;
__this->set_U3CboundsU3Ek__BackingField_19(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_surfaceObjects_m0CC973B69325925F0B65A557961CCD49E76FCAE4_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Dictionary<int, Surface> surfaceObjects { get; set; }
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_U3CsurfaceObjectsU3Ek__BackingField_18();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Surface_get_gameObject_mC80624C81F37ADB28DD9BBF0E74FCAA9BD2ACBFD_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public GameObject gameObject { get; set; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_U3CgameObjectU3Ek__BackingField_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * SpatialMappingBase_get_pendingSurfacesForEviction_mCF200E69F146C059057BF8F2B08D283EF1B8916E_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_PendingSurfacesForEviction;
Dictionary_2_t38715BC71AE0DD0B9003B7ED7B8BF706C7A10A10 * L_0 = __this->get_m_PendingSurfacesForEviction_23();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_surfaceParentWasDynamicallyCreated_mBC600B152C29512A2F47D435843B491F0A23A338_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_SurfaceParentWasDynamicallyCreated;
bool L_0 = __this->get_m_SurfaceParentWasDynamicallyCreated_25();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * SpatialMappingBase_get_surfaceParent_m19EDABA4E196956D3D93D0E8F71582B62FBEB6AC_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SurfaceParent; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_m_SurfaceParent_7();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParent_mEA691909114179FEFB851F5A3BA8897A41626B7D_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method)
{
{
// set { m_SurfaceParent = value; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0;
__this->set_m_SurfaceParent_7(L_0);
// set { m_SurfaceParent = value; }
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 SpatialMappingBase_get_lastUpdatedObserverPosition_mDA859EDB4C79D8D0E51EE5E1F5AB66C66A0FA88B_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Vector3 lastUpdatedObserverPosition { get; set; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = __this->get_U3ClastUpdatedObserverPositionU3Ek__BackingField_20();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_freezeUpdates_m10DAC55A998837D64FE4BB84A4E29D8A852014F2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_FreezeUpdates; }
bool L_0 = __this->get_m_FreezeUpdates_8();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_nextSurfaceChangeUpdateTime_mAB42AB4923890CE64BE6EC93A19002886CC88FAA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected float nextSurfaceChangeUpdateTime { get; set; }
float L_0 = __this->get_U3CnextSurfaceChangeUpdateTimeU3Ek__BackingField_22();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_secondsBetweenUpdates_m08248C91683C82EAF76C2B78F18A6156DA5AD13A_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SecondsBetweenUpdates; }
float L_0 = __this->get_m_SecondsBetweenUpdates_14();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_volumeType_mDF6DCFE4058C803023B930E1252589CB247BF7CA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_VolumeType; }
int32_t L_0 = __this->get_m_VolumeType_9();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR float SpatialMappingBase_get_sphereRadius_m305DE7E01DD8F4B32A7DEE6B1F3B2A8ABA912100_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_SphereRadius; }
float L_0 = __this->get_m_SphereRadius_10();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 SpatialMappingBase_get_bounds_m555A8D615D0643F8FB75D086714A5A5D6AA371D2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Bounds bounds { get; set; }
Bounds_tA2716F5212749C61B0E7B7B77E0CD3D79B742890 L_0 = __this->get_U3CboundsU3Ek__BackingField_19();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_lastUpdatedObserverPosition_mFE6057264FC068449849BDAA7481A917B2FB75F8_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method)
{
{
// protected Vector3 lastUpdatedObserverPosition { get; set; }
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_0 = ___value0;
__this->set_U3ClastUpdatedObserverPositionU3Ek__BackingField_20(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingBase_get_bakePhysics_mEC35DF531261812F504FBDB432688A4A9B6B03FA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_BakePhysics;
bool L_0 = __this->get_m_BakePhysics_15();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceData_mEC13E0AFED47ECB2A1725FADF5D53281AFD14861_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 ___value0, const RuntimeMethod* method)
{
{
// public SurfaceData surfaceData { get; set; }
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = ___value0;
__this->set_U3CsurfaceDataU3Ek__BackingField_3(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 Surface_get_surfaceData_mC250E5E679350C2D8B12A3B25837AE81835C57F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public SurfaceData surfaceData { get; set; }
SurfaceData_t4C48F847E8643D6640786CC364CDB510C7C60C66 L_0 = __this->get_U3CsurfaceDataU3Ek__BackingField_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1B_inline (const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (SpatialMappingBase_get_lodToPcm_mFBE96F0FB37447FF4C4065AB86F0ADBB70178A1BUnity_XR_WindowsMR_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
// return s_LodToPcm;
IL2CPP_RUNTIME_CLASS_INIT(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var);
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_0 = ((SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_StaticFields*)il2cpp_codegen_static_fields_for(SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54_il2cpp_TypeInfo_var))->get_s_LodToPcm_26();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_lodType_m4B32B9551C2BA8DD7F9C0D7B47AE6B3B98FAC40C_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_LodType; }
int32_t L_0 = __this->get_m_LodType_12();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_awaitingBake_m8385EA301C24253FCD0A9CA20B966772763217F8_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, bool ___value0, const RuntimeMethod* method)
{
{
// public bool awaitingBake { get; set; }
bool L_0 = ___value0;
__this->set_U3CawaitingBakeU3Ek__BackingField_5(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_updateTime_m8FDDAF318259294A7184AE968CBC52051BE225F2_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___value0, const RuntimeMethod* method)
{
{
// public System.DateTime updateTime { get; set; }
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = ___value0;
__this->set_U3CupdateTimeU3Ek__BackingField_1(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_surfaceId_m0B776CEC7A925E7780973C2E0D787C58B28439F1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF ___value0, const RuntimeMethod* method)
{
{
// public SurfaceId surfaceId { get; set; }
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = ___value0;
__this->set_U3CsurfaceIdU3Ek__BackingField_0(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * Surface_get_meshFilter_mC98AFDAB739A2DD5C2189C2330813833FF17047C_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshFilter meshFilter { get; set; }
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = __this->get_U3CmeshFilterU3Ek__BackingField_6();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_observerId_m11215996E1207E53F6F0C1218CA50AD058B80495_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected int observerId { get; set; }
int32_t L_0 = __this->get_U3CobserverIdU3Ek__BackingField_16();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_surfaceParentWasDynamicallyCreated_mAD419F4D32525643B8F2FF5823F130360DA915A1_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// m_SurfaceParentWasDynamicallyCreated = value;
bool L_0 = ___value0;
__this->set_m_SurfaceParentWasDynamicallyCreated_25(L_0);
// }
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF Surface_get_surfaceId_mAD37AE571E345D3B6850E57137292FE70E6F388B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public SurfaceId surfaceId { get; set; }
SurfaceId_t5FCE14311FE5CFC3C4DDFCAC0B7FC2F54123E9BF L_0 = __this->get_U3CsurfaceIdU3Ek__BackingField_0();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_gameObject_mA485C86A72C7B313E831FD5F2853338DF24C87F4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___value0, const RuntimeMethod* method)
{
{
// public GameObject gameObject { get; set; }
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = ___value0;
__this->set_U3CgameObjectU3Ek__BackingField_2(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshFilter_m09D0BD0AB6A36F2DB45400E12EE2D6CCE0FDF7A1_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * ___value0, const RuntimeMethod* method)
{
{
// public MeshFilter meshFilter { get; set; }
MeshFilter_t8D4BA8E8723DE5CFF53B0DA5EE2F6B3A5B0E0FE0 * L_0 = ___value0;
__this->set_U3CmeshFilterU3Ek__BackingField_6(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * Surface_get_worldAnchor_mB462702EE57F8357BEA86C56EF2E35CC0BDB0669_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public WorldAnchor worldAnchor { get; set; }
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = __this->get_U3CworldAnchorU3Ek__BackingField_9();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_worldAnchor_m89D7EAB5602CF873669A9D4FFAC3D3B8528C3CEE_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * ___value0, const RuntimeMethod* method)
{
{
// public WorldAnchor worldAnchor { get; set; }
WorldAnchor_tD6275232D14415769601A3BD6AE1E7D5622F96EE * L_0 = ___value0;
__this->set_U3CworldAnchorU3Ek__BackingField_9(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingBase_get_numUpdatesBeforeRemoval_m6F510DAD1B7465439C2D15C640FF4F0C2FB004BA_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// get { return m_NumUpdatesBeforeRemoval; }
int32_t L_0 = __this->get_m_NumUpdatesBeforeRemoval_13();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_remainingUpdatesToLive_m1E017099A57598E4DD2D9DCF453B4146370E4537_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, int32_t ___value0, const RuntimeMethod* method)
{
{
// public int remainingUpdatesToLive { get; set; }
int32_t L_0 = ___value0;
__this->set_U3CremainingUpdatesToLiveU3Ek__BackingField_4(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * SpatialMappingBase_get_selectedCamera_mE3E4571F7EAF1DF70B6762BC57B6CBAFCB17E834_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// protected Camera selectedCamera { get; set; }
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = __this->get_U3CselectedCameraU3Ek__BackingField_21();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * SpatialMappingBase_get_surfacesToRemoveFromDict_m606CAFC00D84776A197134FEB8DEABCB5D2A9FF2_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, const RuntimeMethod* method)
{
{
// return m_SurfacesToRemoveFromDict;
List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * L_0 = __this->get_m_SurfacesToRemoveFromDict_24();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t Surface_get_remainingUpdatesToLive_m5D45BD30D4CCCAF01FDC1E4D6ACA402AF2E5C1B4_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public int remainingUpdatesToLive { get; set; }
int32_t L_0 = __this->get_U3CremainingUpdatesToLiveU3Ek__BackingField_4();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool Surface_get_awaitingBake_m3B199586E0066144D8986804B73E5BDE97FEEB40_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public bool awaitingBake { get; set; }
bool L_0 = __this->get_U3CawaitingBakeU3Ek__BackingField_5();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 Surface_get_updateTime_m580ACCD9FDFE2AFE4A982ED12B8B1FC47FACE842_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public System.DateTime updateTime { get; set; }
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 L_0 = __this->get_U3CupdateTimeU3Ek__BackingField_1();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingBase_set_bakePhysics_m33D62027F99886807A3AD366148A4605E0DF45BB_inline (SpatialMappingBase_t167ADE0B4947CD21C9D7A7E7ED77D53B4D8EED54 * __this, bool ___value0, const RuntimeMethod* method)
{
{
// m_BakePhysics = value;
bool L_0 = ___value0;
__this->set_m_BakePhysics_15(L_0);
// }
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingCollider_get_layer_mE79B36D09B8678D3FECB869B2BAE3E32A2B46174_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_Layer;
int32_t L_0 = __this->get_m_Layer_28();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * SpatialMappingCollider_get_material_mDE3ACB243D47BDF83842A25A2EAD67FA35AFBBC8_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_Material;
PhysicMaterial_tBEBB6F4620A5221A4CBAEDB2E5984CCA70AA07F8 * L_0 = __this->get_m_Material_29();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * Surface_get_meshCollider_mE1129925A8317A78C97969DC89EF12FA1701226E_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshCollider meshCollider { get; set; }
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = __this->get_U3CmeshColliderU3Ek__BackingField_8();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshCollider_m2928D4F59FDD43EDBA2C0A46D5B66BFFB80DAD5B_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * ___value0, const RuntimeMethod* method)
{
{
// public MeshCollider meshCollider { get; set; }
MeshCollider_t60EB55ADE92499FE8D1AA206D2BD96E65B2766DE * L_0 = ___value0;
__this->set_U3CmeshColliderU3Ek__BackingField_8(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool SpatialMappingCollider_get_enableCollisions_m7F553859CFEE41A8A022EC44E5132A57EB557164_inline (SpatialMappingCollider_t269F3D93B36B8F12F2A5D30A1A313CD32A4AB7C2 * __this, const RuntimeMethod* method)
{
{
// return m_EnableCollisions;
bool L_0 = __this->get_m_EnableCollisions_30();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * Surface_get_meshRenderer_m6BDB391FC6BE5499F90B7AFBF58D365F80CE7D31_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, const RuntimeMethod* method)
{
{
// public MeshRenderer meshRenderer { get; set; }
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = __this->get_U3CmeshRendererU3Ek__BackingField_7();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void Surface_set_meshRenderer_m9579B75AD6D5C02765978AE0C6BC69F006A4E112_inline (Surface_t3DF4F502D1C053688BFC996F62DFA2116BA4F54D * __this, MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * ___value0, const RuntimeMethod* method)
{
{
// public MeshRenderer meshRenderer { get; set; }
MeshRenderer_t9D67CA54E83315F743623BDE8EADCD5074659EED * L_0 = ___value0;
__this->set_U3CmeshRendererU3Ek__BackingField_7(L_0);
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t SpatialMappingRenderer_get_renderState_m1ECB7DED90F00AF9947CC552372FACC39692D84D_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_CurrentRenderState;
int32_t L_0 = __this->get_m_CurrentRenderState_28();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_occlusionMaterial_m7F15BD9F8CEA72EA91A03FBE74B8DEA2E3ADB609_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_OcclusionMaterial;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_OcclusionMaterial_30();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * SpatialMappingRenderer_get_visualMaterial_mBFDEB3C06FA62BF6BA399F46B98FECC0E11F9AAC_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, const RuntimeMethod* method)
{
{
// return m_VisualMaterial;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = __this->get_m_VisualMaterial_29();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_occlusionMaterial_m6600CD1C60856651B8E939DA904984ED9DD82D51_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method)
{
{
// m_OcclusionMaterial = value;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0;
__this->set_m_OcclusionMaterial_30(L_0);
// }
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR void SpatialMappingRenderer_set_visualMaterial_m439EE5826EC8650A9051CE8878A4DE6E62BAA37E_inline (SpatialMappingRenderer_t76CA4F8DC84130EBB1BDF5845EAF97CCEA8D89BB * __this, Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___value0, const RuntimeMethod* method)
{
{
// m_VisualMaterial = value;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * L_0 = ___value0;
__this->set_m_VisualMaterial_29(L_0);
// }
return;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE Enumerator_get_Current_mD6B1E9D5866E377F8CAD19D88CECDB8AA7016553_gshared_inline (Enumerator_t9A2E00C583A23B1B5B7D051DF98EBA95FA7174AF * __this, const RuntimeMethod* method)
{
{
KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE L_0 = (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE )__this->get_current_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR RuntimeObject * KeyValuePair_2_get_Value_m6111F7FFB9F9E80C559084882040115B4F3DFF8E_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method)
{
{
RuntimeObject * L_0 = (RuntimeObject *)__this->get_value_1();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t KeyValuePair_2_get_Key_m3A05638ECF11AC4B452C86801F0A7263344AB2AC_gshared_inline (KeyValuePair_2_t86464C52F9602337EAC68825E6BE06951D7530CE * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get_key_0();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Item_mDF3F52C7C1985C572A07CD15F1486A0035D288D5_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, int32_t ___index0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___index0;
int32_t L_1 = (int32_t)__this->get__size_2();
if ((!(((uint32_t)L_0) >= ((uint32_t)L_1))))
{
goto IL_000e;
}
}
{
ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL);
}
IL_000e:
{
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* L_2 = (Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)__this->get__items_1();
int32_t L_3 = ___index0;
int32_t L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83*)L_2, (int32_t)L_3);
return L_4;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m0AEC7165BCDA1870BB35D5B1BE47F1F0EAE89C76_gshared_inline (List_1_tE1526161A558A17A39A8B69D8EEF3801393B6226 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get__size_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C Enumerator_get_Current_m0FE874F7E7972DC563007C0182FC43C9FFCEEB37_gshared_inline (Enumerator_tF44F7F3EFBA354198A341273BF365674D6F84406 * __this, const RuntimeMethod* method)
{
{
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_0 = (SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C )__this->get_current_3();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C List_1_get_Item_m0D9B50B1941A434A7D49293AEE5DB620DCF296FF_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, int32_t ___index0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___index0;
int32_t L_1 = (int32_t)__this->get__size_2();
if ((!(((uint32_t)L_0) >= ((uint32_t)L_1))))
{
goto IL_000e;
}
}
{
ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL);
}
IL_000e:
{
SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1* L_2 = (SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1*)__this->get__items_1();
int32_t L_3 = ___index0;
SMComponentRecord_t4F25C7B56C9A9F701769D1F27D109B576E836C5C L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((SMComponentRecordU5BU5D_t8B4816D9B8F8D569C2B9854BCBCEB2AEF542B4A1*)L_2, (int32_t)L_3);
return L_4;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m2D783F2229496D36768C6A01A7296CE5DAAD423E_gshared_inline (List_1_tE40B4369EF0BC1498B5875982A462183216DBEB0 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get__size_2();
return L_0;
}
}
| 844,873 | 452,927 |
#ifndef PYTHONIC_STR_STARTSWITH_HPP
#define PYTHONIC_STR_STARTSWITH_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/str.hpp"
namespace pythonic { namespace __builtin__ {
namespace str {
bool startswith(types::str const& s, types::str const& prefix, long start=0, size_t end=std::string::npos) {
if(end == std::string::npos)
end = s.size();
return (end - start) >= prefix.size() and s.compare(start, prefix.size(), prefix) == 0;
}
PROXY(pythonic::__builtin__::str, startswith);
}
}
}
#endif
| 587 | 207 |
#include <iostream>
#include <sstream>
using namespace std;
string shrinkString(string s) {
stringstream ss;
int count=0;
char current=0, reg=0;
for(int i=0; i<s.length(); i++) {
current = s[i];
if (current == reg) {
count++;
continue;
} else if (reg != 0) {
ss << reg << count;
}
reg = current;
count = 1;
}
ss << reg << count;
string result = ss.str();
if (result.length() < s.length()) {
return result;
}
return s;
}
int main(int argc, char const *argv[])
{
cout<< "Question 6:" << endl;
cout<< "Shrink string with repetitive letters." << endl;
string s = "aabccccccccccccccccddaab";
cout << "The original string: " << s << endl;
cout << "The shrunk string : " << shrinkString(s) << endl;
return 0;
}
| 866 | 295 |
#include<iostream>
using namespace std;
int main(){
int numb1;
int numb2;
int numb3;
int sum;
cout<<"Enter numb1"<<endl;
cin>>numb1;
cout<<"Enter numb2"<<endl;
cin>>numb2;
cout<<"Enter numb3"<<endl;
cin>>numb3;
sum=(numb1+numb2+numb3);
cout<<"the value of sum:"<<sum<<endl;
return 0;
} | 347 | 150 |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/app_list_client_impl.h"
#include <stddef.h>
#include <utility>
#include <vector>
#include "ash/public/cpp/menu_utils.h"
#include "ash/public/interfaces/constants.mojom.h"
#include "base/bind.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
#include "chrome/browser/ui/app_list/app_list_model_updater.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service.h"
#include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h"
#include "chrome/browser/ui/app_list/app_sync_ui_state_watcher.h"
#include "chrome/browser/ui/app_list/search/chrome_search_result.h"
#include "chrome/browser/ui/app_list/search/search_controller.h"
#include "chrome/browser/ui/app_list/search/search_controller_factory.h"
#include "chrome/browser/ui/app_list/search/search_resource_manager.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
#include "content/public/common/service_manager_connection.h"
#include "services/service_manager/public/cpp/connector.h"
#include "ui/base/models/menu_model.h"
#include "ui/display/types/display_constants.h"
#include "ui/gfx/geometry/rect.h"
namespace {
AppListClientImpl* g_app_list_client_instance = nullptr;
} // namespace
AppListClientImpl::AppListClientImpl()
: template_url_service_observer_(this),
binding_(this),
weak_ptr_factory_(this) {
// Bind this to the AppListController in Ash.
content::ServiceManagerConnection::GetForProcess()
->GetConnector()
->BindInterface(ash::mojom::kServiceName, &app_list_controller_);
ash::mojom::AppListClientPtr client;
binding_.Bind(mojo::MakeRequest(&client));
app_list_controller_->SetClient(std::move(client));
controller_delegate_.SetAppListController(app_list_controller_.get());
user_manager::UserManager::Get()->AddSessionStateObserver(this);
DCHECK(!g_app_list_client_instance);
g_app_list_client_instance = this;
}
AppListClientImpl::~AppListClientImpl() {
user_manager::UserManager::Get()->RemoveSessionStateObserver(this);
DCHECK_EQ(this, g_app_list_client_instance);
g_app_list_client_instance = nullptr;
}
// static
AppListClientImpl* AppListClientImpl::GetInstance() {
return g_app_list_client_instance;
}
void AppListClientImpl::StartSearch(const base::string16& raw_query) {
if (search_controller_) {
search_controller_->Start(raw_query);
controller_delegate_.OnSearchStarted();
}
}
void AppListClientImpl::OpenSearchResult(const std::string& result_id,
int event_flags) {
if (!search_controller_)
return;
ChromeSearchResult* result = search_controller_->FindSearchResult(result_id);
if (result)
search_controller_->OpenResult(result, event_flags);
}
void AppListClientImpl::InvokeSearchResultAction(const std::string& result_id,
int action_index,
int event_flags) {
if (!search_controller_)
return;
ChromeSearchResult* result = search_controller_->FindSearchResult(result_id);
if (result)
search_controller_->InvokeResultAction(result, action_index, event_flags);
}
void AppListClientImpl::GetSearchResultContextMenuModel(
const std::string& result_id,
GetContextMenuModelCallback callback) {
if (!search_controller_) {
std::move(callback).Run(std::vector<ash::mojom::MenuItemPtr>());
return;
}
ChromeSearchResult* result = search_controller_->FindSearchResult(result_id);
if (!result) {
std::move(callback).Run(std::vector<ash::mojom::MenuItemPtr>());
return;
}
result->GetContextMenuModel(base::BindOnce(
[](GetContextMenuModelCallback callback,
std::unique_ptr<ui::MenuModel> menu_model) {
std::move(callback).Run(
ash::menu_utils::GetMojoMenuItemsFromModel(menu_model.get()));
},
std::move(callback)));
}
void AppListClientImpl::SearchResultContextMenuItemSelected(
const std::string& result_id,
int command_id,
int event_flags) {
if (!search_controller_)
return;
ChromeSearchResult* result = search_controller_->FindSearchResult(result_id);
if (!result)
return;
result->ContextMenuItemSelected(command_id, event_flags);
}
void AppListClientImpl::ViewClosing() {
controller_delegate_.SetAppListDisplayId(display::kInvalidDisplayId);
}
void AppListClientImpl::ViewShown(int64_t display_id) {
if (model_updater_) {
base::RecordAction(base::UserMetricsAction("Launcher_Show"));
base::UmaHistogramSparse("Apps.AppListBadgedAppsCount",
model_updater_->BadgedItemCount());
}
controller_delegate_.SetAppListDisplayId(display_id);
}
void AppListClientImpl::ActivateItem(const std::string& id, int event_flags) {
if (!model_updater_)
return;
model_updater_->ActivateChromeItem(id, event_flags);
}
void AppListClientImpl::GetContextMenuModel(
const std::string& id,
GetContextMenuModelCallback callback) {
if (!model_updater_) {
std::move(callback).Run(std::vector<ash::mojom::MenuItemPtr>());
return;
}
model_updater_->GetContextMenuModel(
id,
base::BindOnce(
[](GetContextMenuModelCallback callback,
std::unique_ptr<ui::MenuModel> menu_model) {
std::move(callback).Run(
ash::menu_utils::GetMojoMenuItemsFromModel(menu_model.get()));
},
std::move(callback)));
}
void AppListClientImpl::ContextMenuItemSelected(const std::string& id,
int command_id,
int event_flags) {
if (!model_updater_)
return;
model_updater_->ContextMenuItemSelected(id, command_id, event_flags);
}
void AppListClientImpl::OnAppListTargetVisibilityChanged(bool visible) {
app_list_target_visibility_ = visible;
}
void AppListClientImpl::OnAppListVisibilityChanged(bool visible) {
app_list_visible_ = visible;
}
void AppListClientImpl::StartVoiceInteractionSession() {
auto* service =
arc::ArcVoiceInteractionFrameworkService::GetForBrowserContext(
ChromeLauncherController::instance()->profile());
if (service)
service->StartSessionFromUserInteraction(gfx::Rect());
}
void AppListClientImpl::ToggleVoiceInteractionSession() {
auto* service =
arc::ArcVoiceInteractionFrameworkService::GetForBrowserContext(
ChromeLauncherController::instance()->profile());
if (service)
service->ToggleSessionFromUserInteraction();
}
void AppListClientImpl::OnFolderCreated(
ash::mojom::AppListItemMetadataPtr item) {
if (!model_updater_)
return;
DCHECK(item->is_folder);
model_updater_->OnFolderCreated(std::move(item));
}
void AppListClientImpl::OnFolderDeleted(
ash::mojom::AppListItemMetadataPtr item) {
if (!model_updater_)
return;
DCHECK(item->is_folder);
model_updater_->OnFolderDeleted(std::move(item));
}
void AppListClientImpl::OnItemUpdated(ash::mojom::AppListItemMetadataPtr item) {
if (!model_updater_)
return;
model_updater_->OnItemUpdated(std::move(item));
}
void AppListClientImpl::ActiveUserChanged(
const user_manager::User* active_user) {
if (!active_user->is_profile_created())
return;
UpdateProfile();
}
void AppListClientImpl::UpdateProfile() {
Profile* profile = ProfileManager::GetActiveUserProfile();
app_list::AppListSyncableService* syncable_service =
app_list::AppListSyncableServiceFactory::GetForProfile(profile);
DCHECK(syncable_service);
SetProfile(profile);
}
void AppListClientImpl::SetProfile(Profile* new_profile) {
if (profile_ == new_profile)
return;
if (profile_) {
DCHECK(model_updater_);
model_updater_->SetActive(false);
search_resource_manager_.reset();
search_controller_.reset();
app_sync_ui_state_watcher_.reset();
model_updater_ = nullptr;
}
template_url_service_observer_.RemoveAll();
profile_ = new_profile;
if (!profile_)
return;
// If we are in guest mode, the new profile should be an incognito profile.
// Otherwise, this may later hit a check (same condition as this one) in
// Browser::Browser when opening links in a browser window (see
// http://crbug.com/460437).
DCHECK(!profile_->IsGuestSession() || profile_->IsOffTheRecord())
<< "Guest mode must use incognito profile";
template_url_service_observer_.Add(
TemplateURLServiceFactory::GetForProfile(profile_));
app_list::AppListSyncableService* syncable_service =
app_list::AppListSyncableServiceFactory::GetForProfile(profile_);
model_updater_ = syncable_service->GetModelUpdater();
model_updater_->SetActive(true);
app_sync_ui_state_watcher_ =
std::make_unique<AppSyncUIStateWatcher>(profile_, model_updater_);
SetUpSearchUI();
OnTemplateURLServiceChanged();
// Clear search query.
model_updater_->UpdateSearchBox(base::string16(),
false /* initiated_by_user */);
}
void AppListClientImpl::SetUpSearchUI() {
search_resource_manager_.reset(
new app_list::SearchResourceManager(profile_, model_updater_));
search_controller_ = app_list::CreateSearchController(
profile_, model_updater_, &controller_delegate_);
}
app_list::SearchController* AppListClientImpl::GetSearchControllerForTest() {
return search_controller_.get();
}
void AppListClientImpl::OnTemplateURLServiceChanged() {
DCHECK(model_updater_);
TemplateURLService* template_url_service =
TemplateURLServiceFactory::GetForProfile(profile_);
const TemplateURL* default_provider =
template_url_service->GetDefaultSearchProvider();
const bool is_google =
default_provider &&
default_provider->GetEngineType(
template_url_service->search_terms_data()) == SEARCH_ENGINE_GOOGLE;
model_updater_->SetSearchEngineIsGoogle(is_google);
}
void AppListClientImpl::ShowAndSwitchToState(ash::AppListState state) {
if (!app_list_controller_)
return;
app_list_controller_->ShowAppListAndSwitchToState(state);
}
void AppListClientImpl::ShowAppList() {
// This may not work correctly if the profile passed in is different from the
// one the ash Shell is currently using.
if (!app_list_controller_)
return;
app_list_controller_->ShowAppList();
}
void AppListClientImpl::DismissAppList() {
if (!app_list_controller_)
return;
app_list_controller_->DismissAppList();
}
Profile* AppListClientImpl::GetCurrentAppListProfile() const {
return ChromeLauncherController::instance()->profile();
}
AppListControllerDelegate* AppListClientImpl::GetControllerDelegate() {
return &controller_delegate_;
}
ash::mojom::AppListController* AppListClientImpl::GetAppListController() const {
return app_list_controller_.get();
}
void AppListClientImpl::FlushMojoForTesting() {
app_list_controller_.FlushForTesting();
binding_.FlushForTesting();
}
| 11,473 | 3,592 |
// Copyright 2015, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)
#include "./ResultTable.h"
#include <cassert>
// _____________________________________________________________________________
ResultTable::ResultTable()
: _sortedBy(),
_resultTypes(),
_localVocab(std::make_shared<std::vector<std::string>>()),
_status(ResultTable::IN_PROGRESS) {}
// _____________________________________________________________________________
void ResultTable::clear() {
_localVocab = nullptr;
_data.clear();
_status = IN_PROGRESS;
}
// _____________________________________________________________________________
ResultTable::~ResultTable() { clear(); }
// _____________________________________________________________________________
string ResultTable::asDebugString() const {
std::ostringstream os;
os << "First (up to) 5 rows of result with size:\n";
for (size_t i = 0; i < std::min<size_t>(5, _data.size()); ++i) {
for (size_t j = 0; j < _data.cols(); ++j) {
os << _data(i, j) << '\t';
}
os << '\n';
}
return os.str();
}
// _____________________________________________________________________________
size_t ResultTable::size() const { return _data.size(); }
| 1,299 | 381 |
#include "ParamedicCommander.hpp"
using namespace std;
// .כמו חובש, אבל כשהוא זז, כל החובשים של אותו שחקן מרפאים את החיילים שנמצאים לידם
void ParamedicCommander :: attack(vector<vector<Soldier *>> &board, pair<int, int> location) {
Soldier *prmdComndr_src = board[location.first][location.second]; // the ParamedicCommander (that need to shoot) in location position
int i=location.first;
int j=location.second;
for (int i = 0; i < board.size(); i++) {
for (int j = 0; j < board[0].size(); j++) {
Soldier *s_temp = board[i][j]; // create solider in (i,j) position
if(s_temp != nullptr) { // if (i,j) position!= nullptr so-
if(Paramedic *pemdc = dynamic_cast<Paramedic*> (s_temp)) { //check if s_temp from type Paramedic, is true we do casting
// that s_temp pointer with type Paramedic
ParamedicCommander *prmdComndr_temp = dynamic_cast<ParamedicCommander*> (s_temp); //check if s_temp from type ParamedicCommander,
// if false we get nullptr, else- we do casting that s_temp pointer with type ParamedicCommander(we wont false)
if (prmdComndr_temp == nullptr || ( i == location.first && j == location.second)) { // if we found prmdComndr_src position or prmdComndr_temp == nullptr
if (pemdc->getNum() == prmdComndr_src->getNum()) { // if they in the same group, so-
if (pemdc != nullptr){ // thats mean its Paramedic there
pemdc->Paramedic::attack(board , {i,j}); // now pemdc cure caz he is Paramedic
}
}
}
}
}
}
}
}
| 2,035 | 639 |
// Copyright 2015 Emilie Gillet.
//
// Author: Emilie Gillet (emilie.o.gillet@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
// See http://creativecommons.org/licenses/MIT/ for more information.
//
// -----------------------------------------------------------------------------
//
// Recovers a ramp from a clock input by guessing at what time the next edge
// will occur. Prediction strategies:
// - Moving average of previous intervals.
// - Trigram model on quantized intervals.
// - Periodic rhythmic pattern.
// - Assume that the pulse width is constant, deduct the period from the on time
// and the pulse width.
#include "marbles/ramp/ramp_extractor.h"
#include <algorithm>
#include "marbles/ramp/ramp.h"
#include "stmlib/dsp/dsp.h"
namespace marbles {
using namespace std;
using namespace stmlib;
const float kLogOneFourth = 1.189207115f;
const float kPulseWidthTolerance = 0.05f;
inline bool IsWithinTolerance(float x, float y, float error) {
return x >= y * (1.0f - error) && x <= y * (1.0f + error);
}
void RampExtractor::Init(float max_frequency) {
max_frequency_ = max_frequency;
audio_rate_period_ = 1.0f / (100.0f / 32000.0f);
audio_rate_period_hysteresis_ = audio_rate_period_;
Reset();
}
void RampExtractor::Reset() {
audio_rate_ = false;
train_phase_ = 0.0f;
target_frequency_ = frequency_ = 0.0001f;
lp_coefficient_ = 0.5f;
next_max_train_phase_ = max_train_phase_ = 0.999f;
next_f_ratio_ = f_ratio_ = 1.0f;
reset_counter_ = 1;
reset_frequency_ = 0.0f;
reset_interval_ = 32000 * 3;
Pulse p;
p.bucket = 1;
p.on_duration = 2000;
p.total_duration = 4000;
p.pulse_width = 0.5f;
fill(&history_[0], &history_[kHistorySize], p);
current_pulse_ = 0;
next_bucket_ = 48.0f;
average_pulse_width_ = 0.0f;
fill(&predicted_period_[0], &predicted_period_[PREDICTOR_LAST], 4000.0f);
fill(&prediction_accuracy_[0], &prediction_accuracy_[PREDICTOR_LAST], 0.0f);
fill(
&prediction_hash_table_[0],
&prediction_hash_table_[kHashTableSize],
0.0f);
}
float RampExtractor::ComputeAveragePulseWidth(float tolerance) const {
float sum = 0.0f;
for (size_t i = 0; i < kHistorySize; ++i) {
if (!IsWithinTolerance(history_[i].pulse_width,
history_[current_pulse_].pulse_width,
tolerance)) {
return 0.0f;
}
sum += history_[i].pulse_width;
}
return sum / static_cast<float>(kHistorySize);
}
RampExtractor::Prediction RampExtractor::PredictNextPeriod() {
float last_period = static_cast<float>(history_[current_pulse_].total_duration);
Predictor best_predictor = PREDICTOR_FAST_MOVING_AVERAGE;
for (int i = PREDICTOR_FAST_MOVING_AVERAGE; i < PREDICTOR_LAST; ++i) {
float error = (predicted_period_[i] - last_period) / (last_period + 0.01f);
// Scoring function: 10% error is half as good as 0% error.
float accuracy = 1.0f / (1.0f + 100.0f * error * error);
// Slowly trust good predictors, quickly demote predictors who make errors.
SLOPE(prediction_accuracy_[i], accuracy, 0.1f, 0.5f);
// (Ugly code but I don't want virtuals for these.)
switch (i) {
case PREDICTOR_SLOW_MOVING_AVERAGE:
ONE_POLE(predicted_period_[i], last_period, 0.1f);
break;
case PREDICTOR_FAST_MOVING_AVERAGE:
ONE_POLE(predicted_period_[i], last_period, 0.5f);
break;
case PREDICTOR_HASH:
{
size_t t_2 = (current_pulse_ - 2 + kHistorySize) % kHistorySize;
size_t t_1 = (current_pulse_ - 1 + kHistorySize) % kHistorySize;
size_t t_0 = current_pulse_;
size_t hash = history_[t_1].bucket + 17 * history_[t_2].bucket;
ONE_POLE(
prediction_hash_table_[hash % kHashTableSize],
last_period,
0.5f);
hash = history_[t_0].bucket + 17 * history_[t_1].bucket;
predicted_period_[i] = prediction_hash_table_[hash % kHashTableSize];
if (predicted_period_[i] == 0.0f) {
predicted_period_[i] = last_period;
}
}
break;
default:
{
// Periodicity detector.
size_t candidate_period = i - PREDICTOR_PERIOD_1 + 1;
size_t t = current_pulse_ + 1 + kHistorySize - candidate_period;
predicted_period_[i] = history_[t % kHistorySize].total_duration;
}
break;
}
if (prediction_accuracy_[i] >= prediction_accuracy_[best_predictor]) {
best_predictor = Predictor(i);
}
}
Prediction p;
p.period = predicted_period_[best_predictor];
p.accuracy = prediction_accuracy_[best_predictor];
return p;
}
bool RampExtractor::Process(
Ratio ratio,
bool always_ramp_to_maximum,
const GateFlags* gate_flags,
float* ramp,
size_t size) {
bool reset_observed = false;
while (size--) {
GateFlags flags = *gate_flags++;
// We are done with the previous pulse.
if (flags & GATE_FLAG_RISING) {
Pulse& p = history_[current_pulse_];
const bool record_pulse = p.total_duration < reset_interval_;
if (!record_pulse) {
// Quite a long pause - the clock has probably been stopped
// and restarted.
reset_frequency_ = 0.0f;
train_phase_ = 0.0f;
reset_counter_ = ratio.q;
reset_interval_ = 4 * p.total_duration;
reset_observed = true;
} else {
float period = float(p.total_duration);
if (period <= audio_rate_period_hysteresis_) {
audio_rate_ = true;
audio_rate_period_hysteresis_ = audio_rate_period_ * 1.1f;
average_pulse_width_ = 0.0f;
bool no_glide = f_ratio_ != ratio.to_float();
f_ratio_ = ratio.to_float();
float frequency = 1.0f / period;
target_frequency_ = std::min(f_ratio_ * frequency, max_frequency_);
float up_tolerance = (1.02f + 2.0f * frequency) * frequency_;
float down_tolerance = (0.98f - 2.0f * frequency) * frequency_;
no_glide |= target_frequency_ > up_tolerance ||
target_frequency_ < down_tolerance;
lp_coefficient_ = no_glide ? 1.0f : period * 0.00001f;
} else {
audio_rate_ = false;
audio_rate_period_hysteresis_ = audio_rate_period_;
// Compute the pulse width of the previous pulse, and check if the
// PW has been consistent over the past pulses.
p.pulse_width = static_cast<float>(p.on_duration) / period;
average_pulse_width_ = ComputeAveragePulseWidth(kPulseWidthTolerance);
if (p.on_duration < 32) {
average_pulse_width_ = 0.0f;
}
// Try to predict the next interval between pulses. If the prediction
// has been reliable over the past pulses, or if the PW is steady,
// we'll be able to make reliable prediction about the time at which
// the next pulse will occur
Prediction prediction = PredictNextPeriod();
frequency_ = 1.0f / prediction.period;
--reset_counter_;
if (!reset_counter_) {
next_f_ratio_ = ratio.to_float() * kMaxRampValue;
next_max_train_phase_ = static_cast<float>(ratio.q);
if (always_ramp_to_maximum && train_phase_ < max_train_phase_) {
reset_frequency_ = \
(0.01f + max_train_phase_ - train_phase_) * 0.0625f;
} else {
reset_frequency_ = 0.0f;
train_phase_ = 0.0f;
f_ratio_ = next_f_ratio_;
max_train_phase_ = next_max_train_phase_;
}
reset_counter_ = ratio.q;
} else {
float expected = max_train_phase_ - static_cast<float>(reset_counter_);
float warp = expected - train_phase_ + 1.0f;
frequency_ *= max(warp, 0.01f);
}
}
reset_interval_ = static_cast<uint32_t>(
std::max(4.0f / target_frequency_, 32000 * 3.0f));
current_pulse_ = (current_pulse_ + 1) % kHistorySize;
}
history_[current_pulse_].on_duration = 0;
history_[current_pulse_].total_duration = 0;
history_[current_pulse_].bucket = 0;
next_bucket_ = 48.0f;
}
// Update history buffer with total duration and on duration.
++history_[current_pulse_].total_duration;
if (flags & GATE_FLAG_HIGH) {
++history_[current_pulse_].on_duration;
}
if (float(history_[current_pulse_].total_duration) >= next_bucket_) {
++history_[current_pulse_].bucket;
next_bucket_ *= kLogOneFourth;
}
// If the pulse width is constant, and if a clock falling edge is
// detected, estimate the period using the on time and the pulse width,
// and correct the phase increment accordingly.
if ((flags & GATE_FLAG_FALLING) &&
average_pulse_width_ > 0.0f) {
float t_on = static_cast<float>(history_[current_pulse_].on_duration);
float next = max_train_phase_ - static_cast<float>(reset_counter_) + 1.0f;
float pw = average_pulse_width_;
frequency_ = max((next - train_phase_), 0.0f) * pw / ((1.0f - pw) * t_on);
}
if (audio_rate_) {
ONE_POLE(frequency_, target_frequency_, lp_coefficient_);
train_phase_ += frequency_;
if (train_phase_ >= 1.0f) {
train_phase_ -= 1.0f;
}
*ramp++ = train_phase_;
} else {
if (reset_frequency_) {
train_phase_ += reset_frequency_;
if (train_phase_ >= max_train_phase_) {
train_phase_ = 0.0f;
reset_frequency_ = 0.0f;
f_ratio_ = next_f_ratio_;
max_train_phase_ = next_max_train_phase_;
}
} else {
train_phase_ += frequency_;
if (train_phase_ >= max_train_phase_) {
if (frequency_ == max_frequency_) {
train_phase_ -= max_train_phase_;
} else {
train_phase_ = max_train_phase_;
}
}
}
float output_phase = train_phase_ * f_ratio_;
output_phase -= static_cast<float>(static_cast<int>(output_phase));
*ramp++ = output_phase;
}
}
return reset_observed;
}
} // namespace marbles
| 11,331 | 4,004 |
#include "rar.hpp"
int ToPercent(int64 N1,int64 N2)
{
if (N2<N1)
return 100;
return ToPercentUnlim(N1,N2);
}
// Allows the percent larger than 100.
int ToPercentUnlim(int64 N1,int64 N2)
{
if (N2==0)
return 0;
return (int)(N1*100/N2);
}
| 257 | 134 |
#if PLATFORM != PLATFORM_WINDOWS
#include "NetworkManager.hpp"
namespace PrEngine
{
bool InitializeSockets()
{
#if PLATFORM == PLATFORM_WINDOWS
WSADATA WsaData;
return WSAStartup( MAKEWORD(2,2),
&WsaData )
== NO_ERROR;
#else
return true;
#endif
}
void ShutdownSockets()
{
#if PLATFORM == PLATFORM_WINDOWS
WSACleanup();
#endif
}
Socket::Socket()
{
InitializeSockets();
// create a socket
handle = socket( AF_INET,
SOCK_DGRAM,
IPPROTO_UDP );
if ( handle <= 0 )
{
LOG( LOGTYPE_ERROR, "failed to create socket" );
}
else
LOG(LOGTYPE_GENERAL, "Socket handle: ", std::to_string(handle));
}
Socket::~Socket()
{
ShutdownSockets();
#if PLATFORM == PLATFORM_MAC || PLATFORM == PLATFORM_UNIX
close( handle );
#elif PLATFORM == PLATFORM_WINDOWS
closesocket( handle );
#endif
}
bool Socket::Open(unsigned short port)
{
sockaddr_in address;
address.sin_family = AF_INET;
address.sin_addr.s_addr = INADDR_ANY;
address.sin_port = htons( (unsigned short) port );
if ( bind( handle, (const sockaddr*) &address, sizeof(sockaddr_in) ) < 0 )
{
LOG( LOGTYPE_ERROR, "failed to bind socket : ", std::to_string(errno), std::string(" | "),std::string(strerror(errno)));
return false;
}
#if PLATFORM == PLATFORM_MAC || PLATFORM == PLATFORM_UNIX
int nonBlocking = 1;
if ( fcntl( handle, F_SETFL, O_NONBLOCK, nonBlocking ) == -1 )
{
printf( "failed to set non-blocking\n" );
return false;
}
#elif PLATFORM == PLATFORM_WINDOWS
DWORD nonBlocking = 1;
if ( ioctlsocket( handle,
FIONBIO,
&nonBlocking ) != 0 )
{
printf( "failed to set non-blocking\n" );
return false;
}
#endif
return true;
}
bool Socket::Send(const Address& destination, const Packet* packet, int size)
{
int sent_bytes = sendto( handle, packet, size, 0,
(sockaddr*)&(destination.address), sizeof(sockaddr_in) );
if ( sent_bytes != size )
{
LOG( LOGTYPE_ERROR, "failed to send packet" );
return false;
}
else
{
LOG( LOGTYPE_GENERAL, "packet sent");
}
}
int Socket::Receive(Address &sender, Packet* packet, int size)
{
return -1;
}
int Socket::Receive(Address & sender, Packet * packet, int size)
{
#if PLATFORM == PLATFORM_WINDOWS
typedef int socklen_t;
#endif
sockaddr_in from;
socklen_t fromLength = sizeof( from );
int bytes = recvfrom( handle,
packet,
size,
0,
(sockaddr*)&from,
&fromLength );
if ( bytes <= 0 )
return 0;
unsigned int from_address =
ntohl( from.sin_addr.s_addr );
unsigned int from_port =
ntohs( from.sin_port );
return bytes;
}
//////////////??ADDRESS/////////
Address::Address(unsigned char a, unsigned char b, unsigned char c, unsigned char d, unsigned short port)
{
unsigned int _address = ( a << 24 ) |
( b << 16 ) |
( c << 8 ) |
d;
address.sin_family = AF_INET;
address.sin_addr.s_addr = htonl( _address );
address.sin_port = htons( port );
}
Address::Address()
{
}
NetworkManager::NetworkManager(const std::string& name, int priority) :Module(name,priority)
{
}
NetworkManager::~NetworkManager()
{
}
void NetworkManager::start()
{
if ( !socket.Open( port ) )
{
printf( "failed to create socket!\n" );
return;
}
// send a packet
Packet packet;
packet.protocl_id = 1100;
packet.sequence_number = 1;
packet.ack = 0;
packet.bit_filed = 0x00;
packet.data[0] = 'H';
packet.data[1] = 'E';
packet.data[2] = 'L';
packet.data[3] = 'L';
packet.data[4] = 'O';
packet.data[5] = '\0';
std::cout<<"sending: "<<sizeof( packet )<<" bytes"<<std::endl;
socket.Send( Address(127,0,0,1,port), &packet, sizeof( packet ) );
}
void NetworkManager::update()
{
Address sender;
Packet packet;
int bytes_read = socket.Receive( sender,
&packet,
sizeof( packet ) );
//if ( !bytes_read )
if( bytes_read > 96)
{
LOG(LOGTYPE_GENERAL, "Data received! ",std::to_string(bytes_read));
std::cout<<packet.data<<std::endl;
std::cout<<std::endl;
}
// process packet
}
void NetworkManager::end()
{
}
}
#endif | 5,716 | 1,805 |
// (C) Copyright Gennadiy Rozental 2005-2014.
// Use, modification, and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : cla subsystem forward declarations
// ***************************************************************************
#ifndef BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP
#define BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP
// Boost.Runtime.Parameter
#include <boost/test/utils/runtime/config.hpp>
// Boost
#include <boost/shared_ptr.hpp>
namespace boost {
namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE {
namespace cla {
class parser;
class parameter;
typedef shared_ptr<parameter> parameter_ptr;
class naming_policy;
typedef shared_ptr<naming_policy> naming_policy_ptr;
class argv_traverser;
namespace rt_cla_detail {
template<typename T> class const_generator;
template<typename T> class ref_generator;
template<typename T> class assigner;
class named_parameter_base;
class positional_parameter_base;
} // namespace rt_cla_detail
} // namespace cla
} // namespace BOOST_TEST_UTILS_RUNTIME_PARAM_NAMESPACE
} // namespace boost
#endif // BOOST_TEST_UTILS_RUNTIME_CLA_FWD_HPP
| 1,421 | 512 |
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <future>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/time.h>
#include <vector>
#include <cuda_fp16.h>
#include <cuda_profiler_api.h>
#include "3rdparty/INIReader.h"
#include "src/fastertransformer/models/multi_gpu_gpt/ParallelGpt.h"
#include "src/fastertransformer/utils/mpi_utils.h"
#include "src/fastertransformer/utils/nvtx_utils.h"
static bool USE_ASYNC = true;
const int START_TOKEN_ID = 50256;
const int END_TOKEN_ID = 50256;
#ifdef USE_NVTX
bool NVTX_ON = true;
#endif
using namespace fastertransformer;
namespace strutils {
template<typename T>
std::string join(const T* arr, const int length, const std::string sep = " ")
{
std::string str = "";
for (int i = 0; i < length; i++) {
str += std::to_string(arr[i]);
if (i < length - 1) {
str += sep;
}
}
return str;
}
template<typename T>
std::string toString(const T* arr, const int length, const bool is_device_array = true)
{
size_t size = sizeof(T) * length;
T* h_arr;
std::string token_ids_str;
if (is_device_array) {
h_arr = (T*)malloc(size);
cudaMemcpy(h_arr, arr, size, cudaMemcpyDeviceToHost);
cudaDeviceSynchronize();
token_ids_str = join(h_arr, length, " ");
free(h_arr);
}
else {
token_ids_str = join(arr, length, " ");
}
return token_ids_str;
}
} // namespace strutils
template<typename T>
class GptStreamer {
protected:
// stremer settings
const int max_batch_size;
const int max_output_length; // including both input and generated tokens.
// results
int* output_ids;
int* sequence_lengths;
bool* finished;
// decoder settings
ParallelGpt<T>* gpt_;
std::unordered_map<std::string, Tensor>* output_tensors_;
const std::unordered_map<std::string, Tensor>* input_tensors_;
const ParallelGptWeight<T>* gpt_weights_;
// streamer status and internal buffers
int prev_step = 0;
int curr_step = 0;
bool is_generation_done = false;
cudaStream_t stream;
/**
* \brief Stop criteria whether to stop generation
*
* This function determines whether to stop generation. If a user
* wants to stop by a customized criteria, it is enough to override
* this function that updates `finished` and `sequence_lengths`.
*
* \param step_from The generation step where we check from.
* \param step_to The current generation step.
* The function will check step_from <= step < step_to.
* \param output_ids An integer array pointer of a host in order to copy
* generated outputs from device.
*
* \return true if all generation have done. Otherwise, false.
*/
virtual bool stopCriteria(const int step_from, const int step_to, const int* output_ids)
{
assert(step_from <= step_to);
int batch_size = output_tensors_->at("output_ids").shape[0];
for (int step = step_from; step < step_to; step++) {
bool stop_generation = true;
for (int i = 0; i < batch_size; i++) {
if (!finished[i]) {
// Let 50256 be the end token id.
if (output_ids[step * batch_size + i] == END_TOKEN_ID) {
finished[i] = true;
}
else {
sequence_lengths[i] += 1;
}
}
if (!finished[i]) {
stop_generation = false;
}
}
if (stop_generation) {
return true;
}
}
return false;
}
/**
* \brief A hook function that performs during streaming
*
* This function performs a custom logic just after copying generated
* tokens (`output_ids`) to the host.
*
* \param step_from The generation step where the function starts from.
* \param step_to The generation step where the function ends at.
* The function deals the output_ids step_from <= step < step_to.
* \param output_ids The output ids
*/
virtual void streamHook(const int prev_step, const int curr_step, const int* output_ids) {}
/**
* \brief Stream preparation function
*
* This function calls just before streaming inside `streamDecoding`.
* Please override this function to do anything, if a user further needs
* inside an overriden function (`streamHook` or `stopCriteria`), e.g.
* allocating buffers.
*/
virtual void onStreamBegin(const int batch_size, const int input_len) {}
/**
* \brief Stream cooling down function
*
* This function calls just after streaming inside `streamDecoding`.
* Please override this function to do anything needed, e.g.
* free allocated buffers.
*/
virtual void onStreamEnd() {}
virtual void sendStopSignal()
{
// Update the finished buffer in decoding to let the GPT model know,
// terminating the async thread.
cudaMemcpyAsync(gpt_->getFinishBuffer(),
finished,
sizeof(bool) * output_tensors_->at("output_ids").shape[0]
* output_tensors_->at("output_ids").shape[1],
cudaMemcpyHostToDevice,
stream);
cudaStreamSynchronize(stream);
}
void streamDecoding()
{
int input_len = input_tensors_->at("input_ids").shape[1];
int max_output_len = output_tensors_->at("output_ids").shape[0];
int batch_size = output_tensors_->at("output_ids").shape[0];
// initialization
is_generation_done = false;
prev_step = 0;
curr_step = input_len;
int* seqlen_buf_ = new int[batch_size];
bool* decoding_finished_buf_ = new bool[batch_size];
bool* finished = new bool[batch_size];
std::fill(seqlen_buf_, seqlen_buf_ + batch_size, input_len);
std::fill(decoding_finished_buf_, decoding_finished_buf_ + batch_size, false);
std::fill(finished, finished + batch_size, false);
// start streaming
onStreamBegin(batch_size, input_len);
while (!(is_generation_done || curr_step == max_output_len)) {
cudaMemcpyAsync(seqlen_buf_,
(int*)output_tensors_->at("sequence_length").data,
sizeof(int) * batch_size,
cudaMemcpyDeviceToHost,
stream);
cudaStreamSynchronize(stream);
curr_step = *std::max_element(seqlen_buf_, seqlen_buf_ + batch_size);
if (prev_step < curr_step) {
int idx_from = prev_step * batch_size;
cudaMemcpyAsync(output_ids + idx_from,
(int*)(output_tensors_->at("output_ids").data) + idx_from,
sizeof(int) * (curr_step - prev_step) * batch_size,
cudaMemcpyDeviceToHost,
stream);
cudaStreamSynchronize(stream);
is_generation_done = stopCriteria(prev_step, curr_step, output_ids);
streamHook(prev_step, curr_step, output_ids);
}
else {
// The last token isn't accounted in the length of a sequence
// since the end-token is not included in generated length.
// So when all the sample generation is done, prev_step and
// curr_step remain the same.
cudaMemcpyAsync(decoding_finished_buf_,
gpt_->getFinishBuffer(),
sizeof(bool) * batch_size,
cudaMemcpyDeviceToHost,
stream);
cudaStreamSynchronize(stream);
is_generation_done =
std::all_of(decoding_finished_buf_, decoding_finished_buf_ + batch_size, [](bool b) { return b; });
}
#ifndef NDEBUG
if (prev_step < curr_step) {
int batch_size = output_tensors_->at("output_ids").shape[0];
std::cout << "\r[DEBUG] Step " << curr_step
<< " | seqlen: " << strutils::toString(sequence_lengths, batch_size, false)
<< " | output_ids: "
<< strutils::toString(output_ids + (curr_step - 1) * batch_size, batch_size, false)
<< " | h_finished_buf: " << strutils::toString(finished, batch_size, false)
<< " | d_finished_buf: " << strutils::toString(gpt_->getFinishBuffer(), batch_size, true)
<< std::flush;
}
#endif
prev_step = curr_step;
}
if (is_generation_done) {
// The EOD token isn't accounted in the sequence length.
// So, we need to copy the last step's output_ids
// (all of them are the end tokens).
int idx_from = curr_step * batch_size;
cudaMemcpyAsync(output_ids + idx_from,
(int*)(output_tensors_->at(0).data) + idx_from,
sizeof(int) * batch_size,
cudaMemcpyDeviceToHost,
stream);
cudaStreamSynchronize(stream);
curr_step++;
streamHook(prev_step, curr_step, output_ids);
sendStopSignal();
}
onStreamEnd();
delete[] seqlen_buf_;
delete[] decoding_finished_buf_;
delete[] finished;
}
public:
GptStreamer(int max_batch_size, int max_output_length):
max_batch_size(max_batch_size), max_output_length(max_output_length)
{
output_ids = new int[max_output_length * max_batch_size];
sequence_lengths = new int[max_batch_size];
finished = new bool[max_batch_size];
cudaStreamCreate(&stream);
}
~GptStreamer()
{
delete[] output_ids;
delete[] sequence_lengths;
delete[] finished;
cudaStreamDestroy(stream);
}
void initialize(ParallelGpt<T>* gpt,
std::unordered_map<std::string, Tensor>* output_tensors,
const std::unordered_map<std::string, Tensor>* input_tensors,
const ParallelGptWeight<T>* gpt_weights)
{
gpt_ = gpt;
output_tensors_ = output_tensors;
input_tensors_ = input_tensors;
gpt_weights_ = gpt_weights;
int total_output_tokens = max_output_length * max_batch_size;
std::fill(output_ids, output_ids + total_output_tokens, 0);
std::fill(sequence_lengths, sequence_lengths + max_batch_size, output_tensors_->at("sequence_length").shape[0]);
std::fill(finished, finished + max_batch_size, false);
prev_step = 0;
curr_step = 0;
is_generation_done = false;
}
/**
* \brief Forward a model and asynchronously check whether to stop.
*
* The device having the last rank of a pipeline parallel group checks and
* broadcasts to the other devices. So only the last rank runs asychronously
* and monitor whether to terminate by given stop criteria.
*
* For now, we provide a streaming function as a separated example with
* minimum update of the GPT module.
*
* \param gpt An ParallelGpt pointer to generate tokens.
* \param output_tensors A vector of tensors, containing the output tensors of gpt, including
* output_ids, parent_ids, sequence_lengths and cum_log_probs
* \param input_tensors A vector of tensors, containing the input tensors of gpt, including
* input_ids, input_lengths and request_output_len
* \param gpt_weights A ParallelGptWeight pointer, which continas the weights of gpt model
*/
void run(ParallelGpt<T>* gpt,
std::unordered_map<std::string, Tensor>* output_tensors,
const std::unordered_map<std::string, Tensor>* input_tensors,
const ParallelGptWeight<T>* gpt_weights)
{
initialize(gpt, output_tensors, input_tensors, gpt_weights);
// Only the last rank of pipeline parallel will run asynchronously
// and monitor whether to terminate by given stop criteria.
if (gpt_->getPipelineParallelRank() < gpt_->getPipelineParallelSize() - 1) {
gpt_->forward(output_tensors_, input_tensors_, gpt_weights_);
return;
}
int device;
check_cuda_error(cudaGetDevice(&device));
std::async(std::launch::async, [&]() {
check_cuda_error(cudaSetDevice(device));
gpt_->forward(output_tensors_, input_tensors_, gpt_weights_);
});
streamDecoding();
}
};
template<typename T>
class GptFileStreamer: public GptStreamer<T> {
protected:
const std::string output_file;
std::ofstream ofs;
void streamHook(const int prev_step, const int curr_step, const int* output_ids) override
{
if (ofs.is_open()) {
int batch_size = this->output_tensors_->at("output_ids").shape[0];
for (int s = prev_step; s < curr_step; s++) {
ofs << strutils::toString(output_ids + s * batch_size, batch_size, false) << std::endl;
}
}
}
void onStreamBegin(const int batch_size, const int input_len) override
{
if (!output_file.empty() && this->gpt_->getTensorParallelRank() == 0) {
ofs.open(output_file, std::ios::out);
}
}
void onStreamEnd() override
{
if (!output_file.empty()) {
ofs.close();
}
}
public:
GptFileStreamer(const int max_batch_size, const int max_output_length, const std::string output_file):
GptStreamer<T>(max_batch_size, max_output_length), output_file(output_file)
{
}
~GptFileStreamer() {}
};
template<typename T>
void multi_gpu_gpt_example(const INIReader reader);
int main(int argc, char* argv[])
{
MPICHECK(MPI_Init(&argc, &argv));
srand(0);
std::string ini_name;
if (argc >= 2) {
ini_name = std::string(argv[1]);
}
else {
ini_name = "../examples/cpp/multi_gpu_gpt/gpt_config.ini";
}
std::cout << "[INFO] Configuration file path: " << ini_name << std::endl;
if (argc >= 3) {
USE_ASYNC = std::atoi(argv[2]) == 1;
}
if (USE_ASYNC) {
std::cout << "[INFO] Enable async forward" << std::endl;
}
else {
std::cout << "[INFO] Disable async forward" << std::endl;
}
INIReader reader = INIReader(ini_name);
if (reader.ParseError() < 0) {
std::cout << "[ERROR] Can't load '" << ini_name << "'\n";
return -1;
}
const std::string data_type = reader.Get("ft_instance_hyperparameter", "data_type");
if (data_type == "fp32") {
multi_gpu_gpt_example<float>(reader);
}
else if (data_type == "fp16") {
multi_gpu_gpt_example<half>(reader);
}
#ifdef ENABLE_BF16
else if (data_type == "bf16") {
multi_gpu_gpt_example<__nv_bfloat16>(reader);
}
#endif
else {
printf("[ERROR] data_type should be fp32, fp16 or bf16 ! \n");
return -1;
}
MPI_Finalize();
return 0;
}
int read_start_ids(int batch_size,
std::vector<int>* v_start_lengths,
std::vector<int>* v_start_ids,
int& max_input_len,
const int end_id,
const int beam_width)
{
std::vector<std::vector<int>> tmp_start_ids;
std::vector<int> tmp_start_lengths;
std::string file_name = "../examples/cpp/multi_gpu_gpt/start_ids.csv";
std::ifstream start_id_file(file_name, std::ios::in);
if (start_id_file.is_open()) {
std::string line;
int i0 = 0;
while (std::getline(start_id_file, line)) {
std::stringstream lineStream(line);
std::string vals;
int i1 = 0;
std::vector<int> tmp_vec;
while (std::getline(lineStream, vals, ',')) {
tmp_vec.push_back(std::stoi(vals));
i1++;
}
tmp_start_ids.push_back(tmp_vec);
tmp_start_lengths.push_back(i1);
i0++;
}
}
else {
printf("[WARNING] Cannot open the file '%s'. \n", file_name.c_str());
max_input_len = 0;
return 0;
}
max_input_len = tmp_start_lengths.data()[0];
for (uint i = 1; i < (uint)tmp_start_lengths.size(); i++) {
max_input_len = max_input_len > tmp_start_lengths.data()[i] ? max_input_len : tmp_start_lengths.data()[i];
}
while ((int)tmp_start_lengths.size() < batch_size) {
std::vector<int> padding_ids;
for (int i = 0; i < max_input_len; i++) {
padding_ids.push_back(end_id);
}
tmp_start_ids.push_back(padding_ids);
tmp_start_lengths.push_back(max_input_len);
}
// Add padding
for (int i = 0; i < (int)tmp_start_ids.size(); i++) {
for (int j = (int)tmp_start_ids[i].size(); j < max_input_len; j++) {
tmp_start_ids[i].push_back(end_id);
}
}
for (int i = 0; i < (int)tmp_start_ids.size(); i++) {
for (int b = 0; b < beam_width; b++) {
for (int j = 0; j < (int)tmp_start_ids[i].size(); j++) {
v_start_ids->push_back(tmp_start_ids[i][j]);
}
v_start_lengths->push_back(tmp_start_lengths[i]);
}
}
return 0;
}
template<typename T>
void multi_gpu_gpt_example(const INIReader reader)
{
const std::string model_name = reader.Get("ft_instance_hyperparameter", "model_name");
const size_t max_batch_size = reader.GetInteger("ft_instance_hyperparameter", "max_batch_size");
const size_t max_seq_len = reader.GetInteger("ft_instance_hyperparameter", "max_seq_len");
const size_t beam_width = reader.GetInteger("ft_instance_hyperparameter", "beam_width");
const int top_k = reader.GetInteger("ft_instance_hyperparameter", "top_k");
const float top_p = reader.GetFloat("ft_instance_hyperparameter", "top_p");
const float temperature = reader.GetFloat("ft_instance_hyperparameter", "temperature");
const float repetition_penalty = reader.GetFloat("ft_instance_hyperparameter", "repetition_penalty");
const std::string model_dir = std::string(reader.Get("ft_instance_hyperparameter", "model_dir"));
const bool sparse = static_cast<bool>(reader.GetInteger("ft_instance_hyperparameter", "sparse"));
const float len_penalty = 1.0f;
const float beam_search_diversity_rate = 0.0f;
const int tensor_para_size = reader.GetInteger("ft_instance_hyperparameter", "tensor_para_size");
const int pipeline_para_size = reader.GetInteger("ft_instance_hyperparameter", "pipeline_para_size");
const int int8_mode = reader.GetInteger("ft_instance_hyperparameter", "int8_mode");
const size_t head_num = reader.GetInteger(model_name, "head_num");
const size_t size_per_head = reader.GetInteger(model_name, "size_per_head");
const size_t vocab_size = reader.GetInteger(model_name, "vocab_size");
const size_t decoder_layers = reader.GetInteger(model_name, "decoder_layers");
const size_t hidden_units = head_num * size_per_head;
const size_t inter_size = 4 * hidden_units;
const size_t request_batch_size = reader.GetInteger("request", "request_batch_size");
// The length of tokens we hope this model to generate
const int request_output_len = reader.GetInteger("request", "request_output_len");
const int start_id = 50256;
const int end_id = 50256;
if (USE_ASYNC) {
FT_CHECK(beam_width == 1); // async forward does not support beam search
}
FT_CHECK(head_num % tensor_para_size == 0);
FT_CHECK(decoder_layers % pipeline_para_size == 0);
// Prepare the parallelism parameters
int rank, world_size, device, device_count;
MPICHECK(MPI_Comm_rank(MPI_COMM_WORLD, &rank));
MPICHECK(MPI_Comm_size(MPI_COMM_WORLD, &world_size));
if (rank == 0) {
printf("Total ranks: %d.\n", world_size);
}
check_cuda_error(cudaGetDeviceCount(&device_count));
check_cuda_error(cudaSetDevice(rank % device_count));
check_cuda_error(cudaGetDevice(&device));
struct cudaDeviceProp prop;
check_cuda_error(cudaGetDeviceProperties(&prop, device));
printf("Device %s\n", prop.name);
printf("P%d is runing with %d GPU.\n", rank, device);
if (tensor_para_size * pipeline_para_size != world_size) {
printf("[ERROR] tensor_para_size * pipeline_para_size should equal to world_size \n");
exit(-1);
}
const int tensor_para_rank = rank % tensor_para_size;
const int pipeline_para_rank = rank / tensor_para_size;
const int layers_per_group = decoder_layers / pipeline_para_size;
if (layers_per_group * pipeline_para_size != (int)decoder_layers) {
printf("[ERROR] layers_per_group (%d) * pipeline_para_size (%d) should equal to decoder_layers (%ld) \n",
layers_per_group,
pipeline_para_size,
decoder_layers);
exit(-1);
}
ncclUniqueId tensor_para_nccl_uid;
ncclUniqueId pipeline_para_nccl_uid;
// assume gpu_num = n * k,
// tensor parallelism group size is n
// pipeline parallelism group size is k
if (tensor_para_rank == 0) {
// get the uid of each tensor parallelism group
// here, 0, 1, ..., n-1 are in group 0,
// n, ..., 2n - 1 are in group 1.
NCCLCHECK(ncclGetUniqueId(&tensor_para_nccl_uid));
for (int i = 1; i < tensor_para_size; i++) {
printf("[INFO] rank %d sends tensor_para_nccl_uid to rank %d \n", rank, rank + i);
MPICHECK(
MPI_Send(&tensor_para_nccl_uid, sizeof(tensor_para_nccl_uid), MPI_BYTE, rank + i, 0, MPI_COMM_WORLD));
}
}
else {
MPI_Status status;
printf("[INFO] rank %d receives tensor_para_nccl_uid from rank %d \n", rank, rank - tensor_para_rank);
MPICHECK(MPI_Recv(&tensor_para_nccl_uid,
sizeof(tensor_para_nccl_uid),
MPI_BYTE,
rank - tensor_para_rank,
0,
MPI_COMM_WORLD,
&status));
}
if (pipeline_para_rank == 0) {
// get the uid of each pipeline parallelism group
// 0, k, 2k, are in group 0
// 1, k+1, 2k+1 are in group 1
NCCLCHECK(ncclGetUniqueId(&pipeline_para_nccl_uid));
for (int i = 1; i < pipeline_para_size; i++) {
printf("[INFO] rank %d sends pipeline_para_nccl_uid to rank %d \n", rank, rank + i * tensor_para_size);
MPICHECK(MPI_Send(&pipeline_para_nccl_uid,
sizeof(pipeline_para_nccl_uid),
MPI_BYTE,
rank + i * tensor_para_size,
0,
MPI_COMM_WORLD));
}
}
else {
MPI_Status status;
printf("[INFO] rank %d receives pipeline_para_nccl_uid from rank %d \n", rank, rank % tensor_para_size);
MPICHECK(MPI_Recv(&pipeline_para_nccl_uid,
sizeof(pipeline_para_nccl_uid),
MPI_BYTE,
rank % tensor_para_size,
0,
MPI_COMM_WORLD,
&status));
}
ncclComm_t tensor_para_nccl_comm, pipeline_para_nccl_comm;
NCCLCHECK(ncclCommInitRank(&tensor_para_nccl_comm, tensor_para_size, tensor_para_nccl_uid, tensor_para_rank));
NCCLCHECK(
ncclCommInitRank(&pipeline_para_nccl_comm, pipeline_para_size, pipeline_para_nccl_uid, pipeline_para_rank));
// Read ids of request from file.
int max_input_len = -1;
std::vector<int> v_start_lengths;
std::vector<int> v_start_ids;
read_start_ids(request_batch_size, &v_start_lengths, &v_start_ids, max_input_len, end_id, beam_width);
int* d_input_ids;
int* d_input_lengths;
if (max_input_len == 0) {
// unconditional case, no input ids, so do nothing.
d_input_ids = nullptr;
d_input_lengths = nullptr;
max_input_len = 0;
}
else {
// conditional case.
deviceMalloc(&d_input_ids, request_batch_size * beam_width * max_input_len, false);
deviceMalloc(&d_input_lengths, request_batch_size * beam_width, false);
cudaH2Dcpy(d_input_ids, v_start_ids.data(), request_batch_size * beam_width * max_input_len);
cudaH2Dcpy(d_input_lengths, v_start_lengths.data(), request_batch_size * beam_width);
}
const int total_output_len = max_input_len + request_output_len;
if (total_output_len > (int)max_seq_len) {
printf("[ERROR] total_output_len (%d) should be <= max_seq_len (%ld). \n", total_output_len, max_seq_len);
exit(-1);
}
cudaStream_t stream;
cublasHandle_t cublas_handle;
cublasLtHandle_t cublaslt_handle;
cudaStreamCreate(&stream);
cublasCreate(&cublas_handle);
cublasLtCreate(&cublaslt_handle);
cublasSetStream(cublas_handle, stream);
cublasAlgoMap* cublas_algo_map = new cublasAlgoMap("gemm_config.in");
Allocator<AllocatorType::CUDA> allocator(getDevice());
std::mutex* cublas_wrapper_mutex = new std::mutex();
cublasMMWrapper cublas_wrapper =
cublasMMWrapper(cublas_handle, cublaslt_handle, stream, cublas_algo_map, cublas_wrapper_mutex, &allocator);
if (std::is_same<T, half>::value) {
cublas_wrapper.setGemmConfig(CUDA_R_16F, CUDA_R_16F, CUDA_R_16F, CUDA_R_32F);
}
#ifdef ENABLE_BF16
else if (std::is_same<T, __nv_bfloat16>::value) {
cublas_wrapper.setBF16GemmConfig();
}
#endif
else if (std::is_same<T, float>::value) {
cublas_wrapper.setFP32GemmConfig();
}
fastertransformer::ParallelGptWeight<T> gpt_weights(hidden_units,
inter_size,
vocab_size,
decoder_layers,
max_seq_len,
tensor_para_size,
tensor_para_rank,
pipeline_para_size,
pipeline_para_rank,
int8_mode);
gpt_weights.loadModel(model_dir);
NcclParam tensor_para(tensor_para_rank, tensor_para_size, tensor_para_nccl_comm);
NcclParam pipeline_para(pipeline_para_rank, pipeline_para_size, pipeline_para_nccl_comm);
unsigned long long int random_seed = 0;
ParallelGpt<T> gpt = ParallelGpt<T>(0, // max_batch_size, FT will adjust the buffer automatically.
0, // max_seq_len, FT will adjust the buffer automatically.
0, // max_input_len, FT will adjust the buffer automatically.
beam_width,
head_num,
size_per_head,
inter_size,
decoder_layers,
vocab_size,
start_id,
end_id,
0.0f,
top_k,
top_p,
random_seed,
temperature,
1.0f, // len_penalty,
repetition_penalty,
tensor_para,
pipeline_para,
stream,
&cublas_wrapper,
&allocator,
false,
&prop,
false,
int8_mode);
int* d_output_ids;
int* d_parent_ids;
int* d_sequence_lengths;
deviceMalloc(&d_output_ids, request_batch_size * beam_width * total_output_len, false);
deviceMalloc(&d_parent_ids, request_batch_size * beam_width * total_output_len, false);
deviceMalloc(&d_sequence_lengths, request_batch_size * beam_width, false);
std::unordered_map<std::string, Tensor> input_tensors = std::unordered_map<std::string, Tensor>{
{"input_ids",
Tensor{MEMORY_GPU,
TYPE_INT32,
std::vector<size_t>{request_batch_size * beam_width, (size_t)max_input_len},
d_input_ids}},
{"input_lengths",
Tensor{MEMORY_GPU, TYPE_INT32, std::vector<size_t>{request_batch_size * beam_width}, d_input_lengths}},
{"max_output_seq_len", Tensor{MEMORY_CPU, TYPE_INT32, std::vector<size_t>{1}, &total_output_len}}};
if (top_k == 0 && top_p == 0.0f) {
FT_CHECK(beam_width > 1);
input_tensors.insert({"beam_search_diversity_rate",
Tensor{MEMORY_CPU, TYPE_FP32, std::vector<size_t>{1}, &beam_search_diversity_rate}});
}
else {
if (top_p != 0.0f) {
input_tensors.insert({"runtime_top_p", Tensor{MEMORY_CPU, TYPE_FP32, std::vector<size_t>{1}, &top_p}});
}
if (top_k != 0) {
input_tensors.insert({"runtime_top_k", Tensor{MEMORY_CPU, TYPE_INT32, std::vector<size_t>{1}, &top_k}});
}
}
input_tensors.insert({"temperature", Tensor{MEMORY_CPU, TYPE_FP32, std::vector<size_t>{1}, &temperature}});
input_tensors.insert({"len_penalty", Tensor{MEMORY_CPU, TYPE_FP32, std::vector<size_t>{1}, &len_penalty}});
input_tensors.insert(
{"repetition_penalty", Tensor{MEMORY_CPU, TYPE_FP32, std::vector<size_t>{1}, &repetition_penalty}});
input_tensors.insert({"random_seed", Tensor{MEMORY_CPU, TYPE_UINT64, std::vector<size_t>{1}, &random_seed}});
std::unordered_map<std::string, Tensor> output_tensors = std::unordered_map<std::string, Tensor>{
{"output_ids",
Tensor{MEMORY_GPU,
TYPE_INT32,
std::vector<size_t>{request_batch_size, beam_width, (size_t)total_output_len},
d_output_ids}},
{"parent_ids",
Tensor{MEMORY_GPU,
TYPE_INT32,
std::vector<size_t>{(size_t)total_output_len, request_batch_size, beam_width},
d_parent_ids}},
{"sequence_length",
Tensor{MEMORY_GPU, TYPE_INT32, std::vector<size_t>{request_batch_size, beam_width}, d_sequence_lengths}},
{"output_log_probs",
Tensor{MEMORY_GPU,
TYPE_FP32,
std::vector<size_t>{(size_t)request_output_len, request_batch_size, beam_width},
nullptr}}};
print_mem_usage();
cudaDeviceSynchronize();
MPI_Barrier(MPI_COMM_WORLD);
int total_output_ids = total_output_len * request_batch_size;
int* h_output_ids = new int[total_output_ids];
int* h_sequence_lengths = new int[request_batch_size * beam_width];
if (rank == 0) {
printf("[INFO] Warming up\n");
}
// initialize output buffers
std::fill(h_output_ids, h_output_ids + total_output_ids, 0);
std::fill(h_sequence_lengths, h_sequence_lengths + request_batch_size, 0);
std::string stream_file = pipeline_para_rank == (pipeline_para_size - 1) ? "out.stream" : "";
GptFileStreamer<T> gpt_streamer(request_batch_size * beam_width, total_output_len, stream_file);
cudaProfilerStart();
// warm up
nvtx::setScope("warmup_time");
PUSH_RANGE("warmup time")
if (USE_ASYNC) {
gpt_streamer.run(&gpt, &output_tensors, &input_tensors, &gpt_weights);
}
else {
gpt.forward(&output_tensors, &input_tensors, &gpt_weights);
}
cudaDeviceSynchronize();
MPI_Barrier(MPI_COMM_WORLD);
POP_RANGE;
nvtx::resetScope();
if (rank == 0) {
printf("[INFO] Profiling\n");
}
// reset output buffers
std::fill(h_output_ids, h_output_ids + total_output_ids, 0);
std::fill(h_sequence_lengths, h_sequence_lengths + request_batch_size, 0);
deviceFill(d_sequence_lengths, request_batch_size, 0);
struct timeval start, end;
cudaDeviceSynchronize();
MPI_Barrier(MPI_COMM_WORLD);
gettimeofday(&start, NULL);
nvtx::setScope("total_time");
PUSH_RANGE("total time")
int ite = 1;
for (int i = 0; i < ite; ++i) {
if (USE_ASYNC) {
gpt_streamer.run(&gpt, &output_tensors, &input_tensors, &gpt_weights);
}
else {
gpt.forward(&output_tensors, &input_tensors, &gpt_weights);
}
}
cudaDeviceSynchronize();
MPI_Barrier(MPI_COMM_WORLD);
POP_RANGE;
nvtx::resetScope();
gettimeofday(&end, NULL);
cudaProfilerStop();
if (rank == 0) {
printf("[INFO] request_batch_size %ld beam_width %ld head_num %ld size_per_head %ld total_output_len %d"
" decoder_layers %ld vocab_size %ld FT-CPP-decoding-beamsearch-time %.2f ms\n",
request_batch_size,
beam_width,
head_num,
size_per_head,
total_output_len,
decoder_layers,
vocab_size,
((end.tv_sec - start.tv_sec) * 1000 + (end.tv_usec - start.tv_usec) * 0.001) / ite);
std::string fName = USE_ASYNC ? "out.async" : "out.sync";
auto outFile = std::ofstream(fName, std::ios::out);
if (!outFile.is_open()) {
printf("[WARNING] Cannot write results into output file %s \n", fName.c_str());
}
else {
size_t outCount = total_output_len * request_batch_size;
int* hBuf = new int[outCount];
cudaDeviceSynchronize();
cudaMemcpyAsync(hBuf, d_output_ids, outCount * sizeof(int), cudaMemcpyDeviceToHost, stream);
cudaDeviceSynchronize();
{
std::cout << "Writing " << outCount << " elements\n";
int zeroCount = 0;
for (size_t i = 0; i < outCount; i++) {
if (hBuf[i] == int(0)) {
zeroCount++;
}
outFile << hBuf[i];
if ((i + 1) % (total_output_len) == 0) {
outFile << std::endl;
}
else {
outFile << " ";
}
if (i < 10) {
printf("%5d ", hBuf[i]);
}
if ((i + 1) % (total_output_len) == 0 && i < 10) {
std::cout << std::endl;
}
}
std::cout << std::endl << "zeroCount = " << zeroCount << std::endl;
}
delete[] hBuf;
}
}
ncclCommDestroy(tensor_para_nccl_comm);
ncclCommDestroy(pipeline_para_nccl_comm);
delete[] h_output_ids;
delete[] h_sequence_lengths;
return;
}
| 36,470 | 11,733 |
#include "config.h"
#include "Scene_triangulation_3_item.h"
#include "Scene_surface_mesh_item.h"
#include "Scene_spheres_item.h"
#include <QVector>
#include <QColor>
#include <QPixmap>
#include <QApplication>
#include <QPainter>
#include <QtCore/qglobal.h>
#include <QGuiApplication>
#include <QSlider>
#include <QWidgetAction>
#include <QKeyEvent>
#include <QMouseEvent>
#include <map>
#include <vector>
#include <unordered_map>
#include <bitset>
#include <CGAL/Three/Scene_interface.h>
#include <CGAL/Three/Triangle_container.h>
#include <CGAL/Three/Edge_container.h>
#include <CGAL/Three/Point_container.h>
#include <CGAL/Three/Three.h>
#include <CGAL/Real_timer.h>
#include <CGAL/Qt/manipulatedFrame.h>
#include <CGAL/Qt/qglviewer.h>
#include <boost/iterator/function_output_iterator.hpp>
#include <boost/dynamic_bitset.hpp>
#include <CGAL/AABB_tree.h>
#include <CGAL/AABB_traits.h>
#include <CGAL/AABB_triangulation_3_cell_primitive.h>
#include <CGAL/facets_in_complex_3_to_triangle_mesh.h>
#include "Scene_polygon_soup_item.h"
typedef CGAL::AABB_triangulation_3_cell_primitive<EPICK,
Tr> Primitive;
typedef CGAL::AABB_traits<EPICK, Primitive> Traits;
typedef CGAL::AABB_tree<Traits> Tree;
typedef Tree::Point_and_primitive_id Point_and_primitive_id;
using namespace CGAL::Three;
typedef Triangle_container Tc;
typedef Edge_container Ec;
typedef Point_container Pc;
typedef Viewer_interface Vi;
QVector4D cgal_plane_to_vector4d(EPICK::Plane_3 plane) {
return {
static_cast<float>(-plane.a()),
static_cast<float>(-plane.b()),
static_cast<float>(-plane.c()),
static_cast<float>(-plane.d()) };
}
class Scene_intersection_item : public CGAL::Three::Scene_item_rendering_helper
{
Q_OBJECT
public :
Scene_intersection_item(Scene_triangulation_3_item* parent)
:is_fast(false)
{
setParent(parent);
alphaSlider = NULL;
m_alpha = 1.0f;
setTriangleContainer(0, new Tc(Vi::PROGRAM_C3T3, false));
setEdgeContainer(0, new Ec(Vi::PROGRAM_NO_SELECTION, false));
}
bool isFinite() const Q_DECL_OVERRIDE{ return false; }
~Scene_intersection_item()
{
if(alphaSlider)
delete alphaSlider;
}
void compute_bbox() const Q_DECL_OVERRIDE{}
void gl_initialization(Vi* viewer)
{
if(!isInit(viewer))
initGL(viewer);
computeElements();
initializeBuffers(viewer);
}
void init_vectors(
std::vector<float> *p_vertices,
std::vector<float> *p_normals,
std::vector<float> *p_edges,
std::vector<float> *p_colors,
std::vector<float> *p_bary,
std::vector<float> *p_subdomain_ids)
{
vertices = p_vertices;
normals = p_normals;
edges = p_edges;
colors = p_colors;
barycenters = p_bary;
subdomain_ids = p_subdomain_ids;
}
void setColor(QColor c) Q_DECL_OVERRIDE
{
qobject_cast<Scene_triangulation_3_item*>(this->parent())->setColor(c);
Scene_item::setColor(c);
}
// Indicates if rendering mode is supported
bool supportsRenderingMode(RenderingMode m) const Q_DECL_OVERRIDE{
return (m != Gouraud && m != PointsPlusNormals && m != Points && m != ShadedPoints);
}
void computeElements() const Q_DECL_OVERRIDE
{
getTriangleContainer(0)->reset_vbos(ALL);
getEdgeContainer(0)->reset_vbos(ALL);
getTriangleContainer(0)->allocate(Tc::Flat_vertices,
vertices->data(), static_cast<int>(vertices->size()*sizeof(float)));
getTriangleContainer(0)->allocate(Tc::Flat_normals, normals->data(),
static_cast<int>(normals->size()*sizeof(float)));
getTriangleContainer(0)->allocate(Tc::FColors, colors->data(),
static_cast<int>(colors->size()*sizeof(float)));
getTriangleContainer(0)->allocate(Tc::Facet_centers, barycenters->data(),
static_cast<int>(barycenters->size()*sizeof(float)));
getTriangleContainer(0)->allocate(Tc::Subdomain_indices, subdomain_ids->data(),
static_cast<int>(subdomain_ids->size()*sizeof(float)));
getEdgeContainer(0)->allocate(Ec::Vertices, edges->data(),
static_cast<int>(edges->size()*sizeof(float)));
setBuffersFilled(true);
}
void initializeBuffers(CGAL::Three::Viewer_interface *viewer)const Q_DECL_OVERRIDE
{
//vao containing the data for the facets
{
getTriangleContainer(0)->initializeBuffers(viewer);
getTriangleContainer(0)->setFlatDataSize(vertices->size());
}
//vao containing the data for the lines
{
getEdgeContainer(0)->initializeBuffers(viewer);
getEdgeContainer(0)->setFlatDataSize(edges->size());
}
}
//Displays the item
void draw(CGAL::Three::Viewer_interface* viewer) const Q_DECL_OVERRIDE
{
if(is_fast)
return;
if(!alphaSlider)
{
alphaSlider = new QSlider(::Qt::Horizontal);
alphaSlider->setMinimum(0);
alphaSlider->setMaximum(255);
alphaSlider->setValue(255);
}
const EPICK::Plane_3& plane = qobject_cast<Scene_triangulation_3_item*>(this->parent())->plane();
float shrink_factor = qobject_cast<Scene_triangulation_3_item*>(this->parent())->getShrinkFactor();
QVector4D cp = cgal_plane_to_vector4d(plane);
getTriangleContainer(0)->setPlane(-cp);
getTriangleContainer(0)->setShrinkFactor(shrink_factor);
// positions_poly is also used for the faces in the cut plane
// and changes when the cut plane is moved
getTriangleContainer(0)->setAlpha(alpha());
getTriangleContainer(0)->draw(viewer, false);
}
void drawEdges(CGAL::Three::Viewer_interface* viewer) const Q_DECL_OVERRIDE
{
if(is_fast)
return;
const EPICK::Plane_3& plane = qobject_cast<Scene_triangulation_3_item*>(this->parent())->plane();
QVector4D cp = cgal_plane_to_vector4d(plane);
getEdgeContainer(0)->setPlane(cp);
getEdgeContainer(0)->setColor(QColor(Qt::black));
getEdgeContainer(0)->draw(viewer, true);
}
void setFast(bool b)
{
is_fast = b;
}
void addTriangle(const Tr::Bare_point& pa, const Tr::Bare_point& pb,
const Tr::Bare_point& pc, const CGAL::Color color)
{
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
Geom_traits::Vector_3 n = cross_product(pb - pa, pc - pa);
n = n / CGAL::sqrt(n*n);
auto push_normal = [this](auto n) {
normals->push_back(static_cast<float>(n.x()));
normals->push_back(static_cast<float>(n.y()));
normals->push_back(static_cast<float>(n.z()));
};
auto push_vertex = [this, &offset](const auto& p) {
this->vertices->push_back(static_cast<float>(p.x()+offset.x));
this->vertices->push_back(static_cast<float>(p.y()+offset.y));
this->vertices->push_back(static_cast<float>(p.z()+offset.z));
};
auto push_edge = [this, &offset](const auto& pa, const auto& pb) {
this->edges->push_back(static_cast<float>(pa.x()+offset.x));
this->edges->push_back(static_cast<float>(pa.y()+offset.y));
this->edges->push_back(static_cast<float>(pa.z()+offset.z));
this->edges->push_back(static_cast<float>(pb.x()+offset.x));
this->edges->push_back(static_cast<float>(pb.y()+offset.y));
this->edges->push_back(static_cast<float>(pb.z()+offset.z));
};
for (int i = 0; i<3; i++)
{
push_normal(n);
}
push_vertex(pa);
push_vertex(pb);
push_vertex(pc);
push_edge(pa, pb);
push_edge(pb, pc);
push_edge(pc, pa);
for(int i=0; i<3; i++)
{
colors->push_back((float)color.red()/255);
colors->push_back((float)color.green()/255);
colors->push_back((float)color.blue()/255);
barycenters->push_back(static_cast<float>((pa[0]+pb[0]+pc[0])/3.0 + offset.x));
barycenters->push_back(static_cast<float>((pa[1]+pb[1]+pc[1])/3.0 + offset.y));
barycenters->push_back(static_cast<float>((pa[2]+pb[2]+pc[2])/3.0 + offset.z));
}
}
Scene_item* clone() const Q_DECL_OVERRIDE{return 0;}
QString toolTip() const Q_DECL_OVERRIDE{return QString();}
QMenu* contextMenu() Q_DECL_OVERRIDE
{
QMenu* menu = Scene_item::contextMenu();
const char* prop_name = "Menu modified by Scene_surface_mesh_item.";
bool menuChanged = menu->property(prop_name).toBool();
if(!menuChanged) {
menu->addSeparator();
QMenu *container = new QMenu(tr("Alpha value"));
container->menuAction()->setProperty("is_groupable", true);
QWidgetAction *sliderAction = new QWidgetAction(0);
sliderAction->setDefaultWidget(alphaSlider);
connect(alphaSlider, &QSlider::valueChanged,
[this](){
setAlpha(alphaSlider->value());
redraw();
});
container->addAction(sliderAction);
menu->addMenu(container);
setProperty("menu_changed", true);
menu->setProperty(prop_name, true);
}
return menu;
}
float alpha() const Q_DECL_OVERRIDE
{
return m_alpha ;
}
void setAlpha(int a) Q_DECL_OVERRIDE
{
m_alpha = a / 255.0f;
redraw();
}
private:
//contains the data
mutable std::vector<float> *vertices;
mutable std::vector<float> *normals;
mutable std::vector<float> *edges;
mutable std::vector<float> *colors;
mutable std::vector<float> *barycenters;
mutable std::vector<float> *subdomain_ids;
mutable bool is_fast;
mutable QSlider* alphaSlider;
mutable float m_alpha ;
}; //end of class Scene_triangle_item
struct Scene_triangulation_3_item_priv {
typedef CGAL::qglviewer::ManipulatedFrame ManipulatedFrame;
Scene_triangulation_3_item_priv(Scene_triangulation_3_item* item)
: item(item), triangulation()
, frame(new ManipulatedFrame())
, data_item_(NULL)
, histogram_()
, surface_patch_indices_()
, subdomain_indices_()
{
init_default_values();
tet_Slider = new QSlider(Qt::Horizontal);
tet_Slider->setMinimum(0);
tet_Slider->setMaximum(100);
tet_Slider->setValue(100);
invalidate_stats();
}
Scene_triangulation_3_item_priv(const T3& triangulation_, Scene_triangulation_3_item* item)
: item(item), triangulation(triangulation_)
, frame(new ManipulatedFrame())
, data_item_(NULL)
, histogram_()
, surface_patch_indices_()
, subdomain_indices_()
{
init_default_values();
tet_Slider = new QSlider(Qt::Horizontal);
tet_Slider->setMinimum(0);
tet_Slider->setMaximum(100);
tet_Slider->setValue(100);
invalidate_stats();
}
~Scene_triangulation_3_item_priv()
{
if(alphaSlider)
delete alphaSlider;
item->triangulation().clear();
tree.clear();
if(frame)
{
delete frame;
frame = NULL;
delete tet_Slider;
}
}
void init_default_values() {
positions_lines.resize(0);
positions_poly.resize(0);
normals.resize(0);
s_vertex.resize(0);
s_normals.resize(0);
ws_vertex.resize(0);
need_changed = false;
spheres = NULL;
intersection = NULL;
spheres_are_shown = false;
is_aabb_tree_built = false;
alphaSlider = NULL;
is_filterable = true;
}
void computeIntersection(const Primitive& facet);
void fill_aabb_tree() {
if(item->isEmpty()) return;
QGuiApplication::setOverrideCursor(Qt::WaitCursor);
CGAL::Real_timer timer;
timer.start();
tree.clear();
for (Tr::Finite_cells_iterator
cit = item->triangulation().finite_cells_begin(),
end = item->triangulation().finite_cells_end();
cit != end; ++cit)
{
if(!item->do_take_cell(cit)) continue;
tree.insert(Primitive(cit));
}
tree.build();
is_aabb_tree_built = true;
QGuiApplication::restoreOverrideCursor();
}
void reset_cut_plane();
void draw_triangle(const Tr::Bare_point& pa,
const Tr::Bare_point& pb,
const Tr::Bare_point& pc) const;
void draw_triangle_edges(const Tr::Bare_point& pa,
const Tr::Bare_point& pb,
const Tr::Bare_point& pc) const;
double complex_diag() const;
void compute_color_map(const QColor& c);
void initializeBuffers(CGAL::Three::Viewer_interface *viewer);
void initialize_intersection_buffers(CGAL::Three::Viewer_interface *viewer);
void computeSpheres();
void computeElements();
void computeIntersections(CGAL::Three::Viewer_interface* viewer);
void invalidate_stats()
{
min_edges_length = (std::numeric_limits<float>::max)();
max_edges_length = 0;
mean_edges_length = 0;
min_dihedral_angle = (std::numeric_limits<float>::max)();
max_dihedral_angle = 0;
mean_dihedral_angle = 0;
nb_subdomains = 0;
nb_spheres = 0;
nb_vertices = 0;
nb_tets = 0;
spheres_are_shown = false;
smallest_radius_radius = (std::numeric_limits<float>::max)();
smallest_edge_radius = (std::numeric_limits<float>::max)();
biggest_v_sma_cube = 0;
computed_stats = false;
}
enum STATS {
MIN_EDGES_LENGTH = 0,
MAX_EDGES_LENGTH,
MEAN_EDGES_LENGTH,
MIN_DIHEDRAL_ANGLE,
MAX_DIHEDRAL_ANGLE,
MEAN_DIHEDRAL_ANGLE,
NB_SPHERES,
NB_VERTICES,
NB_TETS,
SMALLEST_RAD_RAD,
SMALLEST_EDGE_RAD,
BIGGEST_VL3_CUBE,
NB_SUBDOMAINS
};
Scene_triangulation_3_item* item;
T3 triangulation;
bool is_grid_shown;
CGAL::qglviewer::ManipulatedFrame* frame;
bool need_changed;
mutable std::map<CGAL::Three::Viewer_interface*, bool> are_intersection_buffers_filled;
bool areInterBufFilled(CGAL::Three::Viewer_interface* viewer)
{
if(are_intersection_buffers_filled.find(viewer) != are_intersection_buffers_filled.end())
return are_intersection_buffers_filled[viewer];
return false;
}
Scene_spheres_item *spheres;
std::vector<Tr::Vertex> tr_vertices;
Scene_intersection_item *intersection;
bool spheres_are_shown;
const Scene_item* data_item_;
QPixmap histogram_;
typedef std::set<int> Indices;
Indices surface_patch_indices_;
Indices subdomain_indices_;
std::unordered_map<int, int> id_to_compact;
QSlider* tet_Slider;
bool is_filterable;
//!Allows OpenGL 2.0 context to get access to glDrawArraysInstanced.
typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
//!Allows OpenGL 2.0 context to get access to glVertexAttribDivisor.
typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
//!Allows OpenGL 2.0 context to get access to gkFrameBufferTexture2D.
PFNGLDRAWARRAYSINSTANCEDARBPROC glDrawArraysInstanced;
//!Allows OpenGL 2.0 context to get access to glVertexAttribDivisor.
PFNGLVERTEXATTRIBDIVISORARBPROC glVertexAttribDivisor;
mutable std::size_t positions_poly_size;
mutable std::size_t positions_lines_size;
mutable std::vector<float> positions_lines;
mutable std::vector<float> positions_grid;
mutable std::vector<float> positions_poly;
mutable std::vector<float> positions_barycenter;
mutable std::vector<float> inter_subdomain_ids;
mutable std::vector<float> normals;
mutable std::vector<float> f_colors;
mutable std::vector<float> s_normals;
mutable std::vector<float> s_colors;
mutable std::vector<float> s_vertex;
mutable std::vector<float> ws_vertex;
mutable std::vector<float> s_radius;
mutable std::vector<float> s_center;
mutable std::vector<float> subdomain_ids;
mutable bool computed_stats;
mutable float max_edges_length;
mutable float min_edges_length;
mutable float mean_edges_length;
mutable float min_dihedral_angle;
mutable float max_dihedral_angle;
mutable float mean_dihedral_angle;
mutable std::size_t nb_spheres;
mutable std::size_t nb_subdomains;
mutable std::size_t nb_vertices;
mutable std::size_t nb_tets;
mutable float smallest_radius_radius;
mutable float smallest_edge_radius;
mutable float biggest_v_sma_cube;
QSlider* alphaSlider;
Tree tree;
QVector<QColor> colors;
QVector<QColor> colors_subdomains;
boost::dynamic_bitset<> visible_subdomain;
std::bitset<24> bs[4] = {16777215, 16777215, 16777215, 16777215};
bool show_tetrahedra;
bool is_aabb_tree_built;
bool last_intersection;
void push_normal(std::vector<float>& normals, const EPICK::Vector_3& n) const
{
normals.push_back(static_cast<float>(n.x()));
normals.push_back(static_cast<float>(n.y()));
normals.push_back(static_cast<float>(n.z()));
}
void push_point(std::vector<float>& points, const EPICK::Point_3& p,
const CGAL::qglviewer::Vec& offset) const
{
points.push_back(static_cast<float>(p.x()+offset.x));
points.push_back(static_cast<float>(p.y()+offset.y));
points.push_back(static_cast<float>(p.z()+offset.z));
}
void push_edge(std::vector<float>& edges,
const EPICK::Point_3& pa,
const EPICK::Point_3& pb,
const CGAL::qglviewer::Vec& offset) const
{
push_point(edges, pa, offset);
push_point(edges, pb, offset);
}
};
struct Set_show_tetrahedra {
Scene_triangulation_3_item_priv* priv;
Set_show_tetrahedra(Scene_triangulation_3_item_priv* priv) : priv(priv) {}
void operator()(bool b) {
priv->show_tetrahedra = b;
priv->item->show_intersection(b);
}
};
void Scene_triangulation_3_item::common_constructor(bool display_elements)
{
d->frame = new CGAL::qglviewer::ManipulatedFrame();
connect(d->frame, SIGNAL(modified()), this, SLOT(changed()));
triangulation_changed();
setRenderingMode(FlatPlusEdges);
create_flat_and_wire_sphere(1.0f,d->s_vertex,d->s_normals, d->ws_vertex);
d->is_grid_shown = display_elements;
d->show_tetrahedra = display_elements;
d->last_intersection = !d->show_tetrahedra;
setTriangleContainer(T3_faces, new Tc(Vi::PROGRAM_C3T3, false));
setEdgeContainer(Grid_edges, new Ec(Vi::PROGRAM_NO_SELECTION, false));
setEdgeContainer(T3_edges, new Ec(Vi::PROGRAM_C3T3_EDGES, false));
for(auto v : CGAL::QGLViewer::QGLViewerPool())
{
v->installEventFilter(this);
}
}
Scene_triangulation_3_item::Scene_triangulation_3_item(bool display_elements)
: Scene_group_item("unnamed")
, d(new Scene_triangulation_3_item_priv(this))
{
common_constructor(display_elements);
}
Scene_triangulation_3_item::Scene_triangulation_3_item(const T3 triangulation, bool display_elements)
: Scene_group_item("unnamed")
, d(new Scene_triangulation_3_item_priv(triangulation, this))
{
common_constructor(display_elements);
d->reset_cut_plane();
triangulation_changed();
changed();
}
Scene_triangulation_3_item::~Scene_triangulation_3_item()
{
if(d)
{
delete d;
d = NULL;
}
}
const Scene_item*
Scene_triangulation_3_item::data_item() const
{
return d->data_item_;
}
void
Scene_triangulation_3_item::set_data_item(const Scene_item* data_item)
{
d->data_item_ = data_item;
if (NULL != data_item)
{
connect(d->data_item_, SIGNAL(aboutToBeDestroyed()),
this, SLOT(data_item_destroyed()));
}
}
void
Scene_triangulation_3_item::data_item_destroyed()
{
set_data_item(NULL);
}
const T3&
Scene_triangulation_3_item::triangulation() const {
return d->triangulation;
}
T3&
Scene_triangulation_3_item::triangulation()
{
return d->triangulation;
}
void
Scene_triangulation_3_item::changed()
{
if(!d)
return;
d->need_changed = true;
QTimer::singleShot(0,this, SLOT(updateCutPlane()));
}
void Scene_triangulation_3_item::updateCutPlane()
{
// just handle deformation - paint like selection is handled in eventFilter()
if(!d)
return;
if(d->need_changed) {
for(auto v : CGAL::QGLViewer::QGLViewerPool())
{
CGAL::Three::Viewer_interface* viewer = static_cast<CGAL::Three::Viewer_interface*>(v);
d->are_intersection_buffers_filled[viewer] = false;
}
d->need_changed = false;
}
}
void
Scene_triangulation_3_item::triangulation_changed()
{
// Update colors
// Fill indices map and get max subdomain value
d->surface_patch_indices_.clear();
d->subdomain_indices_.clear();
d->visible_subdomain.clear();
d->id_to_compact.clear();
int max = 0;
int compact = 0;
for (Tr::Finite_cells_iterator cit = triangulation().finite_cells_begin(),
end = triangulation().finite_cells_end(); cit != end; ++cit)
{
max = (std::max)(max, cit->subdomain_index());
if(d->subdomain_indices_.insert(cit->subdomain_index()).second)
{
d->id_to_compact[cit->subdomain_index()] = compact++;
}
}
const int max_subdomain_index = max;
d->visible_subdomain.resize(max_subdomain_index+1, true);
d->is_filterable &=( d->subdomain_ids.size() < 96);
for (Tr::Finite_facets_iterator fit = triangulation().finite_facets_begin(),
end = triangulation().finite_facets_end(); fit != end; ++fit)
{
max = (std::max)(max, fit->first->surface_patch_index(fit->second));
d->surface_patch_indices_.insert(fit->first->surface_patch_index(fit->second));
}
d->colors.resize(max + 1);
d->colors_subdomains.resize(max_subdomain_index + 1);
d->compute_color_map(color_);
// Rebuild histogram
build_histogram();
d->tree.clear();
d->is_aabb_tree_built = false;
}
QPixmap
Scene_triangulation_3_item::graphicalToolTip() const
{
if (!d->histogram_.isNull())
{
return d->histogram_;
}
const_cast<Scene_triangulation_3_item&>(*this).build_histogram();
return d->histogram_;
}
std::vector<int>
create_histogram(const T3& triangulation, double& min_value, double& max_value)
{
Geom_traits::Compute_approximate_dihedral_angle_3 approx_dihedral_angle
= triangulation.geom_traits().compute_approximate_dihedral_angle_3_object();
Geom_traits::Construct_point_3 wp2p
= triangulation.geom_traits().construct_point_3_object();
std::vector<int> histo(181, 0);
min_value = 180.;
max_value = 0.;
for (T3::Finite_cells_iterator cit = triangulation.finite_cells_begin();
cit != triangulation.finite_cells_end();
++cit)
{
#ifdef CGAL_MESH_3_DEMO_DONT_COUNT_TETS_ADJACENT_TO_SHARP_FEATURES_FOR_HISTOGRAM
if (triangulation.in_dimension(cit->vertex(0)) <= 1
|| triangulation.in_dimension(cit->vertex(1)) <= 1
|| triangulation.in_dimension(cit->vertex(2)) <= 1
|| triangulation.in_dimension(cit->vertex(3)) <= 1)
continue;
#endif //CGAL_MESH_3_DEMO_DONT_COUNT_TETS_ADJACENT_TO_SHARP_FEATURES_FOR_HISTOGRAM
const Tr::Bare_point& p0 = wp2p(cit->vertex(0)->point());
const Tr::Bare_point& p1 = wp2p(cit->vertex(1)->point());
const Tr::Bare_point& p2 = wp2p(cit->vertex(2)->point());
const Tr::Bare_point& p3 = wp2p(cit->vertex(3)->point());
double a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p1, p2, p3)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p2, p1, p3)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p3, p1, p2)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p1, p2, p0, p3)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p1, p3, p0, p2)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p2, p3, p0, p1)));
histo[static_cast<int>(std::floor(a))] += 1;
min_value = (std::min)(min_value, a);
max_value = (std::max)(max_value, a);
}
return histo;
}
void
Scene_triangulation_3_item::build_histogram()
{
#ifdef CGAL_MESH_3_DEMO_BIGGER_HISTOGRAM_WITH_WHITE_BACKGROUNG
// Create an histogram_ and display it
const int height = 280;
const int top_margin = 5;
const int left_margin = 20;
const int drawing_height = height - top_margin * 2;
const int width = 804;
const int cell_width = 4;
const int text_margin = 3;
const int text_height = 34;
d->histogram_ = QPixmap(width, height + text_height);
d->histogram_.fill(QColor(255, 255, 255));
#else
// Create an histogram_ and display it
const int height = 140;
const int top_margin = 5;
const int left_margin = 20;
const int drawing_height = height - top_margin * 2;
const int width = 402;
const int cell_width = 2;
const int text_margin = 3;
const int text_height = 20;
d->histogram_ = QPixmap(width, height + text_height);
d->histogram_.fill(QColor(192, 192, 192));
#endif
QPainter painter(&d->histogram_);
painter.setPen(Qt::black);
painter.setBrush(QColor(128, 128, 128));
//painter.setFont(QFont("Arial", 30));
// Build histogram_ data
double min_value, max_value;
std::vector<int> histo_data = create_histogram(triangulation(), min_value, max_value);
// Get maximum value (to normalize)
int max_size = 0;
for (std::vector<int>::iterator it = histo_data.begin(), end = histo_data.end();
it != end; ++it)
{
max_size = (std::max)(max_size, *it);
}
// colored histogram
int j = 0;
// draw
int i = left_margin;
for (std::vector<int>::iterator it = histo_data.begin(), end = histo_data.end();
it != end; ++it, i += cell_width)
{
int line_height = static_cast<int>(std::ceil(static_cast<double>(drawing_height)*
static_cast<double>(*it) / static_cast<double>(max_size)) + .5);
painter.fillRect(i,
drawing_height + top_margin - line_height,
cell_width,
line_height,
get_histogram_color(j++));
}
// draw bottom horizontal line
painter.setPen(Qt::blue);
painter.drawLine(QPoint(left_margin, drawing_height + top_margin),
QPoint(left_margin + static_cast<int>(histo_data.size())*cell_width,
drawing_height + top_margin));
// draw min value and max value
const int min_tr_width =
static_cast<int>(2 * (std::floor(min_value)*cell_width + left_margin));
const int max_tr_width =
static_cast<int>(2 * ((double(histo_data.size()) -
std::floor(max_value))*cell_width + left_margin));
const int tr_y = drawing_height + top_margin + text_margin;
painter.setPen(get_histogram_color(min_value));
QRect min_text_rect(0, tr_y, min_tr_width, text_height);
painter.drawText(min_text_rect, Qt::AlignCenter, tr("%1").arg(min_value, 0, 'f', 1));
painter.setPen(get_histogram_color(max_value));
QRect max_text_rect(width - max_tr_width, tr_y, max_tr_width, text_height);
painter.drawText(max_text_rect, Qt::AlignCenter, tr("%1").arg(max_value, 0, 'f', 1));
}
QColor
Scene_triangulation_3_item::get_histogram_color(const double v) const
{
if (v < 5) { return Qt::red; }
else if (v < 10) { return QColor(215, 108, 0); }
else if (v < 15) { return QColor(138, 139, 0); }
else if (v < 165) { return QColor(60, 136, 64); }
else if (v < 170) { return QColor(138, 139, 1); }
else if (v < 175) { return QColor(215, 108, 0); }
else /* 175<v<=180 */ { return Qt::red; }
}
void
Scene_triangulation_3_item::update_histogram()
{
build_histogram();
}
void
Scene_triangulation_3_item_priv::compute_color_map(const QColor& c)
{
typedef Indices::size_type size_type;
const size_type nb_domains = subdomain_indices_.size();
double i = 0;
for (Indices::iterator it = subdomain_indices_.begin(),
end = subdomain_indices_.end(); it != end; ++it, i += 1.)
{
double hue = c.hueF() + 1. / double(nb_domains) * i;
if (hue > 1) { hue -= 1.; }
colors_subdomains[*it] = QColor::fromHsvF(hue, c.saturationF(), c.valueF());
}
const size_type nb_patch_indices = surface_patch_indices_.size();
i = 0;
for (Indices::iterator it = surface_patch_indices_.begin(),
end = surface_patch_indices_.end(); it != end; ++it, i += 1.)
{
double hue = c.hueF() + 1. / double(nb_patch_indices) * i;
if (hue > 1) { hue -= 1.; }
colors[*it] = QColor::fromHsvF(hue, c.saturationF(), c.valueF());
}
}
Geom_traits::Plane_3 Scene_triangulation_3_item::plane(CGAL::qglviewer::Vec offset) const
{
const CGAL::qglviewer::Vec& pos = d->frame->position() - offset;
const CGAL::qglviewer::Vec& n =
d->frame->inverseTransformOf(CGAL::qglviewer::Vec(0.f, 0.f, 1.f));
return Geom_traits::Plane_3(n[0], n[1], n[2], -n * pos);
}
void Scene_triangulation_3_item::compute_bbox() const {
if (isEmpty())
_bbox = Bbox();
else {
bool bbox_init = false;
CGAL::Bbox_3 result;
for (Tr::Finite_vertices_iterator
vit = triangulation().finite_vertices_begin(),
end = triangulation().finite_vertices_end();
vit != end; ++vit)
{
//if(!do_take_vertex(vit)) continue;
if (bbox_init)
result = result + vit->point().bbox();
else
{
result = vit->point().bbox();
bbox_init = true;
}
}
_bbox = Bbox(result.xmin(), result.ymin(), result.zmin(),
result.xmax(), result.ymax(), result.zmax());
}
}
QString Scene_triangulation_3_item::toolTip() const {
return tr("<p><b>3D triangulation</b></p>"
"<p>Number of vertices: %1<br />"
"Number of finite facets: %2<br />"
"Number of finite cells: %3</p>%4")
.arg(triangulation().number_of_vertices())
.arg(triangulation().number_of_finite_facets())
.arg(triangulation().number_of_finite_cells())
.arg(property("toolTip").toString());
}
void Scene_triangulation_3_item::draw(CGAL::Three::Viewer_interface* viewer) const {
if(!viewer->isOpenGL_4_3())
{
d->is_filterable = false;
}
if(!visible())
return;
Scene_triangulation_3_item* ncthis = const_cast<Scene_triangulation_3_item*>(this);
if(!isInit(viewer))
initGL(viewer);
if ( getBuffersFilled() &&
! getBuffersInit(viewer))
{
initializeBuffers(viewer);
setBuffersInit(viewer, true);
}
if(!getBuffersFilled())
{
computeElements();
initializeBuffers(viewer);
}
if(renderingMode() == Flat ||
renderingMode() == FlatPlusEdges)
{
QVector4D cp = cgal_plane_to_vector4d(this->plane());
getTriangleContainer(T3_faces)->setPlane(cp);
float shrink_factor = getShrinkFactor();
getTriangleContainer(T3_faces)->setShrinkFactor(shrink_factor);
// positions_poly_size is the number of total facets in the C3T3
// it is only computed once and positions_poly is emptied at the end
getTriangleContainer(T3_faces)->setAlpha(alpha());
getTriangleContainer(T3_faces)->setIsSurface(is_surface());
QOpenGLShaderProgram* program = viewer->getShaderProgram(getTriangleContainer(T3_faces)->getProgram());
program->bind();
if(d->is_filterable)
{
QVector4D visible_bitset(d->bs[0].to_ulong(),d->bs[1].to_ulong(),d->bs[2].to_ulong(),d->bs[3].to_ulong());
program->setUniformValue("is_visible_bitset", visible_bitset);
}
program->setUniformValue("is_filterable", d->is_filterable);
program->release();
getTriangleContainer(T3_faces)->draw(viewer, false);
if(d->show_tetrahedra){
ncthis->show_intersection(true);
if(!d->frame->isManipulated())
d->intersection->setFast(false);
else
d->intersection->setFast(true);
if(!d->frame->isManipulated() && !d->areInterBufFilled(viewer))
{
//initGL
ncthis->d->computeIntersections(viewer);
d->are_intersection_buffers_filled[viewer] = true;
ncthis->show_intersection(true);
}
}
if(d->spheres_are_shown)
{
d->spheres->setPlane(this->plane());
}
}
if(d->is_grid_shown)
{
getEdgeContainer(Grid_edges)->setColor(QColor(Qt::black));
QMatrix4x4 f_mat;
for (int i = 0; i<16; i++)
f_mat.data()[i] = static_cast<float>(d->frame->matrix()[i]);
getEdgeContainer(Grid_edges)->setFrameMatrix(f_mat);
getEdgeContainer(Grid_edges)->draw(viewer, true);
}
}
void Scene_triangulation_3_item::drawEdges(CGAL::Three::Viewer_interface* viewer) const {
if(!visible())
return;
if(renderingMode() == Wireframe ||
renderingMode() == FlatPlusEdges )
{
if(renderingMode() == FlatPlusEdges)
{
GLint renderMode;
viewer->glGetIntegerv(GL_RENDER_MODE, &renderMode);
if(renderMode == GL_SELECT) return;
}
Scene_triangulation_3_item* ncthis = const_cast<Scene_triangulation_3_item*>(this);
if(!isInit(viewer))
initGL(viewer);
if ( getBuffersFilled() &&
! getBuffersInit(viewer))
{
initializeBuffers(viewer);
setBuffersInit(viewer, true);
}
if(!getBuffersFilled())
{
computeElements();
initializeBuffers(viewer);
}
if(renderingMode() == Wireframe && d->is_grid_shown)
{
getEdgeContainer(Grid_edges)->setColor(QColor(Qt::black));
QMatrix4x4 f_mat;
for (int i = 0; i<16; i++)
f_mat.data()[i] = static_cast<float>(d->frame->matrix()[i]);
getEdgeContainer(Grid_edges)->setFrameMatrix(f_mat);
getEdgeContainer(Grid_edges)->draw(viewer, true);
}
QVector4D cp = cgal_plane_to_vector4d(this->plane());
QOpenGLShaderProgram* program = viewer->getShaderProgram(getEdgeContainer(T3_edges)->getProgram());
program->bind();
if(d->is_filterable)
{
QVector4D visible_bitset(d->bs[0].to_ulong(),d->bs[1].to_ulong(),d->bs[2].to_ulong(),d->bs[3].to_ulong());
program->setUniformValue("is_visible_bitset", visible_bitset);
}
program->setUniformValue("is_filterable", d->is_filterable);
program->release();
getEdgeContainer(T3_edges)->setPlane(cp);
getEdgeContainer(T3_edges)->setIsSurface(is_surface());
getEdgeContainer(T3_edges)->setColor(QColor(Qt::black));
getEdgeContainer(T3_edges)->draw(viewer, true);
if(d->show_tetrahedra){
if(!d->frame->isManipulated())
d->intersection->setFast(false);
else
d->intersection->setFast(true);
if(!d->frame->isManipulated() && !d->areInterBufFilled(viewer))
{
ncthis->d->computeIntersections(viewer);
d->are_intersection_buffers_filled[viewer]=true;
}
}
if(d->spheres_are_shown)
{
d->spheres->setPlane(this->plane());
}
}
}
void Scene_triangulation_3_item::drawPoints(CGAL::Three::Viewer_interface *) const
{
}
void Scene_triangulation_3_item_priv::draw_triangle(const Tr::Bare_point& pa,
const Tr::Bare_point& pb,
const Tr::Bare_point& pc) const
{
Geom_traits::Vector_3 n = cross_product(pb - pa, pc - pa);
n = n / CGAL::sqrt(n*n);
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
for (int i = 0; i<3; i++)
{
push_normal(normals, n);
}
push_point(positions_poly, pa, offset);
push_point(positions_poly, pb, offset);
push_point(positions_poly, pc, offset);
for(int i=0; i<3; ++i)
{
push_point(positions_barycenter, CGAL::centroid(pa, pb, pc), offset);
}
}
void Scene_triangulation_3_item_priv::draw_triangle_edges(const Tr::Bare_point& pa,
const Tr::Bare_point& pb,
const Tr::Bare_point& pc) const
{
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
push_edge(positions_lines, pa, pb, offset);
push_edge(positions_lines, pb, pc, offset);
push_edge(positions_lines, pc, pa, offset);
}
double Scene_triangulation_3_item_priv::complex_diag() const {
const CGAL::Three::Scene_item::Bbox& bbox = item->bbox();
const double& xdelta = bbox.xmax() - bbox.xmin();
const double& ydelta = bbox.ymax() - bbox.ymin();
const double& zdelta = bbox.zmax() - bbox.zmin();
const double diag = std::sqrt(xdelta*xdelta +
ydelta*ydelta +
zdelta*zdelta);
return diag * 0.7;
}
QMenu* Scene_triangulation_3_item::contextMenu()
{
const char* prop_name = "Menu modified by Scene_triangulation_3_item.";
QMenu* menu = Scene_item::contextMenu();
// Use dynamic properties:
// https://doc.qt.io/qt-5/qobject.html#property
bool menuChanged = menu->property(prop_name).toBool();
if (!menuChanged) {
QMenu *container = new QMenu(tr("Alpha value"));
container->menuAction()->setProperty("is_groupable", true);
QWidgetAction *sliderAction = new QWidgetAction(0);
sliderAction->setDefaultWidget(alphaSlider());
connect(d->alphaSlider, &QSlider::valueChanged,
[this]()
{
if(d->intersection)
d->intersection->setAlpha(d->alphaSlider->value());
redraw();
}
);
container->addAction(sliderAction);
menu->addMenu(container);
container = new QMenu(tr("Tetrahedra's Shrink Factor"));
sliderAction = new QWidgetAction(0);
connect(d->tet_Slider, &QSlider::valueChanged, this, &Scene_triangulation_3_item::itemChanged);
sliderAction->setDefaultWidget(d->tet_Slider);
container->addAction(sliderAction);
menu->addMenu(container);
QAction* actionShowTets =
menu->addAction(tr("Show &tetrahedra"));
actionShowTets->setCheckable(true);
actionShowTets->setObjectName("actionShowTets");
connect(actionShowTets, &QAction::toggled, Set_show_tetrahedra(this->d));
QAction* actionShowGrid=
menu->addAction(tr("Show &grid"));
actionShowGrid->setCheckable(true);
actionShowGrid->setChecked(true);
actionShowGrid->setObjectName("actionShowGrid");
connect(actionShowGrid, SIGNAL(toggled(bool)),
this, SLOT(show_grid(bool)));
bool should_show_spheres = false;
for(Tr::Finite_vertices_iterator
vit = triangulation().finite_vertices_begin(),
end = triangulation().finite_vertices_end();
vit != end; ++vit)
{
if(vit->point().weight()!=0)
{
should_show_spheres = true;
break;
}
}
if(should_show_spheres)
{
QAction* actionShowSpheres =
menu->addAction(tr("Show protecting &spheres"));
actionShowSpheres->setCheckable(true);
actionShowSpheres->setObjectName("actionShowSpheres");
connect(actionShowSpheres, SIGNAL(toggled(bool)),
this, SLOT(show_spheres(bool)));
}
menu->setProperty(prop_name, true);
}
return menu;
}
void Scene_triangulation_3_item_priv::initializeBuffers(CGAL::Three::Viewer_interface *viewer)
{
//vao containing the data for the facets
{
item->getTriangleContainer(Scene_triangulation_3_item::T3_faces)->initializeBuffers(viewer);
item->getTriangleContainer(Scene_triangulation_3_item::T3_faces)->setFlatDataSize(
positions_poly_size);
positions_poly.clear();
positions_poly.shrink_to_fit();
normals.clear();
normals.shrink_to_fit();
f_colors.clear();
f_colors.shrink_to_fit();
positions_barycenter.clear();
positions_barycenter.shrink_to_fit();
}
//vao containing the data for the lines
{
item->getEdgeContainer(Scene_triangulation_3_item::T3_edges)->initializeBuffers(viewer);
item->getEdgeContainer(Scene_triangulation_3_item::T3_edges)->setFlatDataSize(
positions_lines_size);
positions_lines.clear();
positions_lines.shrink_to_fit();
}
//vao containing the data for the grid
{
item->getEdgeContainer(Scene_triangulation_3_item::Grid_edges)->initializeBuffers(viewer);
item->getEdgeContainer(Scene_triangulation_3_item::Grid_edges)->setFlatDataSize(
positions_grid.size());
}
}
void Scene_triangulation_3_item_priv::computeIntersection(const Primitive& cell)
{
Geom_traits::Construct_point_3 wp2p
= item->triangulation().geom_traits().construct_point_3_object();
typedef unsigned char UC;
Tr::Cell_handle ch = cell.id();
if(!visible_subdomain[ch->subdomain_index()])
{
return;
}
QColor c = this->colors_subdomains[ch->subdomain_index()].lighter(50);
const Tr::Bare_point& pa = wp2p(ch->vertex(0)->point());
const Tr::Bare_point& pb = wp2p(ch->vertex(1)->point());
const Tr::Bare_point& pc = wp2p(ch->vertex(2)->point());
const Tr::Bare_point& pd = wp2p(ch->vertex(3)->point());
CGAL::Color color(UC(c.red()), UC(c.green()), UC(c.blue()));
if(is_filterable)
{
float id = static_cast<float>(id_to_compact[ch->subdomain_index()]);
for(int i=0; i< 48; ++i)
{
inter_subdomain_ids.push_back(id);
}
}
intersection->addTriangle(pb, pa, pc, color);
intersection->addTriangle(pa, pb, pd, color);
intersection->addTriangle(pa, pd, pc, color);
intersection->addTriangle(pb, pc, pd, color);
}
struct ComputeIntersection {
Scene_triangulation_3_item_priv& item_priv;
ComputeIntersection(Scene_triangulation_3_item_priv& item_priv)
: item_priv(item_priv)
{}
void operator()(const Primitive& facet) const
{
item_priv.computeIntersection(facet);
}
};
void Scene_triangulation_3_item_priv::computeIntersections(CGAL::Three::Viewer_interface* viewer)
{
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
if(!is_aabb_tree_built) fill_aabb_tree();
positions_poly.clear();
normals.clear();
f_colors.clear();
positions_lines.clear();
positions_barycenter.clear();
inter_subdomain_ids.clear();
const Geom_traits::Plane_3& plane = item->plane(offset);
tree.all_intersected_primitives(plane,
boost::make_function_output_iterator(ComputeIntersection(*this)));
intersection->gl_initialization(viewer);
}
void Scene_triangulation_3_item_priv::computeSpheres()
{
Geom_traits::Construct_point_3 wp2p
= item->triangulation().geom_traits().construct_point_3_object();
if(!spheres)
return;
int s_id = 0;
for(Tr::Finite_vertices_iterator
vit = item->triangulation().finite_vertices_begin(),
end = item->triangulation().finite_vertices_end();
vit != end; ++vit)
{
if(vit->point().weight()==0) continue;
typedef Tr::Vertex_handle Vertex_handle;
std::vector<Vertex_handle> incident_vertices;
item->triangulation().incident_vertices(vit, std::back_inserter(incident_vertices));
bool red = vit->is_special();
for(std::vector<Vertex_handle>::const_iterator
vvit = incident_vertices.begin(), end = incident_vertices.end();
vvit != end; ++vvit)
{
if(item->triangulation().is_infinite(*vvit)) continue;
if(Geom_traits::Sphere_3(wp2p(vit->point()),
vit->point().weight()).bounded_side(wp2p((*vvit)->point()))
== CGAL::ON_BOUNDED_SIDE)
red = true;
}
QColor c;
if(red)
c = QColor(Qt::red);
else
c = spheres->color();
switch(vit->in_dimension())
{
case 0:
c = QColor::fromHsv((c.hue()+120)%360, c.saturation(),c.lightness(), c.alpha());
break;
case 1:
break;
default:
c.setRgb(50,50,50,255);
}
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
Tr::Bare_point center(wp2p(vit->point()).x() + offset.x,
wp2p(vit->point()).y() + offset.y,
wp2p(vit->point()).z() + offset.z);
double radius = vit->point().weight() ;
typedef unsigned char UC;
tr_vertices.push_back(*vit);
spheres->add_sphere(Geom_traits::Sphere_3(center, radius),s_id++,
CGAL::Color(UC(c.red()), UC(c.green()), UC(c.blue())));
}
spheres->invalidateOpenGLBuffers();
}
void Scene_triangulation_3_item_priv::computeElements()
{
if(!alphaSlider)
{
alphaSlider = new QSlider(::Qt::Horizontal);
alphaSlider->setMinimum(0);
alphaSlider->setMaximum(255);
alphaSlider->setValue(255);
}
positions_poly.clear();
positions_grid.clear();
normals.clear();
f_colors.clear();
positions_lines.clear();
s_colors.resize(0);
s_center.resize(0);
s_radius.resize(0);
subdomain_ids.resize(0);
//The grid
{
positions_grid.resize(0);
float x = (2 * (float)complex_diag()) / 10.0f;
float y = (2 * (float)complex_diag()) / 10.0f;
for (float u = 0; u < 11; u += 1.f)
{
positions_grid.push_back(-(float)complex_diag() + x* u);
positions_grid.push_back(-(float)complex_diag());
positions_grid.push_back(0.0f);
positions_grid.push_back(-(float)complex_diag() + x* u);
positions_grid.push_back((float)complex_diag());
positions_grid.push_back(0.0f);
}
for (float v = 0; v<11; v += 1.f)
{
positions_grid.push_back(-(float)complex_diag());
positions_grid.push_back(-(float)complex_diag() + v * y);
positions_grid.push_back(0.0f);
positions_grid.push_back((float)complex_diag());
positions_grid.push_back(-(float)complex_diag() + v * y);
positions_grid.push_back(0.0f);
}
}
//the facets
{
Geom_traits::Construct_point_3 wp2p
= item->triangulation().geom_traits().construct_point_3_object();
for (Tr::Finite_facets_iterator
fit = item->triangulation().finite_facets_begin(),
end = item->triangulation().finite_facets_end();
fit != end; ++fit)
{
if(!item->do_take_facet(*fit)) continue;
const Tr::Cell_handle& cell = fit->first;
const Tr::Cell_handle& cell2 = cell->neighbor(fit->second);
const int& index = fit->second;
const Tr::Bare_point& pa = wp2p(cell->vertex((index + 1) & 3)->point());
const Tr::Bare_point& pb = wp2p(cell->vertex((index + 2) & 3)->point());
const Tr::Bare_point& pc = wp2p(cell->vertex((index + 3) & 3)->point());
QColor color = colors[cell->surface_patch_index(index)];
f_colors.push_back((float)color.redF());f_colors.push_back((float)color.greenF());f_colors.push_back((float)color.blueF());
f_colors.push_back((float)color.redF());f_colors.push_back((float)color.greenF());f_colors.push_back((float)color.blueF());
f_colors.push_back((float)color.redF());f_colors.push_back((float)color.greenF());f_colors.push_back((float)color.blueF());
//As a facet belongs to 2 cells, we need both to decide if it should be hidden or not.
//Also 0 is a forbidden value, that is reserved for the "outside of the domain", so it won't be in the bs table.
if(is_filterable)
{
float dom1 = (cell->subdomain_index() != 0) ? static_cast<float>(id_to_compact[cell->subdomain_index()])
: static_cast<float>(id_to_compact[cell2->subdomain_index()]);
float dom2 = (cell2->subdomain_index() != 0) ? static_cast<float>(id_to_compact[cell2->subdomain_index()])
: static_cast<float>(id_to_compact[cell->subdomain_index()]);
for(int i=0; i<6; ++i)
{
subdomain_ids.push_back(dom1);
subdomain_ids.push_back(dom2);
}
}
if(item->is_facet_oriented(*fit))
draw_triangle(pb, pa, pc);
else
draw_triangle(pa, pb, pc);
draw_triangle_edges(pa, pb, pc);
}
}
}
bool Scene_triangulation_3_item::load_binary(std::istream& is)
{
is >> triangulation();
if(!is)
return false;
d->reset_cut_plane();
if(is.good()) {
triangulation_changed();
changed();
return true;
}
else
return false;
}
void
Scene_triangulation_3_item_priv::reset_cut_plane()
{
if(frame == 0)
frame = new CGAL::qglviewer::ManipulatedFrame();
const CGAL::Three::Scene_item::Bbox& bbox = item->bbox();
const float xcenter = static_cast<float>((bbox.xmax()+bbox.xmin())/2.);
const float ycenter = static_cast<float>((bbox.ymax()+bbox.ymin())/2.);
const float zcenter = static_cast<float>((bbox.zmax()+bbox.zmin())/2.);
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
CGAL::qglviewer::Vec center(xcenter+offset.x, ycenter+offset.y, zcenter+offset.z);
frame->setPosition(center);
}
void
Scene_triangulation_3_item::setColor(QColor c)
{
color_ = c;
d->compute_color_map(c);
invalidateOpenGLBuffers();
d->invalidate_stats();
for(auto v : CGAL::QGLViewer::QGLViewerPool())
{
CGAL::Three::Viewer_interface* viewer = static_cast<CGAL::Three::Viewer_interface*>(v);
d->are_intersection_buffers_filled[viewer] = false;
}
}
void Scene_triangulation_3_item::show_grid(bool b)
{
d->is_grid_shown = b;
contextMenu()->findChild<QAction*>("actionShowGrid")->setChecked(b);
itemChanged();
}
void Scene_triangulation_3_item::show_intersection(bool b)
{
contextMenu()->findChild<QAction*>("actionShowTets")->setChecked(b);
if(b && !d->intersection)
{
d->intersection = new Scene_intersection_item(this);
d->intersection->init_vectors(&d->positions_poly,
&d->normals,
&d->positions_lines,
&d->f_colors,
&d->positions_barycenter,
&d->inter_subdomain_ids);
d->intersection->setName("Intersection tetrahedra");
d->intersection->setRenderingMode(renderingMode());
connect(d->intersection, SIGNAL(destroyed()), this, SLOT(reset_intersection_item()));
for(auto v : CGAL::QGLViewer::QGLViewerPool())
{
CGAL::Three::Viewer_interface* viewer = static_cast<CGAL::Three::Viewer_interface*>(v);
d->are_intersection_buffers_filled[viewer] = false;
if(!d->areInterBufFilled(viewer))
{
//initGL
Scene_triangulation_3_item* ncthis = const_cast<Scene_triangulation_3_item*>(this);
ncthis->d->computeIntersections(viewer);
d->are_intersection_buffers_filled[viewer] = true;
}
}
scene->addItem(d->intersection);
scene->changeGroup(d->intersection, this);
lockChild(d->intersection);
}
else if (!b && d->intersection!=NULL)
{
unlockChild(d->intersection);
scene->erase(scene->item_id(d->intersection));
}
if(d->last_intersection != b)
{
d->last_intersection = b;
Q_EMIT redraw();
}
}
void Scene_triangulation_3_item::reset_intersection_item()
{
d->intersection = NULL;
}
void Scene_triangulation_3_item::reset_spheres()
{
d->spheres = NULL;
}
CGAL::Three::Scene_item::ManipulatedFrame* Scene_triangulation_3_item::manipulatedFrame() {
if(d)
return d->frame;
else
return NULL;
}
void Scene_triangulation_3_item::setPosition(float x, float y, float z) {
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
d->frame->setPosition(x+offset.x, y+offset.y, z+offset.z);
}
bool Scene_triangulation_3_item::has_spheres()const {
return d->spheres_are_shown;
}
bool Scene_triangulation_3_item::has_grid()const { return d->is_grid_shown;}
bool Scene_triangulation_3_item::has_tets()const { return d->intersection; }
void Scene_triangulation_3_item::setNormal(float x, float y, float z) {
d->frame->setOrientation(x, y, z, 0.f);
}
void Scene_triangulation_3_item::copyProperties(Scene_item *item)
{
Scene_triangulation_3_item* t3_item = qobject_cast<Scene_triangulation_3_item*>(item);
if(!t3_item)
return;
const CGAL::qglviewer::Vec offset = Three::mainViewer()->offset();
d->frame->setPositionAndOrientation(t3_item->manipulatedFrame()->position() - offset,
t3_item->manipulatedFrame()->orientation());
show_intersection(t3_item->has_tets());
show_spheres(t3_item->has_spheres());
show_grid(t3_item->has_grid());
int value = t3_item->alphaSlider()->value();
alphaSlider()->setValue(value);
}
float Scene_triangulation_3_item::getShrinkFactor() const
{
return float(d->tet_Slider->value())/100.0f;
}
bool Scene_triangulation_3_item::eventFilter(QObject *, QEvent *event)
{
if(event->type() == QEvent::MouseButtonRelease)
{
redraw();
}
return false;
}
bool Scene_triangulation_3_item::keyPressEvent(QKeyEvent *event)
{
if(event->key() == Qt::Key_Plus)
{
d->tet_Slider->setValue(d->tet_Slider->value() + 5);
itemChanged();
}
else if(event->key() == Qt::Key_Minus)
{
d->tet_Slider->setValue(d->tet_Slider->value() -5);
itemChanged();
}
return false;
}
QString Scene_triangulation_3_item::computeStats(int type)
{
Geom_traits::Construct_point_3 wp2p
= triangulation().geom_traits().construct_point_3_object();
if(!d->computed_stats)
{
d->nb_tets = 0;
double nb_edges = 0;
double total_edges = 0;
double nb_angle = 0;
double total_angle = 0;
for (T3::Finite_facets_iterator
fit = triangulation().finite_facets_begin(),
end = triangulation().finite_facets_end();
fit != end; ++fit)
{
if(!do_take_facet(*fit)) continue;
const Tr::Cell_handle& cell = fit->first;
const int& index = fit->second;
const Tr::Bare_point& pa = wp2p(cell->vertex((index + 1) & 3)->point());
const Tr::Bare_point& pb = wp2p(cell->vertex((index + 2) & 3)->point());
const Tr::Bare_point& pc = wp2p(cell->vertex((index + 3) & 3)->point());
double edges[3];
edges[0]=(std::sqrt(CGAL::squared_distance(pa, pb)));
edges[1]=(std::sqrt(CGAL::squared_distance(pa, pc)));
edges[2]=(std::sqrt(CGAL::squared_distance(pb, pc)));
for(int i=0; i<3; ++i)
{
if(edges[i] < d->min_edges_length){ d->min_edges_length = static_cast<float>(edges[i]); }
if(edges[i] > d->max_edges_length){ d->max_edges_length = static_cast<float>(edges[i]); }
total_edges+=edges[i];
++nb_edges;
}
}
d->mean_edges_length = static_cast<float>(total_edges/nb_edges);
for(Tr::Finite_vertices_iterator
vit = triangulation().finite_vertices_begin(),
end = triangulation().finite_vertices_end();
vit != end; ++vit)
{
if(vit->point().weight()==0) continue;
++d->nb_spheres;
}
Geom_traits::Compute_approximate_dihedral_angle_3 approx_dihedral_angle
= triangulation().geom_traits().compute_approximate_dihedral_angle_3_object();
QVector<int> sub_ids;
for (T3::Finite_cells_iterator cit = triangulation().finite_cells_begin();
cit != triangulation().finite_cells_end();
++cit)
{
if(!do_take_cell(cit))
continue;
if(!sub_ids.contains(cit->subdomain_index()))
{
sub_ids.push_back(cit->subdomain_index());
}
const Tr::Bare_point& p0 = wp2p(cit->vertex(0)->point());
const Tr::Bare_point& p1 = wp2p(cit->vertex(1)->point());
const Tr::Bare_point& p2 = wp2p(cit->vertex(2)->point());
const Tr::Bare_point& p3 = wp2p(cit->vertex(3)->point());
double v = std::abs(CGAL::volume(p0, p1, p2, p3));
double circumradius = std::sqrt(CGAL::squared_radius(p0, p1, p2, p3));
//find smallest edge
double edges[6];
edges[0] = std::sqrt(CGAL::squared_distance(p0, p1));
edges[1] = std::sqrt(CGAL::squared_distance(p0, p2));
edges[2] = std::sqrt(CGAL::squared_distance(p0, p3));
edges[3] = std::sqrt(CGAL::squared_distance(p2, p1));
edges[4] = std::sqrt(CGAL::squared_distance(p2, p3));
edges[5] = std::sqrt(CGAL::squared_distance(p1, p3));
double min_edge = edges[0];
for(int i=1; i<6; ++i)
{
if(edges[i]<min_edge)
min_edge=edges[i];
}
double sumar = std::sqrt(CGAL::squared_area(p0,p1,p2))+std::sqrt(CGAL::squared_area(p1,p2,p3))+
std::sqrt(CGAL::squared_area(p2,p3,p0)) + std::sqrt(CGAL::squared_area(p3,p1,p0));
double inradius = 3*v/sumar;
double smallest_edge_radius = min_edge/circumradius*std::sqrt(6)/4.0;//*sqrt(6)/4 so that the perfect tet ratio is 1
double smallest_radius_radius = inradius/circumradius*3; //*3 so that the perfect tet ratio is 1 instead of 1/3
double biggest_v_sma_cube = v/std::pow(min_edge,3)*6*std::sqrt(2);//*6*sqrt(2) so that the perfect tet ratio is 1 instead
if(smallest_edge_radius < d->smallest_edge_radius)
d->smallest_edge_radius = static_cast<float>(smallest_edge_radius);
if(smallest_radius_radius < d->smallest_radius_radius)
d->smallest_radius_radius = static_cast<float>(smallest_radius_radius);
if(biggest_v_sma_cube > d->biggest_v_sma_cube)
d->biggest_v_sma_cube = static_cast<float>(biggest_v_sma_cube);
auto update_min_max_dihedral_angle = [this](double a) {
if(a < this->d->min_dihedral_angle) { this->d->min_dihedral_angle = static_cast<float>(a); }
if(a > this->d->max_dihedral_angle) { this->d->max_dihedral_angle = static_cast<float>(a); }
};
double a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p1, p2, p3)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p2, p1, p3)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p0, p3, p1, p2)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p1, p2, p0, p3)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p1, p3, p0, p2)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
a = CGAL::to_double(CGAL::abs(approx_dihedral_angle(p2, p3, p0, p1)));
update_min_max_dihedral_angle(a);
total_angle+=a;
++nb_angle;
++d->nb_tets;
}
d->nb_vertices = 0;
for(T3::Finite_vertices_iterator vit = triangulation().finite_vertices_begin();
vit != triangulation().finite_vertices_end();
++vit)
{
if(!do_take_vertex(vit))
continue;
++d->nb_vertices;
}
d->mean_dihedral_angle = static_cast<float>(total_angle/nb_angle);
d->nb_subdomains = sub_ids.size();
d->computed_stats = true;
}
switch (type)
{
case Scene_triangulation_3_item_priv::MIN_EDGES_LENGTH:
return QString::number(d->min_edges_length);
case Scene_triangulation_3_item_priv::MAX_EDGES_LENGTH:
return QString::number(d->max_edges_length);
case Scene_triangulation_3_item_priv::MEAN_EDGES_LENGTH:
return QString::number(d->mean_edges_length);
case Scene_triangulation_3_item_priv::MIN_DIHEDRAL_ANGLE:
return QString::number(d->min_dihedral_angle);
case Scene_triangulation_3_item_priv::MAX_DIHEDRAL_ANGLE:
return QString::number(d->max_dihedral_angle);
case Scene_triangulation_3_item_priv::MEAN_DIHEDRAL_ANGLE:
return QString::number(d->mean_dihedral_angle);
case Scene_triangulation_3_item_priv::NB_SPHERES:
return QString::number(d->nb_spheres);
case Scene_triangulation_3_item_priv::NB_VERTICES:
return QString::number(d->nb_vertices);
case Scene_triangulation_3_item_priv::NB_TETS:
return QString::number(d->nb_tets);
case Scene_triangulation_3_item_priv::SMALLEST_RAD_RAD:
return QString::number(d->smallest_radius_radius);
case Scene_triangulation_3_item_priv::SMALLEST_EDGE_RAD:
return QString::number(d->smallest_edge_radius);
case Scene_triangulation_3_item_priv::BIGGEST_VL3_CUBE:
return QString::number(d->biggest_v_sma_cube);
case Scene_triangulation_3_item_priv::NB_SUBDOMAINS:
return QString::number(d->nb_subdomains);
default:
return QString();
}
}
CGAL::Three::Scene_item::Header_data Scene_triangulation_3_item::header() const
{
CGAL::Three::Scene_item::Header_data data;
//categories
data.categories.append(std::pair<QString,int>(QString("Properties"),13));
//titles
data.titles.append(QString("Min Edges Length"));
data.titles.append(QString("Max Edges Length"));
data.titles.append(QString("Mean Edges Length"));
data.titles.append(QString("Min Dihedral Angle"));
data.titles.append(QString("Max Dihedral Angle"));
data.titles.append(QString("Mean Dihedral Angle"));
data.titles.append(QString("#Protecting Spheres"));
data.titles.append(QString("#Vertices in Complex"));
data.titles.append(QString("#Cells"));
data.titles.append(QString("Smallest Radius-Radius Ratio"));
data.titles.append(QString("Smallest Edge-Radius Ratio"));
data.titles.append(QString("Biggest Vl^3"));
data.titles.append(QString("#Subdomains"));
return data;
}
void Scene_triangulation_3_item::invalidateOpenGLBuffers()
{
setBuffersFilled(false);
getTriangleContainer(T3_faces)->reset_vbos(ALL);
getEdgeContainer(T3_edges)->reset_vbos(ALL);
getEdgeContainer(Grid_edges)->reset_vbos(ALL);
Q_FOREACH(CGAL::QGLViewer* v, CGAL::QGLViewer::QGLViewerPool())
{
CGAL::Three::Viewer_interface* viewer = static_cast<CGAL::Three::Viewer_interface*>(v);
if(viewer == NULL)
continue;
setBuffersInit(viewer, false);
}
d->invalidate_stats();
}
void Scene_triangulation_3_item::resetCutPlane()
{
if(!d)
return;
d->reset_cut_plane();
}
void Scene_triangulation_3_item::itemAboutToBeDestroyed(Scene_item *item)
{
Scene_item::itemAboutToBeDestroyed(item);
if(d && item == this)
{
triangulation().clear();
d->tree.clear();
if(d->frame)
{
Three::mainViewer()->setManipulatedFrame(0);
delete d->frame;
d->frame = NULL;
delete d->tet_Slider;
}
delete d;
d=0;
}
}
void Scene_triangulation_3_item::on_spheres_color_changed()
{
if(!d->spheres)
return;
d->spheres->clear_spheres();
d->computeSpheres();
}
float Scene_triangulation_3_item::alpha() const
{
if(!d->alphaSlider)
return 1.0f;
return (float)d->alphaSlider->value() / 255.0f;
}
void Scene_triangulation_3_item::setAlpha(int alpha)
{
if(!d->alphaSlider)
d->computeElements();
d->alphaSlider->setValue(alpha);
if(d->intersection)
d->intersection->setAlpha(alpha);
redraw();
}
QSlider* Scene_triangulation_3_item::alphaSlider() {
if(!d->alphaSlider)
d->computeElements();
return d->alphaSlider;
}
void Scene_triangulation_3_item::initializeBuffers(Viewer_interface *v) const
{
const_cast<Scene_triangulation_3_item*>(this)->d->initializeBuffers(v);
}
void Scene_triangulation_3_item::computeElements()const
{
QApplication::setOverrideCursor(Qt::WaitCursor);
compute_bbox();
const_cast<Scene_triangulation_3_item*>(this)->d->computeElements();
getTriangleContainer(T3_faces)->allocate(
Tc::Flat_vertices, d->positions_poly.data(),
static_cast<int>(d->positions_poly.size()*sizeof(float)));
getTriangleContainer(T3_faces)->allocate(
Tc::Flat_normals,
d->normals.data(),
static_cast<int>(d->normals.size()*sizeof(float)));
getTriangleContainer(T3_faces)->allocate(
Tc::FColors,
d->f_colors.data(),
static_cast<int>(d->f_colors.size()*sizeof(float)));
getTriangleContainer(T3_faces)->allocate(
Tc::Facet_centers,
d->positions_barycenter.data(),
static_cast<int>(d->positions_barycenter.size()*sizeof(float)));
getTriangleContainer(T3_faces)->allocate(
Tc::Subdomain_indices, d->subdomain_ids.data(),
static_cast<int>(d->subdomain_ids.size()*sizeof(float)));
d->positions_poly_size = d->positions_poly.size();
getEdgeContainer(T3_edges)->allocate(
Ec::Vertices,
d->positions_lines.data(),
static_cast<int>(d->positions_lines.size()*sizeof(float)));
getEdgeContainer(T3_edges)->allocate(
Ec::Subdomain_indices, d->subdomain_ids.data(),
static_cast<int>(d->subdomain_ids.size()*sizeof(float)));
d->positions_lines_size = d->positions_lines.size();
getEdgeContainer(Grid_edges)->allocate(
Ec::Vertices,
d->positions_grid.data(),
static_cast<int>(d->positions_grid.size()*sizeof(float)));
setBuffersFilled(true);
d->reset_cut_plane();
QApplication::restoreOverrideCursor();
}
void Scene_triangulation_3_item::newViewer(Viewer_interface *viewer)
{
viewer->installEventFilter(this);
Scene_item_rendering_helper::newViewer(viewer);
if(d->intersection)
{
d->intersection->newViewer(viewer);
d->computeIntersections(viewer);
}
}
Scene_triangulation_3_item* Scene_triangulation_3_item::clone() const
{
return new Scene_triangulation_3_item(d->triangulation);
}
void Scene_triangulation_3_item::show_spheres(bool b)
{
d->spheres_are_shown = b;
QAction* action_show_spheres = contextMenu()->findChild<QAction*>("actionShowSpheres");
if(action_show_spheres)
{
action_show_spheres->setChecked(b);
if(b && !d->spheres)
{
d->spheres = new Scene_spheres_item(this, triangulation().number_of_vertices(), true);
connect(d->spheres, &Scene_spheres_item::picked,
this, [this](std::size_t id)
{
if(id == (std::size_t)(-1))
return;
QString msg = QString("Vertex's index : %1; Vertex's in dimension: %2.").arg(d->tr_vertices[id].index()).arg(d->tr_vertices[id].in_dimension());
CGAL::Three::Three::information(msg);
CGAL::Three::Three::mainViewer()->displayMessage(msg, 5000);
});
d->spheres->setName("Protecting spheres");
d->spheres->setRenderingMode(Gouraud);
connect(d->spheres, SIGNAL(destroyed()), this, SLOT(reset_spheres()));
connect(d->spheres, SIGNAL(on_color_changed()), this, SLOT(on_spheres_color_changed()));
d->computeSpheres();
lockChild(d->spheres);
scene->addItem(d->spheres);
scene->changeGroup(d->spheres, this);
}
else if (!b && d->spheres!=NULL)
{
unlockChild(d->spheres);
scene->erase(scene->item_id(d->spheres));
}
}
Q_EMIT redraw();
}
Scene_item::Bbox Scene_triangulation_3_item::bbox() const
{
if(!is_bbox_computed)
compute_bbox();
is_bbox_computed = true;
return _bbox;
}
const std::set<int>& Scene_triangulation_3_item::subdomain_indices() const
{
return d->subdomain_indices_;
}
QColor Scene_triangulation_3_item::getSubdomainIndexColor(int i) const
{
return d->colors_subdomains[i];
}
void Scene_triangulation_3_item::switchVisibleSubdomain(int id)
{
d->visible_subdomain[id] = !d->visible_subdomain[id];
int compact_id = d->id_to_compact[id];
int i = compact_id/32;
int j = compact_id%32;
d->bs[i][j] = d->visible_subdomain[id];
}
void Scene_triangulation_3_item::computeIntersection()
{
for(auto v : CGAL::QGLViewer::QGLViewerPool())
{
d->computeIntersections(static_cast<CGAL::Three::Viewer_interface*>(v));
}
}
#include "Scene_triangulation_3_item.moc"
| 66,373 | 25,048 |
#include "linux_parser.h"
#include "procstat.h"
#include <dirent.h>
#include <unistd.h>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
#include <iostream>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include <filesystem>
using std::stof;
using std::stol;
using std::string;
using std::to_string;
using std::vector;
using std::getline;
using std::istringstream;
using std::ifstream;
using std::cout;
using std::endl;
using std::invalid_argument;
using std::unordered_map;
namespace fs = std::filesystem;
// REDONE: An example of how to read data from the filesystem
string LinuxParser::OperatingSystem(const string& path) {
string line;
string key;
string value;
ifstream filestream(path);
if (filestream.is_open()) {
while (getline(filestream, line)) {
vector<string> tokens;
istringstream linestream(line);
string token;
while (getline(linestream, token, kOperatingSystemDelimiter)) {
tokens.push_back(token);
}
// Ignore if not a key-value pair
if (tokens.size() != 2) {
continue;
}
key = tokens[0];
value = tokens[1];
if (key == kOperatingSystemPrettyName) {
// Remove double quotes
value.pop_back();
value.erase(0,1);
return value;
}
}
}
return value;
}
// DONE: An example of how to read data from the filesystem
string LinuxParser::Kernel() {
string os, kernel, version;
string line;
ifstream stream(kProcDirectory + kVersionFilename);
if (stream.is_open()) {
getline(stream, line);
istringstream linestream(line);
linestream >> os >> version >> kernel;
}
return kernel;
}
// BONUS COMPLETE: Updated this to use std::filesystem
vector<int> LinuxParser::Pids(const string& path) {
vector<int> pids;
auto directory = fs::path(path);
for (auto const& dir_entry: fs::directory_iterator{directory}) {
if (!fs::is_directory(dir_entry)) {
continue;
}
string filename = dir_entry.path().filename();
if (std::all_of(filename.begin(), filename.end(), isdigit)) {
int pid = stoi(filename);
pids.push_back(pid);
}
}
return pids;
}
// DONE: Read and return the system memory utilization
/* From https://stackoverflow.com/questions/41224738/how-to-calculate-system-memory-usage-from-proc-meminfo-like-htop/41251290#41251290
Total used memory = MemTotal - MemFree
*/
float LinuxParser::MemoryUtilization() {
string line;
string key;
string value;
ifstream filestream(kProcDirectory + kMeminfoFilename);
unordered_map<string, long> mem_map;
if (filestream.is_open()) {
while (getline(filestream, line)) {
vector<string> tokens;
istringstream linestream(line);
string token;
while (getline(linestream, token, kMeminfoDelimiter)) {
tokens.push_back(token);
}
// Ignore if not a key-value pair
if (tokens.size() != 2) {
continue;
}
key = tokens[0];
value = tokens[1];
long trimmed_value;
istringstream value_stream(value);
value_stream >> trimmed_value;
mem_map[key] = trimmed_value;
}
}
long mem_total = mem_map[kMeminfoMemTotal];
long mem_free = mem_map[kMeminfoMemFree];
long used_memory = mem_total - mem_free;
return double(used_memory) / mem_total;
}
// DONE: Read and return the system uptime
long LinuxParser::UpTime() {
string line;
double uptime, idle;
const string filename = kProcDirectory + kUptimeFilename;
ifstream uptime_file{filename};
if (uptime_file.is_open()) {
getline(uptime_file, line);
istringstream linestream{line};
linestream >> uptime >> idle;
}
const long uptime_long = lround(uptime);
return uptime_long;
}
ProcStat LinuxParser::StatsInfo() {
string line;
struct ProcStat proc_stat;
const string filename = kProcDirectory + kStatFilename;
ifstream stat_file{filename};
if (stat_file.is_open()) {
getline(stat_file, line);
istringstream linestream{line};
string discard_cpu; // discard the string "cpu"
linestream >>
discard_cpu >>
proc_stat.user >>
proc_stat.nice >>
proc_stat.system >>
proc_stat.idle >>
proc_stat.iowait >>
proc_stat.irq >>
proc_stat.softirq >>
proc_stat.steal >>
proc_stat.guest >>
proc_stat.guest_nice;
}
return proc_stat;
}
// DONE: Read and return the number of jiffies for the system
long LinuxParser::Jiffies() {
// Total = Idle + NonIdle
return LinuxParser::IdleJiffies() + LinuxParser::ActiveJiffies();
}
// DONE: Read and return the number of active jiffies for the system
long LinuxParser::ActiveJiffies() {
// NonIdle = user + nice + system + irq + softirq + steal
struct ProcStat stats_info = LinuxParser::StatsInfo();
return stats_info.user + stats_info.nice + stats_info.system + stats_info.irq +
stats_info.softirq + stats_info.steal;
}
// DONE: Read and return the number of idle jiffies for the system
long LinuxParser::IdleJiffies() {
// Idle = idle + iowait
struct ProcStat stats_info = LinuxParser::StatsInfo();
return stats_info.idle + stats_info.iowait;
}
// DONE: Read and return CPU utilization
float LinuxParser::CpuUtilization() {
// CPU_Percentage = (totald - idled)/totald
float totald = LinuxParser::Jiffies();
return (totald - LinuxParser::IdleJiffies()) / totald;
}
// DONE: Read and return the total number of processes
int LinuxParser::TotalProcesses() { return LinuxParser::Pids().size(); }
// DONE: Read and return the number of running processes
int LinuxParser::RunningProcesses() {
string line;
const string filename = kProcDirectory + kStatFilename;
ifstream stat_file{filename};
if (stat_file.is_open()) {
while (getline(stat_file, line)) {
getline(stat_file, line);
istringstream linestream{line};
string line_label;
linestream >> line_label;
if (line_label == kProcsRunning) {
int procs_running;
linestream >> procs_running;
return procs_running;
}
}
}
throw std::runtime_error(
"Couldn't parse " + filename + " to determine the number of processes running.");
return 0;
}
ProcPidStat LinuxParser::ParseProcStat(const int pid) {
string line;
struct ProcPidStat proc_stat;
const string filename = kProcDirectory + "/" + to_string(pid) + kStatFilename;
ifstream stat_file{filename};
if (stat_file.is_open()) {
getline(stat_file, line);
istringstream linestream{line};
linestream >>
// (1) pid %d
proc_stat.pid >>
// (2) comm %s
proc_stat.comm >>
// (3) state %c
proc_stat.state >>
// (4) ppid %d
proc_stat.ppid >>
// (5) pgrp %d
proc_stat.pgrp >>
// (6) session %d
proc_stat.session >>
// (7) tty_nr %d
proc_stat.tty_nr >>
// (8) tpgid %d
proc_stat.tpgid >>
// (9) flags %u
proc_stat.flags >>
// (10) minflt %lu
proc_stat.minflt >>
// (11) cminflt %lu
proc_stat.cminflt >>
// (12) majflt %lu
proc_stat.majflt >>
// (13) cmajflt %lu
proc_stat.cmajflt >>
// (14) utime %lu
proc_stat.utime >>
// (15) stime %lu
proc_stat.stime >>
// (16) cutime %ld
proc_stat.cutime >>
// (17) cstime %ld
proc_stat.cstime >>
// (18) priority %ld
proc_stat.priority >>
// (19) nice %ld
proc_stat.nice >>
// (20) num_threads %ld
proc_stat.num_threads >>
// (21) itrealvalue %ld
proc_stat.itrealvalue >>
// (22) starttime %llu
proc_stat.starttime;
}
return proc_stat;
}
// DONE: Read and return the command associated with a process
// EXTRA: Used generic programming
string LinuxParser::Command(const int pid) {
string line;
string command;
const string filename = kProcDirectory + "/" + to_string(pid) + kCmdlineFilename;
return LinuxParser::ReadSingleValuedFile<string>(filename);
}
// DONE: Read and return the memory used by a process
string LinuxParser::Ram(int pid) {
string line;
string key;
string value;
const string filename = kProcDirectory + "/" + to_string(pid) + kStatusFilename;
ifstream filestream(filename);
if (filestream.is_open()) {
while (getline(filestream, line)) {
vector<string> tokens;
istringstream linestream(line);
string token;
while (getline(linestream, token, kProcessStatusDelimiter)) {
tokens.push_back(token);
}
// Ignore if not a key-value pair
if (tokens.size() != 2) {
continue;
}
key = tokens[0];
value = tokens[1];
if (key == kVmSizeKey) {
long long_value;
istringstream value_stream(value);
value_stream >> long_value;
long megabytes = lround(double(long_value) / 1024);
return to_string(megabytes);
}
}
}
// NOTE: not all processes have associated VmSize information
return value;
}
// DONE: Read and return the user ID associated with a process
string LinuxParser::Uid(const int pid, const string& proc_dir) {
string line;
string key;
string value;
const string filename = proc_dir + "/" + to_string(pid) + kStatusFilename;
ifstream filestream(filename);
if (filestream.is_open()) {
while (getline(filestream, line)) {
vector<string> tokens;
istringstream linestream(line);
string token;
while (getline(linestream, token, kStatusDelimiter)) {
tokens.push_back(token);
}
// Ignore if not a key-value pair
if (tokens.size() != 2) {
continue;
}
key = tokens[0];
value = tokens[1];
if (key == kStatusUidKey) {
istringstream value_stream{value};
string uid;
value_stream >> uid;
return uid;
}
}
}
return value;
}
// DONE: Read and return the user associated with a process
string LinuxParser::User(const int pid) {
string line;
const string goal_uid = Uid(pid);
string current_uid;
string user;
const string filename = kPasswordPath;
ifstream filestream(filename);
if (filestream.is_open()) {
while (getline(filestream, line)) {
vector<string> tokens;
istringstream linestream(line);
string token;
while (getline(linestream, token, kPasswdDelimiter)) {
tokens.push_back(token);
}
// Ignore if doesn't have enough tokens
if (tokens.size() < 3) {
continue;
}
user = tokens[0];
current_uid = tokens[2];
if (goal_uid == current_uid) {
return user;
}
}
}
return user;
}
// DONE: Read and return the uptime of a process
long LinuxParser::UpTime(int pid) {
long double starttime = LinuxParser::ParseProcStat(pid).starttime;
long double sc_clk_tck = sysconf(_SC_CLK_TCK);
double process_uptime = starttime / sc_clk_tck;
return lround(process_uptime);
}
| 10,951 | 3,688 |
/*
* cmd_option_value.cpp
*
* Created on: 2011-12-29
* Author: OWenT
*
* 应用程序命令处理
*
*/
#include "cli/cmd_option_value.h"
#include <algorithm>
namespace util {
namespace cli {
namespace detail {
static char tolower(char c) {
if (c >= 'A' && c <= 'Z') {
return c - 'A' + 'a';
}
return c;
}
}
LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const char *str_data) : data_(str_data) {}
LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const char *begin, const char *end) { data_.assign(begin, end); }
LIBATFRAME_UTILS_API cmd_option_value::cmd_option_value(const std::string& str_data) { data_ = str_data; }
LIBATFRAME_UTILS_API const std::string &cmd_option_value::to_cpp_string() const { return data_; }
LIBATFRAME_UTILS_API bool cmd_option_value::to_bool() const { return to<bool>(); }
LIBATFRAME_UTILS_API char cmd_option_value::to_char() const { return to<char>(); }
LIBATFRAME_UTILS_API short cmd_option_value::to_short() const { return to<short>(); }
LIBATFRAME_UTILS_API int cmd_option_value::to_int() const { return to<int>(); }
LIBATFRAME_UTILS_API long cmd_option_value::to_long() const { return to<long>(); }
LIBATFRAME_UTILS_API long long cmd_option_value::to_longlong() const { return to<long long>(); }
LIBATFRAME_UTILS_API double cmd_option_value::to_double() const { return to<double>(); }
LIBATFRAME_UTILS_API float cmd_option_value::to_float() const { return to<float>(); }
LIBATFRAME_UTILS_API const char *cmd_option_value::to_string() const { return data_.c_str(); }
// ============ unsigned ============
LIBATFRAME_UTILS_API unsigned char cmd_option_value::to_uchar() const { return to<unsigned char>(); }
LIBATFRAME_UTILS_API unsigned short cmd_option_value::to_ushort() const { return to<unsigned short>(); }
LIBATFRAME_UTILS_API unsigned int cmd_option_value::to_uint() const { return to<unsigned int>(); }
LIBATFRAME_UTILS_API unsigned long cmd_option_value::to_ulong() const { return to<unsigned long>(); }
LIBATFRAME_UTILS_API unsigned long long cmd_option_value::to_ulonglong() const { return to<unsigned long long>(); }
LIBATFRAME_UTILS_API int8_t cmd_option_value::to_int8() const { return static_cast<int8_t>(to_int()); }
LIBATFRAME_UTILS_API uint8_t cmd_option_value::to_uint8() const { return static_cast<uint8_t>(to_uint()); }
LIBATFRAME_UTILS_API int16_t cmd_option_value::to_int16() const { return to<int16_t>(); }
LIBATFRAME_UTILS_API uint16_t cmd_option_value::to_uint16() const { return to<uint16_t>(); }
LIBATFRAME_UTILS_API int32_t cmd_option_value::to_int32() const { return to<int32_t>(); }
LIBATFRAME_UTILS_API uint32_t cmd_option_value::to_uint32() const { return to<uint32_t>(); }
LIBATFRAME_UTILS_API int64_t cmd_option_value::to_int64() const { return to<int64_t>(); }
LIBATFRAME_UTILS_API uint64_t cmd_option_value::to_uint64() const { return to<uint64_t>(); }
LIBATFRAME_UTILS_API bool cmd_option_value::to_logic_bool() const {
std::string lowercase_content = data_;
std::transform(lowercase_content.begin(), lowercase_content.end(), lowercase_content.begin(), detail::tolower);
if (lowercase_content.empty()) {
return false;
}
if ("no" == lowercase_content || "false" == lowercase_content || "disabled" == lowercase_content ||
"disable" == lowercase_content || "0" == lowercase_content) {
return false;
}
return true;
}
LIBATFRAME_UTILS_API void cmd_option_value::split(char delim, std::vector<cmd_option_value>& out) {
size_t len = 1;
for (size_t i = 0; i < data_.size(); ++ i) {
if (delim == data_[i]) {
++ len;
}
}
out.reserve(len);
size_t begin_pos = 0;
size_t end_pos = 0;
while (end_pos != std::string::npos && begin_pos < data_.size()) {
end_pos = data_.find(delim, begin_pos);
if (end_pos == std::string::npos && begin_pos < data_.size()) {
out.push_back(cmd_option_value(&data_[begin_pos]));
begin_pos = end_pos;
} else {
out.push_back(cmd_option_value(&data_[begin_pos], &data_[end_pos]));
begin_pos = end_pos + 1;
}
}
}
}
}
| 4,843 | 1,696 |
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "sync.h"
#define LOG_TAG "WifiHAL"
#include <utils/Log.h>
#include <time.h>
#include "ifaceeventhandler.h"
/* Used to handle NL command events from driver/firmware. */
IfaceEventHandlerCommand *mwifiEventHandler = NULL;
/* Set the interface event monitor handler*/
wifi_error wifi_set_iface_event_handler(wifi_request_id id,
wifi_interface_handle iface,
wifi_event_handler eh)
{
int i, numAp, ret = 0;
interface_info *ifaceInfo = getIfaceInfo(iface);
wifi_handle wifiHandle = getWifiHandle(iface);
/* Check if a similar request to set iface event handler was made earlier.
* Right now we don't differentiate between the case where (i) the new
* Request Id is different from the current one vs (ii) both new and
* Request Ids are the same.
*/
if (mwifiEventHandler)
{
if (id == mwifiEventHandler->get_request_id()) {
ALOGE("%s: Iface Event Handler Set for request Id %d is still"
"running. Exit", __func__, id);
return WIFI_ERROR_TOO_MANY_REQUESTS;
} else {
ALOGE("%s: Iface Event Handler Set for a different Request "
"Id:%d is requested. Not supported. Exit", __func__, id);
return WIFI_ERROR_NOT_SUPPORTED;
}
}
mwifiEventHandler = new IfaceEventHandlerCommand(
wifiHandle,
id,
NL80211_CMD_REG_CHANGE);
if (mwifiEventHandler == NULL) {
ALOGE("%s: Error mwifiEventHandler NULL", __func__);
return WIFI_ERROR_UNKNOWN;
}
mwifiEventHandler->setCallbackHandler(eh);
cleanup:
return (wifi_error)ret;
}
/* Reset monitoring for the NL event*/
wifi_error wifi_reset_iface_event_handler(wifi_request_id id,
wifi_interface_handle iface)
{
int ret = 0;
if (mwifiEventHandler)
{
if (id == mwifiEventHandler->get_request_id()) {
ALOGV("Delete Object mwifiEventHandler for id = %d", id);
delete mwifiEventHandler;
mwifiEventHandler = NULL;
} else {
ALOGE("%s: Iface Event Handler Set for a different Request "
"Id:%d is requested. Not supported. Exit", __func__, id);
return WIFI_ERROR_NOT_SUPPORTED;
}
} else {
ALOGV("Object mwifiEventHandler for id = %d already Deleted", id);
}
cleanup:
return (wifi_error)ret;
}
/* This function will be the main handler for the registered incoming
* (from driver) Commads. Calls the appropriate callback handler after
* parsing the vendor data.
*/
int IfaceEventHandlerCommand::handleEvent(WifiEvent &event)
{
int ret = WIFI_SUCCESS;
wifiEventHandler::handleEvent(event);
switch(mSubcmd)
{
case NL80211_CMD_REG_CHANGE:
{
char code[2];
memset(&code[0], 0, 2);
if(tb[NL80211_ATTR_REG_ALPHA2])
{
memcpy(&code[0], (char *) nla_data(tb[NL80211_ATTR_REG_ALPHA2]), 2);
} else {
ALOGE("%s: NL80211_ATTR_REG_ALPHA2 not found", __func__);
}
ALOGV("Country : %c%c", code[0], code[1]);
if(mHandler.on_country_code_changed)
{
mHandler.on_country_code_changed(code);
}
}
break;
default:
ALOGV("NL Event : %d Not supported", mSubcmd);
}
return NL_SKIP;
}
IfaceEventHandlerCommand::IfaceEventHandlerCommand(wifi_handle handle, int id, u32 subcmd)
: wifiEventHandler(handle, id, subcmd)
{
ALOGV("wifiEventHandler %p constructed", this);
registerHandler(mSubcmd);
memset(&mHandler, 0, sizeof(wifi_event_handler));
mEventData = NULL;
mDataLen = 0;
}
IfaceEventHandlerCommand::~IfaceEventHandlerCommand()
{
ALOGV("IfaceEventHandlerCommand %p destructor", this);
unregisterHandler(mSubcmd);
}
void IfaceEventHandlerCommand::setCallbackHandler(wifi_event_handler nHandler)
{
mHandler = nHandler;
}
int wifiEventHandler::get_request_id()
{
return mRequestId;
}
int IfaceEventHandlerCommand::get_request_id()
{
return wifiEventHandler::get_request_id();
}
wifiEventHandler::wifiEventHandler(wifi_handle handle, int id, u32 subcmd)
: WifiCommand(handle, id)
{
mRequestId = id;
mSubcmd = subcmd;
registerHandler(mSubcmd);
ALOGV("wifiEventHandler %p constructed", this);
}
wifiEventHandler::~wifiEventHandler()
{
ALOGV("wifiEventHandler %p destructor", this);
unregisterHandler(mSubcmd);
}
int wifiEventHandler::handleEvent(WifiEvent &event)
{
struct genlmsghdr *gnlh = event.header();
mSubcmd = gnlh->cmd;
nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
genlmsg_attrlen(gnlh, 0), NULL);
ALOGV("Got NL Event : %d from the Driver.", gnlh->cmd);
return NL_SKIP;
}
WifihalGeneric::WifihalGeneric(wifi_handle handle, int id, u32 vendor_id,
u32 subcmd)
: WifiVendorCommand(handle, id, vendor_id, subcmd)
{
/* Initialize the member data variables here */
mSet = 0;
mSetSizeMax = 0;
mSetSizePtr = NULL;
mConcurrencySet = 0;
filterVersion = 0;
filterLength = 0;
firmware_bus_max_size = 0;
}
WifihalGeneric::~WifihalGeneric()
{
}
int WifihalGeneric::requestResponse()
{
return WifiCommand::requestResponse(mMsg);
}
int WifihalGeneric::handleResponse(WifiEvent &reply)
{
ALOGV("Got a Wi-Fi HAL module message from Driver");
int i = 0;
u32 status;
WifiVendorCommand::handleResponse(reply);
// Parse the vendordata and get the attribute
switch(mSubcmd)
{
case QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES:
{
struct nlattr *tb_vendor[QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX + 1];
nla_parse(tb_vendor, QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX,
(struct nlattr *)mVendorData,
mDataLen, NULL);
if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_FEATURE_SET])
{
ALOGE("%s: QCA_WLAN_VENDOR_ATTR_FEATURE_SET not found", __func__);
return WIFI_ERROR_INVALID_ARGS;
}
mSet = nla_get_u32(tb_vendor[QCA_WLAN_VENDOR_ATTR_FEATURE_SET]);
ALOGV("Supported feature set : %x", mSet);
break;
}
case QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX:
{
struct nlattr *tb_vendor[
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX + 1];
nla_parse(tb_vendor,
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX,
(struct nlattr *)mVendorData,mDataLen, NULL);
if (tb_vendor[
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE]) {
u32 val;
val = nla_get_u32(
tb_vendor[
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE]);
ALOGV("%s: Num of concurrency combinations: %d",
__func__, val);
val = val > (unsigned int)mSetSizeMax ?
(unsigned int)mSetSizeMax : val;
*mSetSizePtr = val;
/* Extract the list of channels. */
if (*mSetSizePtr > 0 &&
tb_vendor[
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET]) {
nla_memcpy(mConcurrencySet,
tb_vendor[
QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET],
sizeof(feature_set) * (*mSetSizePtr));
}
ALOGV("%s: Get concurrency matrix response received.",
__func__);
ALOGV("%s: Num of concurrency combinations : %d",
__func__, *mSetSizePtr);
ALOGV("%s: List of valid concurrency combinations is: ",
__func__);
for(i = 0; i < *mSetSizePtr; i++)
{
ALOGV("%x", *(mConcurrencySet + i));
}
}
}
break;
case QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER:
{
struct nlattr *tb_vendor[
QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX + 1];
nla_parse(tb_vendor, QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX,
(struct nlattr *)mVendorData,
mDataLen, NULL);
if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION])
{
ALOGE("%s: QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION"
" not found", __FUNCTION__);
return WIFI_ERROR_INVALID_ARGS;
}
filterVersion = nla_get_u32(
tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION]);
ALOGV("Current version : %u", filterVersion);
if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH])
{
ALOGE("%s: QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH"
" not found", __FUNCTION__);
return WIFI_ERROR_INVALID_ARGS;
}
filterLength = nla_get_u32(
tb_vendor[QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_TOTAL_LENGTH]);
ALOGV("Max filter length Supported : %u", filterLength);
}
break;
case QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE:
{
struct nlattr *tb_vendor[
QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX + 1];
nla_parse(tb_vendor, QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX,
(struct nlattr *)mVendorData, mDataLen, NULL);
if (!tb_vendor[QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE])
{
ALOGE("%s: QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE"
" not found", __FUNCTION__);
return WIFI_ERROR_INVALID_ARGS;
}
firmware_bus_max_size = nla_get_u32(
tb_vendor[QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE]);
ALOGV("Max BUS size Supported: %d", firmware_bus_max_size);
}
break;
default :
ALOGE("%s: Wrong Wi-Fi HAL event received %d", __func__, mSubcmd);
}
return NL_SKIP;
}
void WifihalGeneric::getResponseparams(feature_set *pset)
{
*pset = mSet;
}
void WifihalGeneric::setMaxSetSize(int set_size_max) {
mSetSizeMax = set_size_max;
}
void WifihalGeneric::setConcurrencySet(feature_set set[]) {
mConcurrencySet = set;
}
void WifihalGeneric::setSizePtr(int *set_size) {
mSetSizePtr = set_size;
}
int WifihalGeneric::getFilterVersion() {
return filterVersion;
}
int WifihalGeneric::getFilterLength() {
return filterLength;
}
int WifihalGeneric::getBusSize() {
return firmware_bus_max_size;
}
| 12,929 | 4,380 |
//-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#include "platform/platform.h"
#include "network/connectionProtocol.h"
#include "console/consoleTypes.h"
#include "sim/simBase.h"
#include "io/bitStream.h"
#include "game/gameConnection.h"
#include "io/resource/resourceManager.h"
#include "gameConnection_ScriptBinding.h"
//----------------------------------------------------------------------------
#define MAX_MOVE_PACKET_SENDS 4
#define ControlRequestTime 5000
const U32 GameConnection::CurrentProtocolVersion = 12;
const U32 GameConnection::MinRequiredProtocolVersion = 12;
//----------------------------------------------------------------------------
IMPLEMENT_CONOBJECT(GameConnection);
S32 GameConnection::mLagThresholdMS = 0;
//----------------------------------------------------------------------------
GameConnection::GameConnection()
{
mLagging = false;
mAuthInfo = NULL;
mConnectArgc = 0;
for(U32 i = 0; i < MaxConnectArgs; i++)
mConnectArgv[i] = 0;
mJoinPassword = NULL;
mDisconnectReason[0] = 0;
}
GameConnection::~GameConnection()
{
delete mAuthInfo;
for(U32 i = 0; i < mConnectArgc; i++)
dFree(mConnectArgv[i]);
dFree(mJoinPassword);
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
bool GameConnection::canRemoteCreate()
{
return true;
}
void GameConnection::setConnectArgs(U32 argc, const char **argv)
{
if(argc > MaxConnectArgs)
argc = MaxConnectArgs;
mConnectArgc = argc;
for(U32 i = 0; i < mConnectArgc; i++)
mConnectArgv[i] = dStrdup(argv[i]);
}
void GameConnection::setJoinPassword(const char *password)
{
mJoinPassword = dStrdup(password);
}
void GameConnection::onTimedOut()
{
if(isConnectionToServer())
{
Con::printf("Connection to server timed out");
Con::executef(this, 1, "onConnectionTimedOut");
}
else
{
Con::printf("Client %d timed out.", getId());
setDisconnectReason("TimedOut");
}
}
void GameConnection::onConnectionEstablished(bool isInitiator)
{
if(isInitiator)
{
setGhostFrom(false);
setGhostTo(true);
setSendingEvents(true);
setTranslatesStrings(true);
setIsConnectionToServer();
mServerConnection = this;
Con::printf("Connection established %d", getId());
Con::executef(this, 1, "onConnectionAccepted");
}
else
{
setGhostFrom(true);
setGhostTo(false);
setSendingEvents(true);
setTranslatesStrings(true);
Sim::getClientGroup()->addObject(this);
const char *argv[MaxConnectArgs + 2];
argv[0] = "onConnect";
for(U32 i = 0; i < mConnectArgc; i++)
argv[i + 2] = mConnectArgv[i];
Con::execute(this, mConnectArgc + 2, argv);
}
}
void GameConnection::onConnectTimedOut()
{
Con::executef(this, 1, "onConnectRequestTimedOut");
}
void GameConnection::onDisconnect(const char *reason)
{
if(isConnectionToServer())
{
Con::printf("Connection with server lost.");
Con::executef(this, 2, "onConnectionDropped", reason);
}
else
{
Con::printf("Client %d disconnected.", getId());
setDisconnectReason(reason);
}
}
void GameConnection::onConnectionRejected(const char *reason)
{
Con::executef(this, 2, "onConnectRequestRejected", reason);
}
void GameConnection::handleStartupError(const char *errorString)
{
Con::executef(this, 2, "onConnectRequestRejected", errorString);
}
void GameConnection::writeConnectAccept(BitStream *stream)
{
Parent::writeConnectAccept(stream);
stream->write(getProtocolVersion());
}
bool GameConnection::readConnectAccept(BitStream *stream, const char **errorString)
{
if(!Parent::readConnectAccept(stream, errorString))
return false;
U32 protocolVersion;
stream->read(&protocolVersion);
if(protocolVersion < MinRequiredProtocolVersion || protocolVersion > CurrentProtocolVersion)
{
*errorString = "CHR_PROTOCOL"; // this should never happen unless someone is faking us out.
return false;
}
return true;
}
void GameConnection::writeConnectRequest(BitStream *stream)
{
Parent::writeConnectRequest(stream);
stream->writeString(GameString);
stream->write(CurrentProtocolVersion);
stream->write(MinRequiredProtocolVersion);
stream->writeString(mJoinPassword);
stream->write(mConnectArgc);
for(U32 i = 0; i < mConnectArgc; i++)
stream->writeString(mConnectArgv[i]);
}
bool GameConnection::readConnectRequest(BitStream *stream, const char **errorString)
{
if(!Parent::readConnectRequest(stream, errorString))
return false;
U32 currentProtocol, minProtocol;
char gameString[256];
stream->readString(gameString);
if(dStrcmp(gameString, GameString))
{
*errorString = "CHR_GAME";
return false;
}
stream->read(¤tProtocol);
stream->read(&minProtocol);
char joinPassword[256];
stream->readString(joinPassword);
if(currentProtocol < MinRequiredProtocolVersion)
{
*errorString = "CHR_PROTOCOL_LESS";
return false;
}
if(minProtocol > CurrentProtocolVersion)
{
*errorString = "CHR_PROTOCOL_GREATER";
return false;
}
setProtocolVersion(currentProtocol < CurrentProtocolVersion ? currentProtocol : CurrentProtocolVersion);
const char *serverPassword = Con::getVariable("Pref::Server::Password");
if(serverPassword[0])
{
if(dStrcmp(joinPassword, serverPassword))
{
*errorString = "CHR_PASSWORD";
return false;
}
}
stream->read(&mConnectArgc);
if(mConnectArgc > MaxConnectArgs)
{
*errorString = "CR_INVALID_ARGS";
return false;
}
const char *connectArgv[MaxConnectArgs + 3];
for(U32 i = 0; i < mConnectArgc; i++)
{
char argString[256];
stream->readString(argString);
mConnectArgv[i] = dStrdup(argString);
connectArgv[i + 3] = mConnectArgv[i];
}
connectArgv[0] = "onConnectRequest";
char buffer[256];
Net::addressToString(getNetAddress(), buffer);
connectArgv[2] = buffer;
const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv);
if(ret[0])
{
*errorString = ret;
return false;
}
return true;
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void GameConnection::connectionError(const char *errorString)
{
if(isConnectionToServer())
{
Con::printf("Connection error: %s.", errorString);
Con::executef(this, 2, "onConnectionError", errorString);
}
else
{
Con::printf("Client %d packet error: %s.", getId(), errorString);
setDisconnectReason("Packet Error.");
}
deleteObject();
}
void GameConnection::setAuthInfo(const AuthInfo *info)
{
mAuthInfo = new AuthInfo;
*mAuthInfo = *info;
}
const AuthInfo *GameConnection::getAuthInfo()
{
return mAuthInfo;
}
//----------------------------------------------------------------------------
bool GameConnection::onAdd()
{
if (!Parent::onAdd())
return false;
return true;
}
void GameConnection::onRemove()
{
if(isNetworkConnection())
{
sendDisconnectPacket(mDisconnectReason);
}
if(!isConnectionToServer())
Con::executef(this, 2, "onDrop", mDisconnectReason);
Parent::onRemove();
}
void GameConnection::setDisconnectReason(const char *str)
{
dStrncpy(mDisconnectReason, str, sizeof(mDisconnectReason) - 1);
mDisconnectReason[sizeof(mDisconnectReason) - 1] = 0;
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void GameConnection::readPacket(BitStream *bstream)
{
//Con::printf("GameConnection::handlePacket - readPacket ---");
char stringBuf[256];
stringBuf[0] = 0;
bstream->setStringBuffer(stringBuf);
bstream->clearCompressionPoint();
Parent::readPacket(bstream);
bstream->clearCompressionPoint();
bstream->setStringBuffer(NULL);
}
void GameConnection::writePacket(BitStream *bstream, PacketNotify *note)
{
char stringBuf[256];
bstream->clearCompressionPoint();
stringBuf[0] = 0;
bstream->setStringBuffer(stringBuf);
Parent::writePacket(bstream, note);
bstream->clearCompressionPoint();
bstream->setStringBuffer(NULL);
}
void GameConnection::detectLag()
{
//see if we're lagging...
S32 curTime = Sim::getCurrentTime();
if (curTime - mLastPacketTime > mLagThresholdMS)
{
if (!mLagging)
{
mLagging = true;
Con::executef(this, 2, "setLagIcon", "true");
}
}
else if (mLagging)
{
mLagging = false;
Con::executef(this, 2, "setLagIcon", "false");
}
}
GameConnection::GamePacketNotify::GamePacketNotify()
{
// need to fill in empty notifes for demo start block
}
NetConnection::PacketNotify *GameConnection::allocNotify()
{
return new GamePacketNotify;
}
void GameConnection::packetReceived(PacketNotify *note)
{
//record the time so we can tell if we're lagging...
mLastPacketTime = Sim::getCurrentTime();
Parent::packetReceived(note);
}
void GameConnection::packetDropped(PacketNotify *note)
{
Parent::packetDropped(note);
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void GameConnection::handleConnectionMessage(U32 message, U32 sequence, U32 ghostCount)
{
Parent::handleConnectionMessage(message, sequence, ghostCount);
}
//--------------------------------------------------------------------------
void GameConnection::consoleInit()
{
Con::addVariable("Pref::Net::LagThreshold", TypeS32, &mLagThresholdMS);
}
| 11,784 | 3,599 |
/************************************************************************************
Copyright (C) 2021 by Nicholas LaCroix
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
************************************************************************************/
#if defined(_WIN32) || defined(_WIN64)
#include "Gleam_Buffer_Direct3D11.h"
#include "Gleam_RenderDevice_Direct3D11.h"
#include "Gleam_IRenderDevice.h"
#include "Gleam_IncludeD3D11.h"
NS_GLEAM
static const D3D11_BIND_FLAG g_type_map[static_cast<size_t>(IBuffer::Type::Count)] = {
D3D11_BIND_VERTEX_BUFFER,
D3D11_BIND_INDEX_BUFFER,
D3D11_BIND_CONSTANT_BUFFER,
D3D11_BIND_SHADER_RESOURCE
};
static const D3D11_MAP g_map_map[static_cast<size_t>(IBuffer::MapType::Count)] = {
D3D11_MAP_READ,
D3D11_MAP_READ,
D3D11_MAP_WRITE_DISCARD,
D3D11_MAP_WRITE_NO_OVERWRITE,
D3D11_MAP_READ_WRITE
};
BufferD3D11::BufferD3D11(void):
_buffer(nullptr)
{
}
BufferD3D11::~BufferD3D11(void)
{
destroy();
}
bool BufferD3D11::init(IRenderDevice& rd, const Settings& buffer_settings)
{
GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11 && !_buffer);
RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd);
ID3D11Device5* const device = rd3d.getDevice();
D3D11_BUFFER_DESC desc;
desc.BindFlags = g_type_map[static_cast<size_t>(buffer_settings.type)];
desc.ByteWidth = static_cast<UINT>(buffer_settings.size);
desc.MiscFlags = (buffer_settings.type == Type::StructuredData) ? D3D11_RESOURCE_MISC_BUFFER_STRUCTURED : 0;
desc.StructureByteStride = (buffer_settings.type == Type::StructuredData) ? static_cast<UINT>(buffer_settings.stride) : 0;
desc.CPUAccessFlags = 0;
const bool cpu_read = (buffer_settings.cpu_access == MapType::Read) || (buffer_settings.cpu_access == MapType::ReadWrite);
const bool cpu_write = (buffer_settings.cpu_access == MapType::ReadWrite) ||
(buffer_settings.cpu_access == MapType::Write) ||
(buffer_settings.cpu_access == MapType::WriteNoOverwrite);
if (buffer_settings.gpu_read_only) {
if (cpu_read) {
desc.Usage = D3D11_USAGE_STAGING;
} else if (cpu_write) {
desc.Usage = D3D11_USAGE_DYNAMIC;
} else {
desc.Usage = D3D11_USAGE_IMMUTABLE;
}
} else {
if (cpu_read || cpu_write) {
desc.Usage = D3D11_USAGE_STAGING;
} else {
desc.Usage = D3D11_USAGE_DEFAULT;
}
}
if (cpu_read) {
desc.CPUAccessFlags |= D3D11_CPU_ACCESS_READ;
}
if (cpu_write) {
desc.CPUAccessFlags |= D3D11_CPU_ACCESS_WRITE;
}
_buffer_type = buffer_settings.type;
_elem_size = buffer_settings.element_size;
_stride = buffer_settings.stride;
_size = buffer_settings.size;
if (buffer_settings.data) {
D3D11_SUBRESOURCE_DATA subres_data;
subres_data.pSysMem = buffer_settings.data;
subres_data.SysMemPitch = 0;
subres_data.SysMemSlicePitch = 0;
return SUCCEEDED(device->CreateBuffer(&desc, &subres_data, &_buffer));
}
return SUCCEEDED(device->CreateBuffer(&desc, nullptr, &_buffer));
}
void BufferD3D11::destroy(void)
{
SAFERELEASE(_buffer)
}
bool BufferD3D11::update(IRenderDevice& rd, const void* data, size_t size, size_t offset)
{
GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11 && data && size);
RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd);
ID3D11DeviceContext3* const context = rd3d.getDeviceContext();
D3D11_MAPPED_SUBRESOURCE mapped_resource;
const HRESULT result = context->Map(_buffer, 0, (offset) ? D3D11_MAP_WRITE_NO_OVERWRITE : D3D11_MAP_WRITE_DISCARD, 0, &mapped_resource);
RETURNIFFAILED(result)
memcpy(reinterpret_cast<int8_t*>(mapped_resource.pData) + offset, data, size);
context->Unmap(_buffer, 0);
return true;
}
void* BufferD3D11::map(IRenderDevice& rd, MapType map_type)
{
GAFF_ASSERT((rd.getRendererType() == RendererType::DIRECT3D11) && (map_type != MapType::None));
RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd);
ID3D11DeviceContext3* const context = rd3d.getDeviceContext();
D3D11_MAPPED_SUBRESOURCE mapped_resource;
const HRESULT result = context->Map(_buffer, 0, g_map_map[static_cast<size_t>(map_type)], 0, &mapped_resource);
return (FAILED(result)) ? nullptr : mapped_resource.pData;
}
void BufferD3D11::unmap(IRenderDevice& rd)
{
GAFF_ASSERT(rd.getRendererType() == RendererType::DIRECT3D11);
RenderDeviceD3D11& rd3d = static_cast<RenderDeviceD3D11&>(rd);
ID3D11DeviceContext3* const context = rd3d.getDeviceContext();
context->Unmap(_buffer, 0);
}
RendererType BufferD3D11::getRendererType(void) const
{
return RendererType::DIRECT3D11;
}
ID3D11Buffer* BufferD3D11::getBuffer(void) const
{
return _buffer;
}
NS_END
#endif
| 5,719 | 2,316 |
/*
Copyright (c) 2020-21 Project re-Isearch and its contributors: See CONTRIBUTORS.
It is made available and licensed under the Apache 2.0 license: see LICENSE
*/
/*@@@
File: unisock.hxx
Version: 1.02
Description: Multiplatform TCP/IP socket code.
Author: Kevin Gamiel, kevin.gamiel@cnidr.org
Edward C. Zimmermann <edz@nonmonotonic.com>
Note: Currently supports BSD and Winsock
@@@*/
#ifndef _UNISOCK_
#define _UNISOCK_
#include <ctype.h>
#include <iostream.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#ifdef SGI_CC
#include <bstring.h> // Apparently only needed for SGI's CC compiler
#endif
/*
Porting Information
You should define the appropriate value depending on your platform.
You're choices are:
#define UNISOCK_WINSOCK
#define UNISOCK_BSD
#define UNISOCK_MACTCP
I'll take a stab at figuring out what platform you are compiling on first
and if I fail, the compiler should bail out.
*/
// MS VC++
#if (defined _WINDOWS) | (defined _Windows) | (defined _MSDOS) | (defined _WIN32)
#define UNISOCK_WINSOCK
#endif
#if (defined UNIX) | (defined unix)
#define UNISOCK_BSD
#define BSD_COMP
#endif
#if (defined THINKC)
#define UNISOCK_MACTCP
#endif
#if (defined __AIX)
#define UNISOCK_AIX
#endif
// Timeout alarm clock timer for connect.
/*
#include <unistd.h>
#include <sys/time.h>
*/
#ifndef __OBJECTCENTER__
#if (!defined UNISOCK_WINSOCK) & (!defined UNISOCK_BSD) & (!defined UNISOCK_MACTCP) & (!defined UNISOCK_AIX)
#error YOU MUST DEFINE A UNISOCK PLATFORM - See unisock.hxx
#endif
#endif
#ifdef UNISOCK_BSD
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
extern "C" {
#include <netdb.h>
}
#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/uio.h>
#include <signal.h>
#include <setjmp.h>
#include <sys/time.h>
#define TSOCKET INT
#define SOCKADDR struct sockaddr
#if defined (socklen_t)
#define SOCKLEN_T socklen_t
#else
#define SOCKLEN_T UINT
#endif
#define SOCKET_ERROR (-1)
#define INVALID_SOCKET (TSOCKET)(~0)
#endif /* UNISOCK_BSD */
#ifdef UNISOCK_AIX
#include <sys/types.h>
#include <sys/socket.h>
#include <signal.h>
#include <netinet/in.h>
#include <arpa/inet.h>
extern "C" {
#include <netdb.h>
}
#include <sys/ioctl.h>
#include <unistd.h>
#include <sys/uio.h>
#include <sys/time.h>
#define TSOCKET INT
#define SOCKADDR struct sockaddr
#if defined (socklen_t)
#define SOCKLEN_T socklen_t
#else
#define SOCKLEN_T long unsigned int
#endif
#define SOCKET_ERROR (-1)
#define INVALID_SOCKET (TSOCKET)(~0)
#endif /* UNISOCK_AIX */
#ifdef UNISOCK_WINSOCK
#include "windows.h"
#include "winsock.h"
#define TSOCKET SOCKET
#if defined (socklen_t)
#define SOCKLEN_T socklen_t
#else
#define SOCKLEN_T int
#endif
#endif /* UNISOCK_WINSOCK */
#include "defs.hxx"
#include "string.hxx"
// These values MUST NOT collide with errno values
#define UNI_BASE 2500
#define UNI_OK 0
#define UNI_UNCONNECTED UNI_BASE + 1
#define UNI_CONNECTED UNI_BASE + 2
#define UNI_PEERABORT UNI_BASE + 3
#define UNI_INVALID_HOST UNI_BASE + 4
#define UNI_NO_HOSTLOOKUP UNI_BASE + 5
class UNISOCK {
protected:
TSOCKET c_socket;
INT c_error,
c_state,
c_family,
c_comm_type,
c_protocol,
c_reverse_name_lookup,
c_timeout;
STRING c_hostname,
c_ipaddress,
c_addinfo;
GDT_BOOLEAN c_inetd,
c_inetd_not_set_yet;
public:
UNISOCK(INT family, INT comm_type, INT protocol);
UNISOCK(INT family, INT comm_type, INT protocol, INT timeout);
~UNISOCK();
UNISOCK & operator=(const UNISOCK & Other);
void SetHostname(CHR *Hostname) { c_hostname = Hostname; }
void GetHostname(STRING *Hostname) { *Hostname = c_hostname; }
void SetIPAddress(CHR *Address) { c_ipaddress = Address; }
void GetIPAddress(STRING *Address) { *Address = c_ipaddress; }
// For TCP, connects to host. For UDP, stores address for
// subsequent sending of data.
void Connect(SOCKADDR *name);
// void Listen(UINT Port, INT backlog);
void Listen(UINT Port, INT backlog, const CHR *hostname = NULL);
INT Accept(UNISOCK *NewSocket);
INT IsConnected() { return c_state == UNI_CONNECTED; }
void Close();
INT Send(CHR *buf, INT len);
INT Recv(CHR *buf, INT len);
// Determine if and how much data is ready.
INT DataReady(INT4 SecondsToWait = 0);
INT4 DataReadyCount();
// Simple error handling
INT LastError() { return c_error; }
void ErrorMessage(CHR *msg, INT maxlen);
void ErrorMessage(INT err, CHR *msg, INT maxlen);
TSOCKET Socket() const { return c_socket; }
void SetSocket(TSOCKET NewSocket, INT State=UNI_CONNECTED);
// void SetSocket(INT NewSocket, INT State=UNI_CONNECTED);
void BlockingMode(INT f);
void BlockingModeON() { BlockingMode(0); }
void BlockingModeOFF() { BlockingMode(1); }
GDT_BOOLEAN StartedByInetd();
};
GDT_BOOLEAN StartedByInetd();
// Well defined port numbers
// UDP Ports
#define PORT_ECHO 7
#define PORT_DISCARD 9
#define PORT_USERS 11
#define PORT_DAYTIME 13
#define PORT_NETSTAT 15
#define PORT_QUOTE 17
#define PORT_CHARGEN 19
#define PORT_TIME 37
#define PORT_NAMESERVER 42
#define PORT_NICNAME 43
#define PORT_DOMAIN 53
#define PORT_BOOTPS 67
#define PORT_BOOTPC 68
#define PORT_TFTP 69
#define PORT_HTTP 80
#define PORT_SUNRPC 111
#define PORT_NTP 123
#define PORT_SNMP 161
#define PORT_SNMP_TRAP 162
#define PORT_Z3950 210
#define PORT_BIFF 512
#define PORT_WHO 513
#define PORT_SYSLOG 514
#define PORT_TIMED 525
#endif
| 5,514 | 2,255 |
#include "server.h"
Nan::Persistent<v8::Function> Server::constructor;
Server::Server() {
}
Server::~Server() {
}
void Server::Init(v8::Local<v8::Object> exports) {
// Prepare constructor template
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::New("Server").ToLocalChecked());
tpl->InstanceTemplate()->SetInternalFieldCount(1);
// Prototype
Nan::SetPrototypeMethod(tpl, "listen", Listen);
Nan::SetPrototypeMethod(tpl, "close", Close);
constructor.Reset(tpl->GetFunction());
exports->Set(Nan::New("Server").ToLocalChecked(), tpl->GetFunction());
}
NAN_METHOD(Server::New) {
if (info.IsConstructCall()) {
Server* obj = new Server();
obj->Wrap(info.This());
info.GetReturnValue().Set(info.This());
} else {
const int argc = 1;
v8::Local<v8::Value> argv[argc] = { info[0] };
v8::Local<v8::Function> cons = Nan::New<v8::Function>(constructor);
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
}
}
NAN_METHOD(Server::Listen) {
}
NAN_METHOD(Server::Close) {
} | 1,078 | 401 |
// A C++ program to sort an array according to the order defined
// by another array
#include <iostream>
#include <algorithm>
using namespace std;
/* A Binary Search based function to find index of FIRST occurrence
of x in arr[]. If x is not present, then it returns -1 */
int first(int arr[], int low, int high, int x, int n)
{
if (high >= low)
{
int mid = low + (high-low)/2; /* (low + high)/2; */
if ((mid == 0 || x > arr[mid-1]) && arr[mid] == x)
return mid;
if (x > arr[mid])
return first(arr, (mid + 1), high, x, n);
return first(arr, low, (mid -1), x, n);
}
return -1;
}
// Sort A1[0..m-1] according to the order defined by A2[0..n-1].
void sortAccording(int A1[], int A2[], int m, int n)
{
// The temp array is used to store a copy of A1[] and visited[]
// is used mark the visited elements in temp[].
int temp[m], visited[m];
for (int i=0; i<m; i++)
{
temp[i] = A1[i];
visited[i] = 0;
}
// Sort elements in temp
sort(temp, temp + m);
int ind = 0; // for index of output which is sorted A1[]
// Consider all elements of A2[], find them in temp[]
// and copy to A1[] in order.
for (int i=0; i<n; i++)
{
// Find index of the first occurrence of A2[i] in temp
int f = first(temp, 0, m-1, A2[i], m);
// If not present, no need to proceed
if (f == -1) continue;
// Copy all occurrences of A2[i] to A1[]
for (int j = f; (j<m && temp[j]==A2[i]); j++)
{
A1[ind++] = temp[j];
visited[j] = 1;
}
}
// Now copy all items of temp[] which are not present in A2[]
for (int i=0; i<m; i++)
if (visited[i] == 0)
A1[ind++] = temp[i];
}
// Utility function to print an array
void printArray(int arr[], int n)
{
for (int i=0; i<n; i++)
cout << arr[i] << " ";
cout << endl;
}
// Driver program to test above function.
int main()
{
int A1[] = {2, 1, 2, 5, 7, 1, 9, 3, 6, 8, 8};
int A2[] = {2, 1, 8, 3};
int m = sizeof(A1)/sizeof(A1[0]);
int n = sizeof(A2)/sizeof(A2[0]);
cout << "Sorted array is \n";
sortAccording(A1, A2, m, n);
printArray(A1, m);
return 0;
}
| 2,034 | 883 |
//
// Created by wangrl on 20-6-2.
//
#include <jni.h>
#include <string>
#include "entt/entt.hpp"
#include <android/log.h>
#include <android/asset_manager.h>
#include <unistd.h>
#define TAG "Renderer"
extern "C" {
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/avutil.h"
#include "libavfilter/avfilter.h"
};
#include "include/core/SkTypes.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkString.h"
#include "src/utils/SkOSPath.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkGraphics.h"
#include "include/core/SkStream.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTime.h"
#include "modules/skottie/include/SkottieProperty.h"
#include "modules/skottie/include/Skottie.h"
#include "modules/skresources/include/SkResources.h"
#include "bfx/Engine.h"
#include "bfx/Utils/EngineUtils.h"
entt::entity animationEntity;
float nativeRendererPercent = 0.0f;
const std::string RendererClassStr = "com/chuangkit/videorenderer/NativeRendererInterface";
const std::string rendererPercentStr = "rendererPercent";
enum RendererStatus {
SUCCESS = 0,
FAILED,
BREAK,
ERROR
};
extern "C"
JNIEXPORT jint JNICALL
Java_com_chuangkit_videorenderer_NativeRendererInterface_rendererVideo(JNIEnv *env, jobject thiz,
jstring input_json_file,
jstring output_video_file) {
// TODO: implement rendererVideo()
const char *inputJsonFile = (env)->GetStringUTFChars(input_json_file, nullptr);
int inputLength = (env)->GetStringUTFLength(input_json_file);
std::string jsonFile = std::string(inputJsonFile, inputLength);
const char *outputVideoFile = (env)->GetStringUTFChars(output_video_file, nullptr);
int outputLength = (env)->GetStringUTFLength(output_video_file);
std::string outputFile = std::string(outputVideoFile, outputLength);
__android_log_print(ANDROID_LOG_INFO, TAG, "%s", jsonFile.c_str());
__android_log_print(ANDROID_LOG_INFO, TAG, "%s", outputFile.c_str());
std::string assetPath = jsonFile.substr(0, jsonFile.find_last_of('/'));
__android_log_print(ANDROID_LOG_INFO, TAG, "%s", assetPath.c_str());
// audio文件所在位置
std::string audioAssets = assetPath + "/audios/music_0.mp3";
auto animation = skottie::Animation::Builder()
.setResourceProvider(
skresources::FileResourceProvider::Make(SkString(assetPath.c_str())))
.makeFromFile(jsonFile.c_str());
if (animation == nullptr) {
__android_log_print(ANDROID_LOG_ERROR, TAG, "construct animation failed");
return RendererStatus::FAILED;
}
SkISize dim = animation->size().toRound();
float totalCount = animation->duration() * animation->fps();
__android_log_print(ANDROID_LOG_INFO, TAG, "animation width %d height %d", dim.width(),
dim.height());
auto &bfx = bfx::Engine::instance();
// load first then init
animationEntity = bfx::EngineUtils::Animation::load(jsonFile);
bfx.init(dim.width(), dim.height());
bfx::EngineUtils::FFmpeg::configOutputFilePath(animationEntity, outputFile);
bfx::AudioInput *audioInput = new bfx::AudioInput(audioAssets, 0.0f, 0.0f);
if (access(audioAssets.c_str(), F_OK) != -1) {
bfx::EngineUtils::FFmpeg::configAudioInput(animationEntity, audioInput);
}
int nativeCount = 0;
bool userBreak = false;
while (!bfx::EngineUtils::Animation::finished()) {
if (bfx::EngineUtils::Animation::isUserBreak(animationEntity)) {
userBreak = true;
break;
}
nativeCount++;
__android_log_print(ANDROID_LOG_INFO, TAG, "renderer frame %d", nativeCount);
nativeRendererPercent = ((float) nativeCount) / totalCount;
// 1. 获取Class类型对象
jclass RendererClass = env->FindClass(RendererClassStr.c_str());
if (nullptr == RendererClass) {
__android_log_print(ANDROID_LOG_ERROR, TAG, "can not found %s class",
RendererClassStr.c_str());
}
// 2. 获取属性ID值
jfieldID rendererPercentID = env->GetStaticFieldID(RendererClass,
rendererPercentStr.c_str(), "F");
if (nullptr == rendererPercentID) {
__android_log_print(ANDROID_LOG_ERROR, TAG, "can not found %s attribute",
rendererPercentStr.c_str());
}
// 3. 获取静态属性值
// jfloat rendererPercentValue = env->GetStaticFloatField(RendererClass,
// rendererPercentID);
// 4. 将计算出来的百分比进行赋值
jfloat rendererPercentValue = nativeRendererPercent;
bfx.step();
// 5. 设置静态属性值
env->SetStaticFloatField(RendererClass, rendererPercentID, rendererPercentValue);
// 6. 删除本地局部引用表,基本数据类型不需要
env->DeleteLocalRef(RendererClass);
}
delete audioInput;
bfx.destroy();
nativeRendererPercent = 0;
__android_log_print(ANDROID_LOG_INFO, TAG, "%s", "renderer end");
if (userBreak) {
return RendererStatus::BREAK;
} else {
return RendererStatus::SUCCESS;
}
}
extern "C"
JNIEXPORT jboolean JNICALL
Java_com_chuangkit_videorenderer_NativeRendererInterface_breakRenderer(JNIEnv *env, jobject thiz) {
bfx::EngineUtils::Animation::setUserBreak(animationEntity, true);
return JNI_TRUE;
} | 5,577 | 1,846 |
#include <bits/stdc++.h>
/*
Problem: 11926 - Multitasking
Link : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=3077
Solution by: Mohamed Hisham El-Banna
Gmail : Mohamed00Hisham@Gmail.com
Github : www.github.com/Mhmd-Hisham
LinkedIn: www.linkedin.com/in/Mhmd-Hisham
*/
using namespace std;
typedef signed long long ll;
typedef unsigned long long ull;
#define fastio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int N, M;
bitset<1000002> calendar;
bool testRange(int start, int end){
for (int i = start+1; i <= end; ++i){
if (calendar.test(i)) return true;
else calendar.set(i);
}
return false;
}
int main () {
fastio;
while ( cin >> N >> M && (N || M)){
bool conflict = false;
int start, end, interval;
calendar.reset();
while ((N--)){
cin >> start >> end;
conflict |= testRange(start, end);
}
while ((M--)){
cin >> start >> end >> interval;
while ((start < 1000000)){
conflict |= testRange(start, end);
start += interval;
end = min(end+interval, 1000000);
}
}
cout << (conflict? "CONFLICT" : "NO CONFLICT" ) << '\n';
}
return 0;
}
/*
Sample input:-
-----------------
Sample output:-
-----------------
Resources:-
-------------
Explanation:
---------------
*/
| 1,508 | 535 |
#include <iostream>
#include "ToyUtility/Prerequisites/PreDefine.h"
#include "ToyUtility/DataStream/MemoryDataStream.h"
#include "ToyUtility/DataStream/FileDataStream.h"
#include "TRL/details/TRLSL/TRLSLParser.h"
#include "TRL/details/TRLSL/TRLSLTokener.h"
using namespace ToyUtility;
using namespace TRL;
int main()
{
const ToyUtility::String code = R"(
uniform vec4 Pos;
void main()
{
Pos = vec4(1, 2, 3, 4);
if(1 == Pos.x)
{
Pos.y = 4;
}
}
)";
TRL::TRLSLTokener tokener;
//bool res = tokener.Prepare(MemoryDataStream((void*)code.c_str(), code.size() + 1, false));
bool res = tokener.Prepare(FileDataStream("simple.trlsl"));
//bool res = tokener.Prepare(FileDataStream("trlsl_full_example.trlsl"));
if (!res)
{
std::cout << "tokener error: " << tokener.GetError().ErrorInfo << std::endl;
return 2;
}
{
MemoryDataStream stream(10240);
//if (0)
//{
// GLSLGenerator generator;
// //HLSLGenerator generator;
// TRLSLParser parser(generator);
// parser.Parse(tokener);
// generator.GenerateCode(stream);
// std::cout << stream.GetAsString() << std::endl;
//}
//else
//{
// DebugGenerator generator;
// TRLSLParser parser(generator);
// parser.Parse(tokener);
//}
}
std::cout << "TRL SL Example >> End" << std::endl;
system("pause");
return 0;
} | 1,505 | 544 |
// Copyright (c) 2014-2017 Thomas Fussell
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, WRISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE
//
// @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file
#include <locale>
#include <xlnt/worksheet/range_reference.hpp>
namespace xlnt {
range_reference range_reference::make_absolute(const xlnt::range_reference &relative)
{
range_reference copy = relative;
copy.top_left_.make_absolute(true, true);
copy.bottom_right_.make_absolute(true, true);
return copy;
}
range_reference::range_reference()
: range_reference("A1")
{
}
range_reference::range_reference(const char *range_string)
: range_reference(std::string(range_string))
{
}
range_reference::range_reference(const std::string &range_string)
: top_left_("A1"), bottom_right_("A1")
{
auto colon_index = range_string.find(':');
if (colon_index != std::string::npos)
{
top_left_ = cell_reference(range_string.substr(0, colon_index));
bottom_right_ = cell_reference(range_string.substr(colon_index + 1));
}
else
{
top_left_ = cell_reference(range_string);
bottom_right_ = cell_reference(range_string);
}
}
range_reference::range_reference(const cell_reference &top_left,
const cell_reference &bottom_right)
: top_left_(top_left),
bottom_right_(bottom_right)
{
}
range_reference::range_reference(column_t column_index_start,
row_t row_index_start,
column_t column_index_end,
row_t row_index_end)
: top_left_(column_index_start, row_index_start),
bottom_right_(column_index_end, row_index_end)
{
}
range_reference range_reference::make_offset(int column_offset, int row_offset) const
{
auto top_left = top_left_.make_offset(column_offset, row_offset);
auto bottom_right = bottom_right_.make_offset(column_offset, row_offset);
return top_left, bottom_right; // lol
}
std::size_t range_reference::height() const
{
return bottom_right_.row() - top_left_.row();
}
std::size_t range_reference::width() const
{
return (bottom_right_.column() - top_left_.column()).index;
}
bool range_reference::is_single_cell() const
{
return width() == 0 && height() == 0;
}
std::string range_reference::to_string() const
{
return top_left_.to_string() + ":" + bottom_right_.to_string();
}
bool range_reference::operator==(const range_reference &comparand) const
{
return comparand.top_left_ == top_left_ && comparand.bottom_right_ == bottom_right_;
}
bool range_reference::operator!=(const range_reference &comparand) const
{
return comparand.top_left_ != top_left_ || comparand.bottom_right_ != bottom_right_;
}
cell_reference range_reference::top_left() const
{
return top_left_;
}
cell_reference range_reference::top_right() const
{
return cell_reference(bottom_right_.column(), top_left_.row());
}
cell_reference range_reference::bottom_left() const
{
return cell_reference(top_left_.column(), bottom_right_.row());
}
cell_reference range_reference::bottom_right() const
{
return bottom_right_;
}
bool range_reference::operator==(const std::string &reference_string) const
{
return *this == range_reference(reference_string);
}
bool range_reference::operator==(const char *reference_string) const
{
return *this == std::string(reference_string);
}
bool range_reference::operator!=(const std::string &reference_string) const
{
return *this != range_reference(reference_string);
}
bool range_reference::operator!=(const char *reference_string) const
{
return *this != std::string(reference_string);
}
XLNT_API bool operator==(const std::string &reference_string, const range_reference &ref)
{
return ref == reference_string;
}
XLNT_API bool operator==(const char *reference_string, const range_reference &ref)
{
return ref == reference_string;
}
XLNT_API bool operator!=(const std::string &reference_string, const range_reference &ref)
{
return ref != reference_string;
}
XLNT_API bool operator!=(const char *reference_string, const range_reference &ref)
{
return ref != reference_string;
}
} // namespace xlnt
| 5,148 | 1,653 |
#include "r1Model.h"
#include "ExternalTools/Assimp/include/Importer.hpp"
#include "ExternalTools/Assimp/include/scene.h"
#include "ExternalTools/Assimp/include/postprocess.h"
#include "ExternalTools/MathGeoLib/include/Math/Quat.h"
#include "Modules/m1Objects.h"
#include "Objects/Object.h"
#include "Objects/Components/c1Mesh.h"
#include "Objects/Components/c1Material.h"
#include "Objects/Components/c1Transform.h"
#include "Resources/r1Mesh.h"
#include "Resources/r1Texture.h"
#include "Core/Application.h"
#include "Modules/m1Resources.h"
#include "Tools/FileSystem.h"
#include "Tools/OpenGL/OpenGLHelper.h"
#include "Tools/System/Logger.h"
#include "ExternalTools/mmgr/mmgr.h"
r1Model::r1Model(const uint64_t& uid) : Resource(Resource::Type::Model, uid)
{
}
r1Model::~r1Model()
{
if (references > 0)
Unload();
}
void r1Model::Unload()
{
if (root) {
delete root;
root = nullptr;
}
for (auto& i : meshes) {
i->Detach();
}
meshes.clear();
for (auto i : materials) {
if (auto r = App->resources->Get(i))
r->Detach();
}
materials.clear();
}
void r1Model::Load()
{
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(path, aiProcess_Triangulate | aiProcess_GlobalScale);
if (scene == nullptr) {
LOGW("Model %s with path %s not loaded correctly | Error: %s", name.c_str(), path.c_str(), importer.GetErrorString());
return;
}
if (scene->mMetaData != nullptr) {
LoadMetaData(scene->mMetaData);
}
nlohmann::json meta = FileSystem::OpenJSONFile((path + ".meta").c_str());
if (meta.is_null()) {
LOGW("meta file of resource %s was not found", path.c_str());
return;
}
meta = meta["properties"];
//Load meshes
for (int im = 0; im < scene->mNumMeshes; ++im) {
aiMesh* m = scene->mMeshes[im];
nlohmann::json jmesh = meta["meshes"][im];
auto mesh = App->resources->CreateResource<r1Mesh>("", jmesh.value("uid", 0ULL), false);
mesh->from_model = uid;
mesh->Attach();
if (m->mMaterialIndex >= 0) {
mesh->tex_i = m->mMaterialIndex;
}
oglh::GenVAO(mesh->VAO);
mesh->vertices.size = m->mNumVertices;
mesh->vertices.data = new float[mesh->vertices.size * 3];
memset(mesh->vertices.data, 0.f, sizeof(float) * mesh->vertices.size * 3);
for (int v = 0; v < m->mNumVertices; ++v) {
mesh->vertices.data[v * 3] = m->mVertices[v].x;
mesh->vertices.data[v * 3 + 1] = m->mVertices[v].y;
mesh->vertices.data[v * 3 + 2] = m->mVertices[v].z;
}
oglh::GenArrayBuffer(mesh->vertices.id, mesh->vertices.size, sizeof(float), 3, mesh->vertices.data, 0, 3);
if (m->HasNormals()) {
mesh->normals.size = m->mNumVertices;
mesh->normals.data = new float[mesh->normals.size * 3];
memset(mesh->normals.data, 0.f, sizeof(float) * mesh->normals.size * 3);
for (int n = 0; n < m->mNumVertices; ++n) {
mesh->normals.data[n * 3] = m->mNormals[n].x;
mesh->normals.data[n * 3 + 1] = m->mNormals[n].y;
mesh->normals.data[n * 3 + 2] = m->mNormals[n].z;
}
oglh::GenArrayBuffer(mesh->normals.id, mesh->normals.size, sizeof(float), 3, mesh->normals.data, 2, 3);
}
mesh->indices.size = m->mNumFaces * 3;
mesh->indices.data = new unsigned int[mesh->indices.size];
memset(mesh->indices.data, 0U, sizeof(unsigned int) * mesh->indices.size);
for (int f = 0; f < m->mNumFaces; ++f) {
for (int n = 0; n < m->mFaces[f].mNumIndices; ++n)
mesh->indices.data[f * m->mFaces[f].mNumIndices + n] = m->mFaces[f].mIndices[n];
}
oglh::GenElementBuffer(mesh->indices.id, mesh->indices.size, mesh->indices.data);
if (m->HasTextureCoords(0)) {
mesh->texture.size = m->mNumVertices;
mesh->texture.data = new float[mesh->texture.size * 2];
memset(mesh->texture.data, 0.f, sizeof(float) * mesh->texture.size * 2);
for (int n = 0; n < m->mNumVertices; ++n) {
mesh->texture.data[n * 2] = m->mTextureCoords[0][n].x;
mesh->texture.data[n * 2 + 1] = m->mTextureCoords[0][n].y;
}
oglh::GenArrayBuffer(mesh->texture.id, mesh->texture.size, sizeof(float), 2, mesh->texture.data, 1, 2);
}
meshes.push_back(mesh);
}
for (int it = 0; it < scene->mNumMaterials; ++it) {
aiMaterial const* mat = scene->mMaterials[it];
unsigned int ntex = mat->GetTextureCount(aiTextureType::aiTextureType_DIFFUSE);
for (unsigned int i = 0; i < ntex; ++i) {
aiString p;
if (mat->GetTexture(aiTextureType::aiTextureType_DIFFUSE, i, &p) == aiReturn::aiReturn_FAILURE) {
LOGE("Error get diffuse texture from assimp");
continue;
}
uint64_t t_uid = 0ULL;
if (FileSystem::Exists(p.C_Str())) {
t_uid = App->resources->FindByPath(p.C_Str());
if (t_uid == 0ULL)
t_uid = App->resources->FindByName(FileSystem::GetNameFile(p.C_Str()).c_str());
}
else {
t_uid = App->resources->FindByName(FileSystem::GetNameFile(p.C_Str()).c_str());
}
auto t = (r1Texture*)App->resources->Get(t_uid);
if (t) {
t->Attach();
}
materials.push_back(t_uid);
}
}
assert(root == nullptr, "root is not nullptr");
root = new Node();
root->name = "root";
for (int i = 0; i < scene->mRootNode->mNumChildren; ++i) {
Node* c = new Node();
LoadNode(scene->mRootNode->mChildren[i], scene, c);
c->parent = root;
root->children.push_back(c);
}
}
void r1Model::LoadVars()
{
nlohmann::json meta = FileSystem::OpenJSONFile((path + ".meta").c_str());
if (meta.find("properties") != meta.end()) {
isTerrain = meta["properties"].value("isTerrainTile", false);
}
}
void r1Model::LoadNode(aiNode* node, const aiScene* scene, Node* n)
{
n->name = node->mName.C_Str();
aiVector3D pos, scale; aiQuaternion rot;
node->mTransformation.Decompose(scale, rot, pos);
n->transform = float4x4::FromTRS({ pos.x, pos.y, pos.z }, Quat(rot.x, rot.y, rot.z, rot.w), { scale.x, scale.y, scale.z });
if (node->mMetaData != nullptr) {
LoadMetaData(node->mMetaData);
}
if (node->mNumMeshes == 1) {
for (unsigned int i = 0u; i < node->mNumMeshes; ++i) {
n->id_mesh = meshes[node->mMeshes[i]]->GetUID();
int m = scene->mMeshes[node->mMeshes[i]]->mMaterialIndex;
if (m >= 0 && m < materials.size())
n->id_tex = materials[m];
}
}
else if (node->mNumMeshes > 1) {
LOGE("TODO: Node with more than 1 mesh");
}
for (unsigned int i = 0u; i < node->mNumChildren; ++i) {
Node* child = new Node();
LoadNode(node->mChildren[i], scene, child);
child->parent = n;
n->children.push_back(child);
}
}
void r1Model::CreateHierarchy(nlohmann::json& parent, aiNode* node)
{
parent["name"] = node->mName.C_Str();
if (node->mNumMeshes > 0) {
if (node->mNumMeshes == 1) {
parent["id_mesh"] = node->mMeshes[0];
}
else {
//TODO: create separated object for every mesh
}
}
for (int i = 0; i < node->mNumChildren; ++i) {
nlohmann::json child;
CreateHierarchy(child, node->mChildren[i]);
parent["children"].push_back(child);
}
}
void r1Model::GenerateFiles()
{
Assimp::Importer importer;
nlohmann::json meta = FileSystem::OpenJSONFile((path + ".meta").c_str());
if (meta.is_null()) {
LOGW("meta file of resource %s was not found", path.c_str());
return;
}
auto mprop = meta["properties"];
const aiScene* scene = importer.ReadFile(path, aiProcess_Triangulate);
if (scene == nullptr) {
LOGW("Model %s with path %s not loaded correctly | Error: %s", name.c_str(), path.c_str(), importer.GetErrorString());
return;
}
if (scene->mMetaData != nullptr) {
LoadMetaData(scene->mMetaData);
}
for (int im = 0; im < scene->mNumMeshes; ++im) {
nlohmann::json jmesh;
jmesh["uid"] = Random::RandomGUID();
jmesh["index"] = im;
mprop["meshes"].push_back(jmesh);
}
for (int it = 0; it < scene->mNumMaterials; ++it) {
LOGN("Material %s", scene->mMaterials[it]->GetName().C_Str());
for (int s = 0; s < scene->mMaterials[it]->GetTextureCount(aiTextureType::aiTextureType_SPECULAR); ++s) {
//TODO: Load more texture types
}
for (int d = 0; d < scene->mMaterials[it]->GetTextureCount(aiTextureType::aiTextureType_DIFFUSE); ++d) {
aiString p;
if (scene->mMaterials[it]->GetTexture(aiTextureType::aiTextureType_DIFFUSE, d, &p) == aiReturn::aiReturn_FAILURE) {
LOGE("GetTexture Failed");
continue;
}
LOG("Texture %s", p.C_Str());
}
}
for (int it = 0; it < scene->mNumTextures; ++it) {
LOGN("Texture %s", scene->mTextures[it]->mFilename.C_Str());
}
CreateHierarchy(mprop["root"], scene->mRootNode);
meta["properties"] = mprop;
FileSystem::SaveJSONFile((path + ".meta").c_str(), meta);
}
void r1Model::UpdateFiles()
{
LOGNE("TODO: fbx Updated");
}
void r1Model::LoadMetaData(aiMetadata* meta)
{
for (unsigned int i = 0u; i < meta->mNumProperties; ++i) {
auto key = meta->mKeys[i];
auto val = meta->mValues[i];
switch (val.mType)
{
case AI_BOOL:
//LOG("Metadata with index %i type: bool key: %s | value: %i", i, key.C_Str(), *(bool*)val.mData);
break;
case AI_INT32:
//LOG("Metadata with index %i type: int32_t key: %s | value: %i", i, key.C_Str(), *(int32_t*)val.mData);
break;
case AI_UINT64:
//LOG("Metadata with index %i type: uint64_t key: %s | value: %" SDL_PRIu64, i, key.C_Str(), *(uint64_t*)val.mData);
break;
case AI_FLOAT:
//LOG("Metadata with index %i type: float key: %s | value: %f", i, key.C_Str(), *(float*)val.mData);
break;
case AI_DOUBLE:
//LOG("Metadata with index %i type: double key: %s | value: %lf", i, key.C_Str(), *(double*)val.mData);
break;
case AI_AISTRING:
//LOG("Metadata with index %i type: aiString key: %s | value: %s", i, key.C_Str(), (*(aiString*)val.mData).C_Str());
break;
case AI_AIVECTOR3D: {
aiVector3D value = *(aiVector3D*)val.mData;
//LOG("Metadata with index %i type: aiVector3D key: %s | value: (%f, %f, %f)", i, key.C_Str(), value.x, value.y, value.z);
} break;
default:
//LOG("Metadata with index %i type not handled in the switch | Type: %i", i, val.mType);
break;
}
}
}
void r1Model::CreateObject(Object* r)
{
if (r == nullptr)
return;
Object* parent = App->objects->CreateEmptyObject(r, name.c_str());
for (auto i = root->children.begin(); i != root->children.end(); ++i)
CreateChildren(*i, parent);
}
void r1Model::OnInspector()
{
Resource::OnInspector();
ImGui::Separator();
ImGui::Checkbox("Is Terrain Tile", &isTerrain);
if (ImGui::Button("Apply")) {
if (references > 0) {
Unload();
Load();
}
}
ImGui::SameLine();
if (ImGui::Button("Save")) {
nlohmann::json meta = FileSystem::OpenJSONFile((path + ".meta").c_str());
meta["properties"]["isTerrainTile"] = isTerrain;
FileSystem::SaveJSONFile((path + ".meta").c_str(), meta);
}
}
void r1Model::CreateChildren(r1Model::Node* parent, Object* r)
{
Object* o = App->objects->CreateEmptyObject(r);
o->SetName(parent->name.c_str());
o->transform->SetLocalMatrix(parent->transform);
if (parent->id_mesh != 0ULL) {
auto mesh = o->CreateComponent<c1Mesh>();
mesh->SetMesh(parent->id_mesh);
if (parent->id_tex != 0ULL) {
auto mat = o->GetComponent<c1Material>();
mat->SetTexture(parent->id_tex);
}
}
for (auto i = parent->children.begin(); i != parent->children.end(); ++i) {
CreateChildren((*i), o);
}
} | 11,088 | 4,853 |
//
// Copyright (c) 2009 Rutger ter Borg
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP
#define BOOST_NUMERIC_BINDINGS_BLAS_LEVEL1_HPP
#include <boost/numeric/bindings/blas/level1/asum.hpp>
#include <boost/numeric/bindings/blas/level1/axpy.hpp>
#include <boost/numeric/bindings/blas/level1/copy.hpp>
#include <boost/numeric/bindings/blas/level1/dotc.hpp>
#include <boost/numeric/bindings/blas/level1/dot.hpp>
#include <boost/numeric/bindings/blas/level1/dotu.hpp>
#include <boost/numeric/bindings/blas/level1/doth.hpp>
#include <boost/numeric/bindings/blas/level1/iamax.hpp>
#include <boost/numeric/bindings/blas/level1/nrm2.hpp>
#include <boost/numeric/bindings/blas/level1/prec_dot.hpp>
#include <boost/numeric/bindings/blas/level1/rotg.hpp>
#include <boost/numeric/bindings/blas/level1/rot.hpp>
#include <boost/numeric/bindings/blas/level1/rotmg.hpp>
#include <boost/numeric/bindings/blas/level1/rotm.hpp>
#include <boost/numeric/bindings/blas/level1/scal.hpp>
#include <boost/numeric/bindings/blas/level1/set.hpp>
#include <boost/numeric/bindings/blas/level1/swap.hpp>
#endif
| 1,245 | 511 |
/* The MIT License (MIT)
*
* Copyright (c) 2017 Andrew Yeung <azy.development@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
#include <azydev/embedded/pins/common/pins.h>
/* PUBLIC */
template<typename PIN_TYPE>
CPins<PIN_TYPE>::~CPins() {
}
// NVI
template<typename PIN_TYPE>
void CPins<PIN_TYPE>::SetPinConfig(const PIN_TYPE pinId, const CONFIG_DESC& config) {
SetPinConfig_impl(pinId, config);
}
template<typename PIN_TYPE>
void CPins<PIN_TYPE>::PinWriteDigital(const PIN_TYPE pinId, const DIGITAL_STATE state) {
PinWriteDigital_impl(pinId, state);
}
template<typename PIN_TYPE>
uint8_t CPins<PIN_TYPE>::PinReadDigital(const PIN_TYPE pinId) const {
return PinReadDigital_impl(pinId);
}
template<typename PIN_TYPE>
void CPins<PIN_TYPE>::EnableInterrupt(
const PIN_TYPE pinId,
const INTERRUPT_TRIGGER trigger,
const bool ignorePending) {
EnableInterrupt_impl(pinId, trigger, ignorePending);
}
template<typename PIN_TYPE>
void CPins<PIN_TYPE>::DisableInterrupt(const PIN_TYPE pinId) {
DisableInterrupt_impl(pinId);
}
/* PROTECTED */
template<typename PIN_TYPE>
CPins<PIN_TYPE>::CPins() {
}
/* FORWARD DECLARE TEMPLATES */
template class CPins<uint32_t>; | 2,241 | 787 |
#using <System.Xml.dll>
#using <System.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Xsl;
int main()
{
//<snippet1>
// Create a resolver with default credentials.
XmlUrlResolver^ resolver = gcnew XmlUrlResolver;
resolver->Credentials = System::Net::CredentialCache::DefaultCredentials;
// Create the XslTransform object.
XslTransform^ xslt = gcnew XslTransform;
// Load the stylesheet.
xslt->Load( "http://myServer/data/authors.xsl", resolver );
// Transform the file.
xslt->Transform( "books.xml", "books.html", resolver );
//</snippet1>
}
| 682 | 219 |
#include "../include/calcutron.h"
#include <iostream>
namespace calcutron
{
map<TokenType, regex> tokenRegExMap =
{
{VALUE, regex("[0-9]*[.,]?[0-9]*") },
{OPERATOR, regex("[<*/a-zA-Z+>=-]+")},
{LP, regex(R"([(\x5b{])")}, // проверяем на соответствие только левые скобки - для входа в парсер
{RP, regex(R"([)\x5d}])")}, // проверяем на соответствие только правые скобки - для выхода из парсера
{PAR, regex(R"([(][)]|[\x5b][\x5d]|[{][}])")},
{WS, regex(R"([ \t])")},
{END, regex(R"([\n\xff])")} // символы конца строк
};
int error(const string& msg)
{
cerr << "error: " << msg << '\n';
return 1;
}
Value* Value::readValue(const string& input)
{
try
{
auto tmp = input;
// во-первых, если в качестве используемого разделителя дробной части используется запятая, заменяем её точкой
std::replace(tmp.begin(), tmp.end(), ',', '.');
// а во-вторых, спокойно конвертируем в число
double a = stod(tmp.c_str());
Value* val = new Value(a);
return val;
}
catch (exception& e)
{
throw runtime_error("cannot read value: " + input);
}
return nullptr;
}
}
| 1,116 | 509 |
#pragma once
/* inclusions =============================================================== */
#include <cassert>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <mutex>
#include <queue>
#include <random>
#include <signal.h>
#include <sys/time.h>
#include <thread>
#include <unordered_set>
#include <gmpxx.h>
/* uses ===================================================================== */
using std::cout;
using std::greater;
using std::istream_iterator;
using std::left;
using std::map;
using std::max;
using std::min;
using std::multimap;
using std::mutex;
using std::next;
using std::ostream;
using std::pair;
using std::right;
using std::setw;
using std::string;
using std::thread;
using std::to_string;
using std::vector;
/* types ==================================================================== */
using Float = long double;
using Int = long long;
using TimePoint = std::chrono::time_point<std::chrono::steady_clock>;
template<typename K, typename V> using Map = std::unordered_map<K, V>;
template<typename T> using Set = std::unordered_set<T>;
/* consts =================================================================== */
const Float INF = std::numeric_limits<Float>::infinity();
const Int MIN_INT = std::numeric_limits<Int>::min();
const Int MAX_INT = std::numeric_limits<Int>::max();
const string JOIN_TREE_WORD = "jt";
const string ELIM_VARS_WORD = "e";
const string WARNING = "c MY_WARNING: ";
const string DASH_LINE = "c ------------------------------------------------------------------\n";
const string CNF_FILE_OPTION = "cf";
const string PROJECTED_COUNTING_OPTION = "pc";
const string DD_PACKAGE_OPTION = "dp";
const string RANDOM_SEED_OPTION = "rs";
const string VERBOSE_CNF_OPTION = "vc";
const string VERBOSE_SOLVING_OPTION = "vs";
/* diagram packages: */
const string CUDD = "c";
const string SYLVAN = "s";
const map<string, string> DD_PACKAGES = {
{CUDD, "CUDD"},
{SYLVAN, "SYLVAN"}
};
/* CNF var order heuristics: */
const Int RANDOM = 0;
const Int DECLARATION = 1;
const Int MOST_CLAUSES = 2;
const Int MIN_FILL = 3;
const Int MCS = 4;
const Int LEX_P = 5;
const Int LEX_M = 6;
const map<Int, string> CNF_VAR_ORDER_HEURISTICS = {
{RANDOM, "RANDOM"},
{DECLARATION, "DECLARATION"},
{MOST_CLAUSES, "MOST_CLAUSES"},
{MIN_FILL, "MIN_FILL"},
{MCS, "MCS"},
{LEX_P, "LEX_P"},
{LEX_M, "LEX_M"}
};
/* JT var order heuristics: */
const Int BIGGEST_NODE = 7;
const Int HIGHEST_NODE = 8;
const map<Int, string> JOIN_TREE_VAR_ORDER_HEURISTICS = {
{BIGGEST_NODE, "BIGGEST_NODE"},
{HIGHEST_NODE, "HIGHEST_NODE"}
};
/* clustering heuristics: */
const string BUCKET_ELIM_LIST = "bel";
const string BUCKET_ELIM_TREE = "bet";
const string BOUQUET_METHOD_LIST = "bml";
const string BOUQUET_METHOD_TREE = "bmt";
const map<string, string> CLUSTERING_HEURISTICS = {
{BUCKET_ELIM_LIST, "BUCKET_ELIM_LIST"},
{BUCKET_ELIM_TREE, "BUCKET_ELIM_TREE"},
{BOUQUET_METHOD_LIST, "BOUQUET_METHOD_LIST"},
{BOUQUET_METHOD_TREE, "BOUQUET_METHOD_TREE"}
};
/* CNF/JT verbosity levels: */
const Int PARSED_INPUT = 1;
const Int RAW_INPUT = 2;
const string INPUT_VERBOSITY_LEVELS = "0, " + to_string(PARSED_INPUT) + ", " + to_string(RAW_INPUT) + "; int";
/* global vars ============================================================== */
extern bool weightedCounting;
extern bool projectedCounting;
extern Int randomSeed; // for reproducibility
extern bool multiplePrecision;
extern Int verboseCnf; // 1: parsed CNF, 2: raw CNF too
extern Int verboseSolving; // 0: solution, 1: parsed options too, 2: more info
extern TimePoint toolStartPoint;
/* namespaces =============================================================== */
namespace util {
vector<Int> getSortedNums(const Set<Int>& nums);
string useOption(string optionName, string optionValue, string comparator = "=");
string useDdPackage(string ddPackageArg);
map<Int, string> getVarOrderHeuristics();
string helpVarOrderHeuristic(string prefix); // `prefix` is "diagram", "slice", or "cluster"
string helpVerboseSolving();
TimePoint getTimePoint();
Float getDuration(TimePoint start); // in seconds
vector<string> splitInputLine(string line);
void printInputLine(string line, Int lineIndex);
void printRowKey(string key, size_t keyWidth);
template<typename T> void printRow(string key, const T& val, size_t keyWidth = 32) {
printRowKey(key, keyWidth);
Int p = cout.precision();
cout.precision(std::numeric_limits<Float>::digits10);
cout << val << "\n";
cout.precision(p);
}
template<typename T, typename U> pair<U, T> flipPair(const pair<T, U>& p) {
return pair<U, T>(p.second, p.first);
}
template<typename T, typename U> multimap<U, T, greater<U>> flipMap(const Map<T, U>& inMap) { // decreasing
multimap<U, T, greater<U>> outMap;
transform(inMap.begin(), inMap.end(), inserter(outMap, outMap.begin()), flipPair<T, U>);
return outMap;
}
template<typename T, typename U> bool isFound(const T& element, const vector<U>& container) {
return std::find(begin(container), end(container), element) != end(container);
}
template<typename T> Set<T> getIntersection(const Set<T>& container1, const Set<T>& container2) {
Set<T> intersection;
for (const T& member : container1) {
if (container2.contains(member)) {
intersection.insert(member);
}
}
return intersection;
}
template<typename T, typename U> Set<T> getDiff(const Set<T>& members, const U& nonMembers) {
Set<T> diff;
for (const T& member : members) {
if (!nonMembers.contains(member)) {
diff.insert(member);
}
}
return diff;
}
template<typename T, typename U> void unionize(Set<T>& unionSet, const U& container) {
for (const auto& member : container) {
unionSet.insert(member);
}
}
template<typename T> Set<T> getUnion(const vector<Set<T>>& containers) {
Set<T> s;
for (const Set<T>& container : containers) {
unionize(s, container);
}
return s;
}
template<typename T> bool isDisjoint(const Set<T>& container1, const Set<T>& container2) {
for (const T& member : container1) {
if (container2.contains(member)) {
return false;
}
}
return true;
}
}
/* classes for exceptions =================================================== */
class UnsatException : public std::exception {};
class EmptyClauseException : public UnsatException {
public:
EmptyClauseException(Int lineIndex, string line);
};
class UnsatSolverException : public UnsatException {
public:
UnsatSolverException();
};
class MyError : public std::exception {
public:
template<typename ... Ts> MyError(const Ts& ... args) { // en.cppreference.com/w/cpp/language/fold
cout << "\n";
cout << "c ******************************************************************\n";
cout << "c MY_ERROR: ";
(cout << ... << args); // fold expression
cout << "\n";
}
};
/* classes for CNF formulas ================================================= */
class Number {
public:
mpq_class quotient;
Float fraction;
Number(const mpq_class& q); // multiplePrecision
Number(Float f); // !multiplePrecision
Number(const Number& n);
Number(string repr = "0"); // `repr` is `<int>/<int>` or `<float>`
Number getAbsolute() const;
Float getLog10() const;
Float getLogSumExp(const Number& n) const;
bool operator==(const Number& n) const;
bool operator!=(const Number& n) const;
bool operator<(const Number& n) const;
bool operator<=(const Number& n) const;
bool operator>(const Number& n) const;
bool operator>=(const Number& n) const;
Number operator*(const Number& n) const;
Number& operator*=(const Number& n);
Number operator+(const Number& n) const;
Number& operator+=(const Number& n);
Number operator-(const Number& n) const;
};
class Graph { // undirected
public:
Set<Int> vertices;
Map<Int, Set<Int>> adjacencyMap;
Graph(const Set<Int>& vs);
void addEdge(Int v1, Int v2);
bool isNeighbor(Int v1, Int v2) const;
bool hasPath(Int from, Int to, Set<Int>& visitedVertices) const; // path length >= 0
bool hasPath(Int from, Int to) const;
void removeVertex(Int v); // also removes edges from and to `v`
void fillInEdges(Int v); // does not remove `v`
Int getFillInEdgeCount(Int v) const;
Int getMinFillVertex() const;
};
class Label : public vector<Int> { // for lexicographic search
public:
void addNumber(Int i); // retains descending order
static bool hasSmallerLabel(const pair<Int, Label>& a, const pair <Int, Label>& b);
};
class Clause : public Set<Int> {
public:
bool xorFlag;
Clause(bool xorFlag);
void insertLiteral(Int literal);
void printClause() const;
Set<Int> getClauseVars() const;
};
class Cnf {
public:
vector<Clause> clauses;
Int declaredVarCount = 0;
Set<Int> apparentVars; // as opposed to hidden vars that are declared but appear in no clause
Set<Int> outerVars;
Map<Int, Number> literalWeights;
Map<Int, Set<Int>> varToClauses; // var |-> clause indices
void printClauses() const;
void printLiteralWeights() const;
Set<Int> getInnerVars() const;
void addClause(const Clause& clause);
void setApparentVars();
Graph getPrimalGraph() const;
vector<Int> getRandomVarOrder() const;
vector<Int> getDeclarationVarOrder() const;
vector<Int> getMostClausesVarOrder() const;
vector<Int> getMinFillVarOrder() const;
vector<Int> getMcsVarOrder() const;
vector<Int> getLexPVarOrder() const;
vector<Int> getLexMVarOrder() const;
vector<Int> getCnfVarOrder(Int cnfVarOrderHeuristic) const;
bool isMc21WeightLine(const vector<string> &words) const; // c p weight <literal> <weight> [0]
bool isMc21ShowLine(const vector<string> &words) const; // c p show <vars> [0]
void completeLiteralWeights();
Cnf(); // empty conjunction
Cnf(string filePath);
};
/* classes for join trees =================================================== */
class Assignment : public Map<Int, bool> { // partial var assignment
public:
Assignment();
Assignment(Int var, bool val);
Assignment(string bitString);
bool getValue(Int var) const; // returns `true` if `var` is unassigned
void printAssignment() const;
static vector<Assignment> getExtendedAssignments(const vector<Assignment>& assignments, Int var);
};
class JoinNode { // abstract
public:
static Int nodeCount;
static Int terminalCount;
static Set<Int> nonterminalIndices;
static Int backupNodeCount;
static Int backupTerminalCount;
static Set<Int> backupNonterminalIndices;
static Cnf cnf; // this field must be set exactly once before any JoinNode object is constructed
Int nodeIndex = MIN_INT; // 0-indexing (equal to clauseIndex for JoinTerminal)
vector<JoinNode*> children; // empty for JoinTerminal
Set<Int> projectionVars; // empty for JoinTerminal
Set<Int> preProjectionVars; // set by constructor
static void resetStaticFields(); // backs up and re-initializes static fields
static void restoreStaticFields(); // from backup
virtual Int getWidth(const Assignment& assignment = Assignment()) const = 0; // of subtree
virtual void updateVarSizes(
Map<Int, size_t>& varSizes // var x |-> size of biggest node containing x
) const = 0;
Set<Int> getPostProjectionVars() const;
Int chooseClusterIndex(
Int clusterIndex, // of this node
const vector<Set<Int>>& projectableVarSets, // Z_1, ..., Z_m
string clusteringHeuristic
); // target = |projectableVarSets| if projectableVars \cap postProjectionVars = \emptyset else clusterIndex < target < |projectableVarSets|
Int getNodeRank(
const vector<Int>& restrictedVarOrder,
string clusteringHeuristic
); // rank = |restrictedVarOrder| if restrictedVarOrder \cap postProjectionVars = \emptyset else 0 \le rank < |restrictedVarOrder|
bool isTerminal() const;
};
class JoinTerminal : public JoinNode {
public:
Int getWidth(const Assignment& assignment = Assignment()) const override;
void updateVarSizes(Map<Int, size_t>& varSizes) const override;
JoinTerminal();
};
class JoinNonterminal : public JoinNode {
public:
void printNode(string startWord) const; // 1-indexing
void printSubtree(string startWord = "") const; // post-order traversal
Int getWidth(const Assignment& assignment = Assignment()) const override;
void updateVarSizes(Map<Int, size_t>& varSizes) const override;
vector<Int> getBiggestNodeVarOrder() const;
vector<Int> getHighestNodeVarOrder() const;
vector<Int> getVarOrder(Int varOrderHeuristic) const;
vector<Assignment> getOuterAssignments(Int varOrderHeuristic, Int sliceVarCount) const;
JoinNonterminal(
const vector<JoinNode*>& children,
const Set<Int>& projectionVars = Set<Int>(),
Int requestedNodeIndex = MIN_INT
);
};
/* global functions ========================================================= */
ostream& operator<<(ostream& stream, const Number& n);
| 12,945 | 4,331 |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/fast_ink/laser/laser_pointer_controller.h"
#include <memory>
#include "ash/fast_ink/laser/laser_pointer_view.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shell.h"
#include "ash/system/palette/palette_utils.h"
#include "base/bind.h"
#include "ui/display/screen.h"
#include "ui/events/base_event_utils.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/coordinate_conversion.h"
namespace ash {
namespace {
// A point gets removed from the collection if it is older than
// |kPointLifeDurationMs|.
const int kPointLifeDurationMs = 200;
// When no move events are being received we add a new point every
// |kAddStationaryPointsDelayMs| so that points older than
// |kPointLifeDurationMs| can get removed.
// Note: Using a delay less than the screen refresh interval will not
// provide a visual benefit but instead just waste time performing
// unnecessary updates. 16ms is the refresh interval on most devices.
// TODO(reveman): Use real VSYNC interval instead of a hard-coded delay.
const int kAddStationaryPointsDelayMs = 16;
} // namespace
// A class to hide and lock mouse cursor while it is alive.
class LaserPointerController::ScopedLockedHiddenCursor {
public:
ScopedLockedHiddenCursor() : cursor_manager_(Shell::Get()->cursor_manager()) {
DCHECK(cursor_manager_);
// Hide and lock the cursor.
cursor_manager_->HideCursor();
cursor_manager_->LockCursor();
}
~ScopedLockedHiddenCursor() {
// Unlock the cursor.
cursor_manager_->UnlockCursor();
}
private:
wm::CursorManager* const cursor_manager_;
};
LaserPointerController::LaserPointerController() {
Shell::Get()->AddPreTargetHandler(this);
}
LaserPointerController::~LaserPointerController() {
Shell::Get()->RemovePreTargetHandler(this);
}
void LaserPointerController::AddObserver(LaserPointerObserver* observer) {
observers_.AddObserver(observer);
}
void LaserPointerController::RemoveObserver(LaserPointerObserver* observer) {
observers_.RemoveObserver(observer);
}
void LaserPointerController::SetEnabled(bool enabled) {
if (enabled == is_enabled())
return;
FastInkPointerController::SetEnabled(enabled);
if (!enabled) {
DestroyPointerView();
// Unlock mouse cursor when disabling.
scoped_locked_hidden_cursor_.reset();
}
NotifyStateChanged(enabled);
}
views::View* LaserPointerController::GetPointerView() const {
return laser_pointer_view_widget_
? laser_pointer_view_widget_->GetContentsView()
: nullptr;
}
void LaserPointerController::CreatePointerView(
base::TimeDelta presentation_delay,
aura::Window* root_window) {
laser_pointer_view_widget_ = LaserPointerView::Create(
base::Milliseconds(kPointLifeDurationMs), presentation_delay,
base::Milliseconds(kAddStationaryPointsDelayMs),
Shell::GetContainer(root_window, kShellWindowId_OverlayContainer));
}
void LaserPointerController::UpdatePointerView(ui::TouchEvent* event) {
LaserPointerView* laser_pointer_view = GetLaserPointerView();
if (IsPointerInExcludedWindows(event)) {
// Destroy the |LaserPointerView| since the pointer is in the bound of
// excluded windows.
DestroyPointerView();
return;
}
// Unlock mouse cursor when switch to touch event.
scoped_locked_hidden_cursor_.reset();
laser_pointer_view->AddNewPoint(event->root_location_f(),
event->time_stamp());
if (event->type() == ui::ET_TOUCH_RELEASED) {
laser_pointer_view->FadeOut(base::BindOnce(
&LaserPointerController::DestroyPointerView, base::Unretained(this)));
}
}
void LaserPointerController::UpdatePointerView(ui::MouseEvent* event) {
LaserPointerView* laser_pointer_view = GetLaserPointerView();
if (event->type() == ui::ET_MOUSE_MOVED) {
if (IsPointerInExcludedWindows(event)) {
// Destroy the |LaserPointerView| and unlock the cursor since the cursor
// is in the bound of excluded windows.
DestroyPointerView();
scoped_locked_hidden_cursor_.reset();
return;
}
if (!scoped_locked_hidden_cursor_) {
scoped_locked_hidden_cursor_ =
std::make_unique<ScopedLockedHiddenCursor>();
}
}
laser_pointer_view->AddNewPoint(event->root_location_f(),
event->time_stamp());
if (event->type() == ui::ET_MOUSE_RELEASED) {
laser_pointer_view->FadeOut(base::BindOnce(
&LaserPointerController::DestroyPointerView, base::Unretained(this)));
}
}
void LaserPointerController::DestroyPointerView() {
laser_pointer_view_widget_.reset();
}
bool LaserPointerController::CanStartNewGesture(ui::LocatedEvent* event) {
// Ignore events over the palette.
// TODO(llin): Register palette as a excluded window instead.
aura::Window* target = static_cast<aura::Window*>(event->target());
gfx::Point screen_point = event->location();
wm::ConvertPointToScreen(target, &screen_point);
if (palette_utils::PaletteContainsPointInScreen(screen_point))
return false;
return FastInkPointerController::CanStartNewGesture(event);
}
bool LaserPointerController::ShouldProcessEvent(ui::LocatedEvent* event) {
// Allow clicking when laser pointer is enabled.
if (event->type() == ui::ET_MOUSE_PRESSED ||
event->type() == ui::ET_MOUSE_RELEASED) {
return false;
}
return FastInkPointerController::ShouldProcessEvent(event);
}
void LaserPointerController::NotifyStateChanged(bool enabled) {
for (LaserPointerObserver& observer : observers_)
observer.OnLaserPointerStateChanged(enabled);
}
LaserPointerView* LaserPointerController::GetLaserPointerView() const {
return static_cast<LaserPointerView*>(GetPointerView());
}
} // namespace ash
| 5,887 | 1,806 |
#include "StdAfx.h"
#include "CGUseAbility.h"
uint CGUseAbilityHandler::Execute(CGUseAbility* pPacket,Player* pPlayer)
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR;
}
| 219 | 100 |
// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_BASIC_MATERIAL_HPP
#define NAZARA_BASIC_MATERIAL_HPP
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Graphics/Material.hpp>
namespace Nz
{
class NAZARA_GRAPHICS_API BasicMaterial
{
friend class MaterialPipeline;
public:
struct UniformOffsets;
BasicMaterial(Material& material);
inline void EnableAlphaTest(bool alphaTest);
inline const std::shared_ptr<Texture>& GetAlphaMap() const;
inline const TextureSamplerInfo& GetAlphaSampler() const;
float GetAlphaTestThreshold() const;
Color GetDiffuseColor() const;
inline const std::shared_ptr<Texture>& GetDiffuseMap() const;
inline const TextureSamplerInfo& GetDiffuseSampler() const;
inline bool HasAlphaMap() const;
inline bool HasAlphaTest() const;
inline bool HasAlphaTestThreshold() const;
inline bool HasDiffuseColor() const;
inline bool HasDiffuseMap() const;
inline void SetAlphaMap(std::shared_ptr<Texture> alphaMap);
inline void SetAlphaSampler(TextureSamplerInfo alphaSampler);
void SetAlphaTestThreshold(float alphaThreshold);
void SetDiffuseColor(const Color& diffuse);
inline void SetDiffuseMap(std::shared_ptr<Texture> diffuseMap);
inline void SetDiffuseSampler(TextureSamplerInfo diffuseSampler);
static inline const UniformOffsets& GetOffsets();
static inline const std::shared_ptr<MaterialSettings>& GetSettings();
struct UniformOffsets
{
std::size_t alphaThreshold;
std::size_t diffuseColor;
std::size_t totalSize;
};
private:
struct ConditionIndexes
{
std::size_t alphaTest;
std::size_t hasAlphaMap;
std::size_t hasDiffuseMap;
};
struct TextureIndexes
{
std::size_t alpha;
std::size_t diffuse;
};
static bool Initialize();
static void Uninitialize();
Material& m_material;
std::size_t m_uniformBlockIndex;
ConditionIndexes m_conditionIndexes;
TextureIndexes m_textureIndexes;
UniformOffsets m_uniformOffsets;
static std::shared_ptr<MaterialSettings> s_materialSettings;
static std::size_t s_uniformBlockIndex;
static ConditionIndexes s_conditionIndexes;
static TextureIndexes s_textureIndexes;
static UniformOffsets s_uniformOffsets;
};
}
#include <Nazara/Graphics/BasicMaterial.inl>
#endif // NAZARA_BASIC_MATERIAL_HPP
| 2,486 | 918 |
/*
timer.cpp - Implementation file for the Timer class.
*/
#include <nodate.h>
#include "quadratureTimer.h"
/*---------------------------------------------------------------------------*/
/** @brief TIMER PWM Timer Initialization
This configures a timer perpheral in PWM output mode.
*/
QuadratureTimer::QuadratureTimer(TimerDevice device, GPIO_pin pinA, uint16_t psc, uint32_t arr, uint32_t ccr, EncoderMode mode) : Timer(device) {
this->device = device;
Timer_device &instance = TimerList[this->device];
// make sure arr isn't too large for a 16-bit timer
// 0xFFFFFFFF is ok as it is the reset value for the 32-bit register (upper 16-bits are ignored)
if (!(IS_TIM_32B_COUNTER_INSTANCE(instance.regs)) && (arr != 0xFFFFFFFF)) {
if (arr > 0xFFFF) {
instance.active = false;
return;
}
}
// configure the appropriate GPIO pins
if (!GPIO::set_af(pinA.port, pinA.pin, pinA.af)) {
Rcc::disablePort((RccPort) pinA.port);
instance.active = false;
}
// Start timer clock if needed.
if (!instance.active) {
if (Rcc::enable(instance.per)) {
instance.active = true;
}
}
// Configure the timer
// turn the counter off
instance.regs->CR1 &= ~(TIM_CR1_CEN);
// reset the peripheral
Rcc::reset(instance.per);
// set the prescaler and autoreload values
instance.regs->PSC = psc;
instance.regs->ARR = arr;
// setup for pwm
instance.regs->CCR1 = ccr;
instance.regs->CCMR1 &= ~TIM_CCMR1_CC1S; // CC4 channel is configured as output
instance.regs->CCER &= ~TIM_CCER_CC1P; // Output Polarity set to Active High
instance.regs->CCMR1 &= ~TIM_CCMR1_OC1M; // Output Compare 4 Mode set as PWM Mode 1.
instance.regs->CCMR1 |= TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1M_2; // Output Compare 4 Mode set as PWM Mode 1.
instance.regs->CCMR1 |= TIM_CCMR1_OC1PE; // Enable the corresponding preload register
instance.regs->CCER |= TIM_CCER_CC1E; // Capture/Compare 4 Output Enable
instance.regs->EGR |= TIM_EGR_UG; // Before starting the counter, you have to initialize all the registers
instance.regs->BDTR |= TIM_BDTR_MOE;
instance.regs->CR1 |= TIM_CR1_CEN; // Start Timer
// select both TI1 and TI2 inputs
instance.regs->CCMR1 &= ~(TIM_CCMR1_CC1S_Msk);
instance.regs->CCMR1 |= 0x01 << TIM_CCMR1_CC1S_Pos;
instance.regs->CCMR1 &= ~(TIM_CCMR1_CC2S_Msk);
instance.regs->CCMR1 |= 0x01 << TIM_CCMR1_CC2S_Pos;
// set input polarities
instance.regs->CCER &= ~(TIM_CCER_CC1P_Msk);
instance.regs->CCER &= ~(TIM_CCER_CC1NP_Msk);
instance.regs->CCER &= ~(TIM_CCER_CC2P_Msk);
instance.regs->CCER &= ~(TIM_CCER_CC1NP_Msk);
// set encoder mode
switch (mode) {
case Mode1:
instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk);
instance.regs->SMCR |= 0x01 << TIM_SMCR_SMS_Pos;;
case Mode2:
instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk);
instance.regs->SMCR |= 0x10 << TIM_SMCR_SMS_Pos;;
case Mode3:
instance.regs->SMCR &= ~(TIM_SMCR_SMS_Msk);
instance.regs->SMCR |= 0x11 << TIM_SMCR_SMS_Pos;;
default:
instance.active = false;
}
//TODO: enable the timer, but can't use 'start' PSC and ARR should be cleared
}
/*---------------------------------------------------------------------------*/
/** @brief TIMER Destructor
This configures a timer perpheral in PWM output mode.
*/
QuadratureTimer::~QuadratureTimer() {
// TODO: release the associated peripheral
}
| 3,322 | 1,385 |
// Copyright 2017 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_CBOR_CBOR_PARSER_HPP
#define JSONCONS_CBOR_CBOR_PARSER_HPP
#include <string>
#include <vector>
#include <memory>
#include <utility> // std::move
#include <bitset> // std::bitset
#include <jsoncons/json.hpp>
#include <jsoncons/source.hpp>
#include <jsoncons/json_visitor.hpp>
#include <jsoncons/config/jsoncons_config.hpp>
#include <jsoncons_ext/cbor/cbor_error.hpp>
#include <jsoncons_ext/cbor/cbor_detail.hpp>
#include <jsoncons_ext/cbor/cbor_options.hpp>
#include <jsoncons/json_visitor2.hpp>
namespace jsoncons { namespace cbor {
enum class parse_mode {root,before_done,array,indefinite_array,map_key,map_value,indefinite_map_key,indefinite_map_value,multi_dim};
struct mapped_string
{
jsoncons::cbor::detail::cbor_major_type type;
std::string s;
std::vector<uint8_t> bytes;
mapped_string(const std::string& s)
: type(jsoncons::cbor::detail::cbor_major_type::text_string), s(s)
{
}
mapped_string(std::string&& s)
: type(jsoncons::cbor::detail::cbor_major_type::text_string), s(std::move(s))
{
}
mapped_string(const std::vector<uint8_t>& bytes)
: type(jsoncons::cbor::detail::cbor_major_type::byte_string), bytes(bytes)
{
}
mapped_string(std::vector<uint8_t>&& bytes)
: type(jsoncons::cbor::detail::cbor_major_type::byte_string), bytes(std::move(bytes))
{
}
mapped_string(const mapped_string&) = default;
mapped_string(mapped_string&&) = default;
mapped_string& operator=(const mapped_string&) = default;
mapped_string& operator=(mapped_string&&) = default;
};
struct parse_state
{
parse_mode mode;
std::size_t length;
std::size_t index;
bool pop_stringref_map_stack;
parse_state(parse_mode mode, std::size_t length, bool pop_stringref_map_stack = false) noexcept
: mode(mode), length(length), index(0), pop_stringref_map_stack(pop_stringref_map_stack)
{
}
parse_state(const parse_state&) = default;
parse_state(parse_state&&) = default;
};
template <class Source,class Allocator=std::allocator<char>>
class basic_cbor_parser : public ser_context
{
using char_type = char;
using char_traits_type = std::char_traits<char>;
using allocator_type = Allocator;
using char_allocator_type = typename std::allocator_traits<allocator_type>:: template rebind_alloc<char_type>;
using byte_allocator_type = typename std::allocator_traits<allocator_type>:: template rebind_alloc<uint8_t>;
using tag_allocator_type = typename std::allocator_traits<allocator_type>:: template rebind_alloc<uint64_t>;
using parse_state_allocator_type = typename std::allocator_traits<allocator_type>:: template rebind_alloc<parse_state>;
using stringref_map = std::vector<mapped_string>;
using stringref_map_allocator_type = typename std::allocator_traits<allocator_type>:: template rebind_alloc<stringref_map>;
using string_type = std::basic_string<char_type,char_traits_type,char_allocator_type>;
enum {stringref_tag, // 25
stringref_namespace_tag, // 256
item_tag,
num_of_tags};
std::bitset<num_of_tags> other_tags_;
allocator_type alloc_;
Source source_;
cbor_decode_options options_;
bool more_;
bool done_;
string_type text_buffer_;
std::vector<uint8_t,byte_allocator_type> bytes_buffer_;
uint64_t item_tag_;
std::vector<parse_state,parse_state_allocator_type> state_stack_;
std::vector<uint8_t,byte_allocator_type> typed_array_;
std::vector<std::size_t> shape_;
std::size_t index_;
std::vector<stringref_map,stringref_map_allocator_type> stringref_map_stack_;
int nesting_depth_;
struct read_byte_string_from_buffer
{
byte_string_view bytes;
read_byte_string_from_buffer(const byte_string_view& b)
: bytes(b)
{
}
template <class Container>
void operator()(Container& c, std::error_code&)
{
c.clear();
c.reserve(bytes.size());
for (auto b : bytes)
{
c.push_back(b);
}
}
};
struct read_byte_string_from_source
{
basic_cbor_parser<Source,Allocator>* source;
read_byte_string_from_source(basic_cbor_parser<Source,Allocator>* source)
: source(source)
{
}
template <class Container>
void operator()(Container& c, std::error_code& ec)
{
source->read_byte_string(c,ec);
}
};
public:
template <class Sourceable>
basic_cbor_parser(Sourceable&& source,
const cbor_decode_options& options = cbor_decode_options(),
const Allocator alloc = Allocator())
: alloc_(alloc),
source_(std::forward<Sourceable>(source)),
options_(options),
more_(true),
done_(false),
text_buffer_(alloc),
bytes_buffer_(alloc),
item_tag_(0),
state_stack_(alloc),
typed_array_(alloc),
index_(0),
stringref_map_stack_(alloc),
nesting_depth_(0)
{
state_stack_.emplace_back(parse_mode::root,0);
}
void restart()
{
more_ = true;
}
void reset()
{
state_stack_.clear();
state_stack_.emplace_back(parse_mode::root,0);
more_ = true;
done_ = false;
}
bool done() const
{
return done_;
}
bool stopped() const
{
return !more_;
}
std::size_t line() const override
{
return 0;
}
std::size_t column() const override
{
return source_.position();
}
void parse(json_visitor2& visitor, std::error_code& ec)
{
while (!done_ && more_)
{
switch (state_stack_.back().mode)
{
case parse_mode::multi_dim:
{
if (state_stack_.back().index == 0)
{
++state_stack_.back().index;
read_item(visitor, ec);
}
else
{
produce_end_multi_dim(visitor, ec);
}
break;
}
case parse_mode::array:
{
if (state_stack_.back().index < state_stack_.back().length)
{
++state_stack_.back().index;
read_item(visitor, ec);
}
else
{
end_array(visitor, ec);
}
break;
}
case parse_mode::indefinite_array:
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (c.value == 0xff)
{
source_.ignore(1);
end_array(visitor, ec);
}
else
{
read_item(visitor, ec);
}
break;
}
case parse_mode::map_key:
{
if (state_stack_.back().index < state_stack_.back().length)
{
++state_stack_.back().index;
state_stack_.back().mode = parse_mode::map_value;
read_item(visitor, ec);
}
else
{
end_object(visitor, ec);
}
break;
}
case parse_mode::map_value:
{
state_stack_.back().mode = parse_mode::map_key;
read_item(visitor, ec);
break;
}
case parse_mode::indefinite_map_key:
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (c.value == 0xff)
{
source_.ignore(1);
end_object(visitor, ec);
}
else
{
state_stack_.back().mode = parse_mode::indefinite_map_value;
read_item(visitor, ec);
}
break;
}
case parse_mode::indefinite_map_value:
{
state_stack_.back().mode = parse_mode::indefinite_map_key;
read_item(visitor, ec);
break;
}
case parse_mode::root:
{
state_stack_.back().mode = parse_mode::before_done;
read_item(visitor, ec);
break;
}
case parse_mode::before_done:
{
JSONCONS_ASSERT(state_stack_.size() == 1);
state_stack_.clear();
more_ = false;
done_ = true;
visitor.flush();
break;
}
}
}
}
private:
void read_item(json_visitor2& visitor, std::error_code& ec)
{
read_tags(ec);
if (!more_)
{
return;
}
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
uint8_t info = get_additional_information_value(c.value);
switch (major_type)
{
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
uint64_t val = get_uint64_value(ec);
if (ec)
{
return;
}
if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
{
other_tags_[stringref_tag] = false;
if (val >= stringref_map_stack_.back().size())
{
ec = cbor_errc::stringref_too_large;
more_ = false;
return;
}
stringref_map::size_type index = (stringref_map::size_type)val;
if (index != val)
{
ec = cbor_errc::number_too_large;
more_ = false;
return;
}
auto& str = stringref_map_stack_.back().at(index);
switch (str.type)
{
case jsoncons::cbor::detail::cbor_major_type::text_string:
{
handle_string(visitor, jsoncons::basic_string_view<char>(str.s.data(),str.s.length()),ec);
if (ec)
{
return;
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::byte_string:
{
read_byte_string_from_buffer read(byte_string_view(str.bytes));
write_byte_string(read, visitor, ec);
if (ec)
{
return;
}
break;
}
default:
JSONCONS_UNREACHABLE();
break;
}
}
else
{
semantic_tag tag = semantic_tag::none;
if (other_tags_[item_tag])
{
if (item_tag_ == 1)
{
tag = semantic_tag::epoch_second;
}
other_tags_[item_tag] = false;
}
more_ = visitor.uint64_value(val, tag, *this, ec);
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
{
int64_t val = get_int64_value(ec);
if (ec)
{
return;
}
semantic_tag tag = semantic_tag::none;
if (other_tags_[item_tag])
{
if (item_tag_ == 1)
{
tag = semantic_tag::epoch_second;
}
other_tags_[item_tag] = false;
}
more_ = visitor.int64_value(val, tag, *this, ec);
break;
}
case jsoncons::cbor::detail::cbor_major_type::byte_string:
{
read_byte_string_from_source read(this);
write_byte_string(read, visitor, ec);
if (ec)
{
return;
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::text_string:
{
text_buffer_.clear();
read_text_string(text_buffer_, ec);
if (ec)
{
return;
}
auto result = unicode_traits::validate(text_buffer_.data(),text_buffer_.size());
if (result.ec != unicode_traits::conv_errc())
{
ec = cbor_errc::invalid_utf8_text_string;
more_ = false;
return;
}
handle_string(visitor, jsoncons::basic_string_view<char>(text_buffer_.data(),text_buffer_.length()),ec);
if (ec)
{
return;
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
{
JSONCONS_UNREACHABLE();
break;
}
case jsoncons::cbor::detail::cbor_major_type::simple:
{
switch (info)
{
case 0x14:
more_ = visitor.bool_value(false, semantic_tag::none, *this, ec);
source_.ignore(1);
break;
case 0x15:
more_ = visitor.bool_value(true, semantic_tag::none, *this, ec);
source_.ignore(1);
break;
case 0x16:
more_ = visitor.null_value(semantic_tag::none, *this, ec);
source_.ignore(1);
break;
case 0x17:
more_ = visitor.null_value(semantic_tag::undefined, *this, ec);
source_.ignore(1);
break;
case 0x19: // Half-Precision Float (two-byte IEEE 754)
{
uint64_t val = get_uint64_value(ec);
if (ec)
{
return;
}
more_ = visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
break;
}
case 0x1a: // Single-Precision Float (four-byte IEEE 754)
case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
{
double val = get_double(ec);
if (ec)
{
return;
}
semantic_tag tag = semantic_tag::none;
if (other_tags_[item_tag])
{
if (item_tag_ == 1)
{
tag = semantic_tag::epoch_second;
}
other_tags_[item_tag] = false;
}
more_ = visitor.double_value(val, tag, *this, ec);
break;
}
default:
{
ec = cbor_errc::unknown_type;
more_ = false;
return;
}
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::array:
{
if (other_tags_[item_tag])
{
switch (item_tag_)
{
case 0x04:
text_buffer_.clear();
read_decimal_fraction(text_buffer_, ec);
if (ec)
{
return;
}
more_ = visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
break;
case 0x05:
text_buffer_.clear();
read_bigfloat(text_buffer_, ec);
if (ec)
{
return;
}
more_ = visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
break;
case 40: // row major storage
produce_begin_multi_dim(visitor, semantic_tag::multi_dim_row_major, ec);
break;
case 1040: // column major storage
produce_begin_multi_dim(visitor, semantic_tag::multi_dim_column_major, ec);
break;
default:
begin_array(visitor, info, ec);
break;
}
other_tags_[item_tag] = false;
}
else
{
begin_array(visitor, info, ec);
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::map:
{
begin_object(visitor, info, ec);
break;
}
default:
break;
}
other_tags_[item_tag] = false;
}
void begin_array(json_visitor2& visitor, uint8_t info, std::error_code& ec)
{
if (JSONCONS_UNLIKELY(++nesting_depth_ > options_.max_nesting_depth()))
{
ec = cbor_errc::max_nesting_depth_exceeded;
more_ = false;
return;
}
semantic_tag tag = semantic_tag::none;
bool pop_stringref_map_stack = false;
if (other_tags_[stringref_namespace_tag])
{
stringref_map_stack_.emplace_back(alloc_);
other_tags_[stringref_namespace_tag] = false;
pop_stringref_map_stack = true;
}
switch (info)
{
case jsoncons::cbor::detail::additional_info::indefinite_length:
{
state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
more_ = visitor.begin_array(tag, *this, ec);
source_.ignore(1);
break;
}
default: // definite length
{
std::size_t len = get_size(ec);
if (!more_)
{
return;
}
state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
more_ = visitor.begin_array(len, tag, *this, ec);
break;
}
}
}
void end_array(json_visitor2& visitor, std::error_code& ec)
{
--nesting_depth_;
more_ = visitor.end_array(*this, ec);
if (state_stack_.back().pop_stringref_map_stack)
{
stringref_map_stack_.pop_back();
}
state_stack_.pop_back();
}
void begin_object(json_visitor2& visitor, uint8_t info, std::error_code& ec)
{
if (JSONCONS_UNLIKELY(++nesting_depth_ > options_.max_nesting_depth()))
{
ec = cbor_errc::max_nesting_depth_exceeded;
more_ = false;
return;
}
bool pop_stringref_map_stack = false;
if (other_tags_[stringref_namespace_tag])
{
stringref_map_stack_.emplace_back(alloc_);
other_tags_[stringref_namespace_tag] = false;
pop_stringref_map_stack = true;
}
switch (info)
{
case jsoncons::cbor::detail::additional_info::indefinite_length:
{
state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
more_ = visitor.begin_object(semantic_tag::none, *this, ec);
source_.ignore(1);
break;
}
default: // definite_length
{
std::size_t len = get_size(ec);
if (!more_)
{
return;
}
state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
more_ = visitor.begin_object(len, semantic_tag::none, *this, ec);
break;
}
}
}
void end_object(json_visitor2& visitor, std::error_code& ec)
{
--nesting_depth_;
more_ = visitor.end_object(*this, ec);
if (state_stack_.back().pop_stringref_map_stack)
{
stringref_map_stack_.pop_back();
}
state_stack_.pop_back();
}
void read_text_string(string_type& s, std::error_code& ec)
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
uint8_t info = get_additional_information_value(c.value);
JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::text_string);
auto func = [&s](Source& source, std::size_t length, std::error_code& ec) -> bool
{
if (source_reader<Source>::read(source, s, length) != length)
{
ec = cbor_errc::unexpected_eof;
return false;
}
return true;
};
iterate_string_chunks(func, major_type, ec);
if (!stringref_map_stack_.empty() &&
info != jsoncons::cbor::detail::additional_info::indefinite_length &&
s.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
{
stringref_map_stack_.back().emplace_back(s);
}
}
std::size_t get_size(std::error_code& ec)
{
uint64_t u = get_uint64_value(ec);
if (!more_)
{
return 0;
}
std::size_t len = static_cast<std::size_t>(u);
if (len != u)
{
ec = cbor_errc::number_too_large;
more_ = false;
}
return len;
}
bool read_byte_string(std::vector<uint8_t,byte_allocator_type>& v, std::error_code& ec)
{
bool more = true;
v.clear();
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more = false;
return more;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
uint8_t info = get_additional_information_value(c.value);
JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
switch(info)
{
case jsoncons::cbor::detail::additional_info::indefinite_length:
{
auto func = [&v,&more](Source& source, std::size_t length, std::error_code& ec) -> bool
{
if (source_reader<Source>::read(source, v, length) != length)
{
ec = cbor_errc::unexpected_eof;
more = false;
return more;
}
return true;
};
iterate_string_chunks(func, major_type, ec);
break;
}
default:
{
std::size_t length = get_size(ec);
if (ec)
{
more = false;
return more;
}
if (source_reader<Source>::read(source_, v, length) != length)
{
ec = cbor_errc::unexpected_eof;
more = false;
return more;
}
if (!stringref_map_stack_.empty() &&
v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
{
stringref_map_stack_.back().emplace_back(v);
}
break;
}
}
return more;
}
template <class Function>
void iterate_string_chunks(Function& func, jsoncons::cbor::detail::cbor_major_type type, std::error_code& ec)
{
int nesting_level = 0;
bool done = false;
while (!done)
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (nesting_level > 0 && c.value == 0xff)
{
--nesting_level;
if (nesting_level == 0)
{
done = true;
}
source_.ignore(1);
continue;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
if (major_type != type)
{
ec = cbor_errc::illegal_chunked_string;
more_ = false;
return;
}
uint8_t info = get_additional_information_value(c.value);
switch (info)
{
case jsoncons::cbor::detail::additional_info::indefinite_length:
{
++nesting_level;
source_.ignore(1);
break;
}
default: // definite length
{
std::size_t length = get_size(ec);
if (!more_)
{
return;
}
more_ = func(source_, length, ec);
if (!more_)
{
return;
}
if (nesting_level == 0)
{
done = true;
}
break;
}
}
}
}
uint64_t get_uint64_value(std::error_code& ec)
{
uint64_t val = 0;
uint8_t initial_b;
if (source_.read(&initial_b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return 0;
}
uint8_t info = get_additional_information_value(initial_b);
switch (info)
{
case JSONCONS_CBOR_0x00_0x17: // Integer 0x00..0x17 (0..23)
{
val = info;
break;
}
case 0x18: // Unsigned integer (one-byte uint8_t follows)
{
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
val = b;
break;
}
case 0x19: // Unsigned integer (two-byte uint16_t follows)
{
uint8_t buf[sizeof(uint16_t)];
source_.read(buf, sizeof(uint16_t));
val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
break;
}
case 0x1a: // Unsigned integer (four-byte uint32_t follows)
{
uint8_t buf[sizeof(uint32_t)];
source_.read(buf, sizeof(uint32_t));
val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
break;
}
case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
{
uint8_t buf[sizeof(uint64_t)];
source_.read(buf, sizeof(uint64_t));
val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
break;
}
default:
break;
}
return val;
}
int64_t get_int64_value(std::error_code& ec)
{
int64_t val = 0;
auto ch = source_.peek();
if (ch.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
uint8_t info = get_additional_information_value(ch.value);
switch (major_type)
{
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
source_.ignore(1);
switch (info)
{
case JSONCONS_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
{
val = static_cast<int8_t>(- 1 - info);
break;
}
case 0x18: // Negative integer (one-byte uint8_t follows)
{
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
break;
}
case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
{
uint8_t buf[sizeof(uint16_t)];
if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
auto x = binary::big_to_native<uint16_t>(buf, sizeof(buf));
val = static_cast<int64_t>(-1)- x;
break;
}
case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
{
uint8_t buf[sizeof(uint32_t)];
if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
auto x = binary::big_to_native<uint32_t>(buf, sizeof(buf));
val = static_cast<int64_t>(-1)- x;
break;
}
case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
{
uint8_t buf[sizeof(uint64_t)];
if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return val;
}
auto x = binary::big_to_native<uint64_t>(buf, sizeof(buf));
val = static_cast<int64_t>(-1)- static_cast<int64_t>(x);
break;
}
}
break;
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
uint64_t x = get_uint64_value(ec);
if (ec)
{
return 0;
}
if (x <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
{
val = x;
}
else
{
// error;
}
break;
}
break;
default:
break;
}
return val;
}
double get_double(std::error_code& ec)
{
double val = 0;
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return 0;
}
uint8_t info = get_additional_information_value(b);
switch (info)
{
case 0x1a: // Single-Precision Float (four-byte IEEE 754)
{
uint8_t buf[sizeof(float)];
if (source_.read(buf, sizeof(float)) !=sizeof(float))
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return 0;
}
val = binary::big_to_native<float>(buf, sizeof(buf));
break;
}
case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
{
uint8_t buf[sizeof(double)];
if (source_.read(buf, sizeof(double)) != sizeof(double))
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return 0;
}
val = binary::big_to_native<double>(buf, sizeof(buf));
break;
}
default:
break;
}
return val;
}
void read_decimal_fraction(string_type& result, std::error_code& ec)
{
std::size_t size = get_size(ec);
if (!more_)
{
return;
}
if (size != 2)
{
ec = cbor_errc::invalid_decimal_fraction;
more_ = false;
return;
}
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
int64_t exponent = 0;
switch (get_major_type(c.value))
{
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
exponent = get_uint64_value(ec);
if (ec)
{
return;
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
{
exponent = get_int64_value(ec);
if (ec)
{
return;
}
break;
}
default:
{
ec = cbor_errc::invalid_decimal_fraction;
more_ = false;
return;
}
}
string_type s;
c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
switch (get_major_type(c.value))
{
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
uint64_t val = get_uint64_value(ec);
if (ec)
{
return;
}
jsoncons::detail::from_integer(val, s);
break;
}
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
{
int64_t val = get_int64_value(ec);
if (ec)
{
return;
}
jsoncons::detail::from_integer(val, s);
break;
}
case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
{
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
uint8_t tag = get_additional_information_value(b);
c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
{
bytes_buffer_.clear();
read_byte_string(bytes_buffer_, ec);
if (ec)
{
more_ = false;
return;
}
if (tag == 2)
{
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
n.write_string(s);
}
else if (tag == 3)
{
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
n = -1 - n;
n.write_string(s);
}
}
break;
}
default:
{
ec = cbor_errc::invalid_decimal_fraction;
more_ = false;
return;
}
}
if (s.size() >= static_cast<std::size_t>((std::numeric_limits<int32_t>::max)()) ||
exponent >= (std::numeric_limits<int32_t>::max)() ||
exponent <= (std::numeric_limits<int32_t>::min)())
{
ec = cbor_errc::invalid_decimal_fraction;
more_ = false;
return;
}
else if (s.size() > 0)
{
if (s[0] == '-')
{
result.push_back('-');
jsoncons::detail::prettify_string(s.c_str()+1, s.size()-1, (int)exponent, -4, 17, result);
}
else
{
jsoncons::detail::prettify_string(s.c_str(), s.size(), (int)exponent, -4, 17, result);
}
}
else
{
ec = cbor_errc::invalid_decimal_fraction;
more_ = false;
return;
}
}
void read_bigfloat(string_type& s, std::error_code& ec)
{
std::size_t size = get_size(ec);
if (!more_)
{
return;
}
if (size != 2)
{
ec = cbor_errc::invalid_bigfloat;
more_ = false;
return;
}
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
int64_t exponent = 0;
switch (get_major_type(c.value))
{
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
exponent = get_uint64_value(ec);
if (ec)
{
return;
}
break;
}
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
{
exponent = get_int64_value(ec);
if (ec)
{
return;
}
break;
}
default:
{
ec = cbor_errc::invalid_bigfloat;
more_ = false;
return;
}
}
c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
switch (get_major_type(c.value))
{
case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
{
uint64_t val = get_uint64_value(ec);
if (ec)
{
return;
}
s.push_back('0');
s.push_back('x');
jsoncons::detail::integer_to_string_hex(val, s);
break;
}
case jsoncons::cbor::detail::cbor_major_type::negative_integer:
{
int64_t val = get_int64_value(ec);
if (ec)
{
return;
}
s.push_back('-');
s.push_back('0');
s.push_back('x');
jsoncons::detail::integer_to_string_hex(static_cast<uint64_t>(-val), s);
break;
}
case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
{
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
uint8_t tag = get_additional_information_value(b);
c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
{
bytes_buffer_.clear();
more_ = read_byte_string(bytes_buffer_, ec);
if (!more_)
{
return;
}
if (tag == 2)
{
s.push_back('0');
s.push_back('x');
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
n.write_string_hex(s);
}
else if (tag == 3)
{
s.push_back('-');
s.push_back('0');
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
n = -1 - n;
n.write_string_hex(s);
s[2] = 'x'; // overwrite minus
}
}
break;
}
default:
{
ec = cbor_errc::invalid_bigfloat;
more_ = false;
return;
}
}
s.push_back('p');
if (exponent >=0)
{
jsoncons::detail::integer_to_string_hex(static_cast<uint64_t>(exponent), s);
}
else
{
s.push_back('-');
jsoncons::detail::integer_to_string_hex(static_cast<uint64_t>(-exponent), s);
}
}
static jsoncons::cbor::detail::cbor_major_type get_major_type(uint8_t type)
{
static constexpr uint8_t major_type_shift = 0x05;
uint8_t value = type >> major_type_shift;
return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
}
static uint8_t get_additional_information_value(uint8_t type)
{
static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
uint8_t value = type & additional_information_mask;
return value;
}
void read_tags(std::error_code& ec)
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
{
uint64_t val = get_uint64_value(ec);
if (!more_)
{
return;
}
switch(val)
{
case 25: // stringref
other_tags_[stringref_tag] = true;
break;
case 256: // stringref-namespace
other_tags_[stringref_namespace_tag] = true;
break;
default:
other_tags_[item_tag] = true;
item_tag_ = val;
break;
}
c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
major_type = get_major_type(c.value);
}
}
void handle_string(json_visitor2& visitor, const jsoncons::basic_string_view<char>& v, std::error_code& ec)
{
semantic_tag tag = semantic_tag::none;
if (other_tags_[item_tag])
{
switch (item_tag_)
{
case 0:
tag = semantic_tag::datetime;
break;
case 32:
tag = semantic_tag::uri;
break;
case 33:
tag = semantic_tag::base64url;
break;
case 34:
tag = semantic_tag::base64;
break;
default:
break;
}
other_tags_[item_tag] = false;
}
more_ = visitor.string_value(v, tag, *this, ec);
}
static jsoncons::endian get_typed_array_endianness(const uint8_t tag)
{
return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little;
}
static std::size_t get_typed_array_bytes_per_element(const uint8_t tag)
{
const uint8_t f = (tag & detail::cbor_array_tags_f_mask) >> detail::cbor_array_tags_f_shift;
const uint8_t ll = (tag & detail::cbor_array_tags_ll_mask) >> detail::cbor_array_tags_ll_shift;
return std::size_t(1) << (f + ll);
}
template <typename Read>
void write_byte_string(Read read, json_visitor2& visitor, std::error_code& ec)
{
if (other_tags_[item_tag])
{
switch (item_tag_)
{
case 0x2:
{
bytes_buffer_.clear();
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
text_buffer_.clear();
n.write_string(text_buffer_);
more_ = visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
break;
}
case 0x3:
{
bytes_buffer_.clear();
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
n = -1 - n;
text_buffer_.clear();
n.write_string(text_buffer_);
more_ = visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
break;
}
case 0x15:
{
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
more_ = visitor.byte_string_value(bytes_buffer_, semantic_tag::base64url, *this, ec);
break;
}
case 0x16:
{
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
more_ = visitor.byte_string_value(bytes_buffer_, semantic_tag::base64, *this, ec);
break;
}
case 0x17:
{
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
more_ = visitor.byte_string_value(bytes_buffer_, semantic_tag::base16, *this, ec);
break;
}
case 0x40:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
uint8_t* data = reinterpret_cast<uint8_t*>(typed_array_.data());
std::size_t size = typed_array_.size();
more_ = visitor.typed_array(jsoncons::span<const uint8_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x44:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
uint8_t* data = reinterpret_cast<uint8_t*>(typed_array_.data());
std::size_t size = typed_array_.size();
more_ = visitor.typed_array(jsoncons::span<const uint8_t>(data,size), semantic_tag::clamped, *this, ec);
break;
}
case 0x41:
case 0x45:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
uint16_t* data = reinterpret_cast<uint16_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<uint16_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const uint16_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x42:
case 0x46:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
uint32_t* data = reinterpret_cast<uint32_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<uint32_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const uint32_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x43:
case 0x47:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
uint64_t* data = reinterpret_cast<uint64_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<uint64_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const uint64_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x48:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
int8_t* data = reinterpret_cast<int8_t*>(typed_array_.data());
std::size_t size = typed_array_.size();
more_ = visitor.typed_array(jsoncons::span<const int8_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x49:
case 0x4d:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
int16_t* data = reinterpret_cast<int16_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<int16_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const int16_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x4a:
case 0x4e:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
int32_t* data = reinterpret_cast<int32_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<int32_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const int32_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x4b:
case 0x4f:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
int64_t* data = reinterpret_cast<int64_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<int64_t>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const int64_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x50:
case 0x54:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
uint16_t* data = reinterpret_cast<uint16_t*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<uint16_t>(data[i]);
}
}
more_ = visitor.typed_array(half_arg, jsoncons::span<const uint16_t>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x51:
case 0x55:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
float* data = reinterpret_cast<float*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<float>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const float>(data,size), semantic_tag::none, *this, ec);
break;
}
case 0x52:
case 0x56:
{
typed_array_.clear();
read(typed_array_,ec);
if (ec)
{
more_ = false;
return;
}
const uint8_t tag = (uint8_t)item_tag_;
jsoncons::endian e = get_typed_array_endianness(tag);
const size_t bytes_per_elem = get_typed_array_bytes_per_element(tag);
double* data = reinterpret_cast<double*>(typed_array_.data());
std::size_t size = typed_array_.size()/bytes_per_elem;
if (e != jsoncons::endian::native)
{
for (std::size_t i = 0; i < size; ++i)
{
data[i] = binary::byte_swap<double>(data[i]);
}
}
more_ = visitor.typed_array(jsoncons::span<const double>(data,size), semantic_tag::none, *this, ec);
break;
}
default:
{
read(bytes_buffer_,ec);
if (ec)
{
more_ = false;
return;
}
more_ = visitor.byte_string_value(bytes_buffer_, item_tag_, *this, ec);
break;
}
}
other_tags_[item_tag] = false;
}
else
{
read(bytes_buffer_,ec);
if (ec)
{
return;
}
more_ = visitor.byte_string_value(bytes_buffer_, semantic_tag::none, *this, ec);
}
}
void produce_begin_multi_dim(json_visitor2& visitor,
semantic_tag tag,
std::error_code& ec)
{
uint8_t b;
if (source_.read(&b, 1) == 0)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
uint8_t info = get_additional_information_value(b);
read_shape(info, ec);
if (ec)
{
return;
}
state_stack_.emplace_back(parse_mode::multi_dim, 0);
more_ = visitor.begin_multi_dim(shape_, tag, *this, ec);
}
void produce_end_multi_dim(json_visitor2& visitor, std::error_code& ec)
{
more_ = visitor.end_multi_dim(*this, ec);
state_stack_.pop_back();
}
void read_shape(uint8_t info, std::error_code& ec)
{
shape_.clear();
switch (info)
{
case jsoncons::cbor::detail::additional_info::indefinite_length:
{
while (true)
{
auto c = source_.peek();
if (c.eof)
{
ec = cbor_errc::unexpected_eof;
more_ = false;
return;
}
if (c.value == 0xff)
{
source_.ignore(1);
}
else
{
std::size_t dim = get_size(ec);
if (!more_)
{
return;
}
shape_.push_back(dim);
}
}
break;
}
default:
{
std::size_t size = get_size(ec);
if (!more_)
{
return;
}
for (std::size_t i = 0; more_ && i < size; ++i)
{
std::size_t dim = get_size(ec);
if (!more_)
{
return;
}
shape_.push_back(dim);
}
break;
}
}
}
};
}}
#endif
| 66,054 | 18,261 |
#include<iostream>
#include"node.h"
int main()
{
node<int> mynode1(10);
node<int> mynode2 (20);
std::cout << mynode1.get_data() << "," << mynode2.get_data() << std::endl;
if (mynode1==mynode2){
std::cout << "EQUAL" << std::endl;
}
else{
std::cout << "NOT EQUAL" << std::endl;
}
std::cout << "mynode1: " << mynode1 << std::endl;
// The data attribute is deep copied as it is defined in the stack at compile time.
node<int> mynode3(30);
std::cout << "mynode3: " << mynode3 << std::endl;
mynode3 = mynode1;
std::cout << "mynode3: " << mynode3 << std::endl;
mynode3.set_data(50);
std::cout << "mynode3: " << mynode3 << std::endl;
std::cout << "mynode1: " << mynode1 << std::endl;
// Need to show that the pointers left, right would not be deep copied as they would be defined in the heap.
std::cout << "Done" << std::endl;
} | 923 | 350 |
#include "DAINO.h"
//-------------------------------------------------------------------------------------------------------
// Function : Output_Flux
// Description : Output the flux of a single patch
//
// Parameter : lv : Targeted refinement level
// PID : Targeted patch ID
// Sib : Targeted sibling direction of the flux : ( 0,1,2,3,4,5 ) <--> ( -x,+x,-y,+y,-z,+z )
// comment : String to attach to the end of the file name
//-------------------------------------------------------------------------------------------------------
void Output_Flux( const int lv, const int PID, const int Sib, const char *comment )
{
// check
if ( lv < 0 || lv >= NLEVEL )
Aux_Error( ERROR_INFO, "incorrect parameter %s = %d !!\n", "lv", lv );
if ( PID < 0 || PID >= MAX_PATCH )
Aux_Error( ERROR_INFO, "incorrect parameter %s = %d (MAX_PATCH = %d) !!\n", "PID", PID, MAX_PATCH );
if ( !patch->WithFlux )
Aux_Message( stderr, "WARNING : invoking %s is useless since no flux is required !!\n", __FUNCTION__ );
if ( patch->ptr[0][lv][PID] == NULL )
{
Aux_Message( stderr, "WARNING : level = %d, PID = %d does NOT exist !!\n", lv, PID );
return;
}
patch_t *Relation = patch->ptr[0][lv][PID];
char FileName[100];
sprintf( FileName, "Flux_r%d_lv%d_p%d%c%c", DAINO_RANK, lv, PID, 45-2*(Sib%2), 120+Sib/2 );
if ( comment != NULL )
{
strcat( FileName, "_" );
strcat( FileName, comment );
}
FILE *File_Check = fopen( FileName, "r" );
if ( File_Check != NULL )
{
Aux_Message( stderr, "WARNING : the file \"%s\" already exists and will be overwritten !!\n", FileName );
fclose( File_Check );
}
real (*FluxPtr)[PATCH_SIZE][PATCH_SIZE] = patch->ptr[0][lv][PID]->flux[Sib];
char label[2] = { '?', '?' };
switch ( Sib )
{
case 0: case 1: label[0] = 'y'; label[1] = 'z'; break;
case 2: case 3: label[0] = 'z'; label[1] = 'x'; break;
case 4: case 5: label[0] = 'x'; label[1] = 'y'; break;
default:
Aux_Error( ERROR_INFO, "incorrect parameter %s = %d !!\n", "Sib", Sib );
}
// output header
FILE *File = fopen( FileName, "w" );
fprintf( File, "Rank %d Level %d Patch %d Local ID %d Time %13.7e Counter %u\n",
DAINO_RANK, lv, PID, PID%8, Time[lv], AdvanceCounter[lv] );
fprintf( File, "Father %d Son %d Corner (%4d,%4d,%4d)\n\n", Relation->father, Relation->son,
Relation->corner[0], Relation->corner[1], Relation->corner[2] );
fprintf( File, "Flux at %c%c surface\n\n", 45-2*(Sib%2), 120+Sib/2 );
// output flux
if ( FluxPtr != NULL )
{
# if ( MODEL == HYDRO )
fprintf( File, "( %c, %c )%16s%16s%16s%16s%16s\n", label[0], label[1], "Density Flux", "Px Flux",
"Py Flux", "Pz Flux", "Energy Flux" );
# elif ( MODEL == MHD )
# warning : WAIT MHD !!!
# elif ( MODEL != ELBDM )
# warning : WARNING : DO YOU WANT TO ADD the FILE HEADER HERE FOR THE NEW MODEL ??
# endif // MODEL
for (int m=0; m<PATCH_SIZE; m++)
for (int n=0; n<PATCH_SIZE; n++)
{
fprintf( File, "( %d, %d )", n, m );
for (int v=0; v<NCOMP; v++) fprintf( File, " %14.7e", FluxPtr[v][m][n] );
fprintf( File, "\n" );
}
} // if ( FluxPtr != NULL )
else
{
fprintf( File, "\nNULL\n" );
Aux_Message( stderr, "WARNING : lv %d, PID %d, Sib %d, the requested flux does NOT exist !!\n",
lv, PID, Sib );
}
fclose( File );
} // FUNCTION : Output_Flux
| 3,719 | 1,453 |
#pragma once
/* kinfu incldues */
#include <kfusion/cuda/tsdf_volume.hpp>
#include <kfusion/safe_call.hpp>
/* sobfu includes */
#include <sobfu/reductor.hpp>
#include <sobfu/scalar_fields.hpp>
#include <sobfu/vector_fields.hpp>
/*
* SOLVER PARAMETERS
*/
struct SolverParams {
int verbosity, max_iter, s;
float max_update_norm, lambda, alpha, w_reg;
};
/*
* SDF'S USED IN THE SOLVER
*/
struct SDFs {
SDFs(kfusion::device::TsdfVolume &phi_global_, kfusion::device::TsdfVolume &phi_global_psi_inv_,
kfusion::device::TsdfVolume &phi_n_, kfusion::device::TsdfVolume &phi_n_psi_)
: phi_global(phi_global_), phi_global_psi_inv(phi_global_psi_inv_), phi_n(phi_n_), phi_n_psi(phi_n_psi_) {}
kfusion::device::TsdfVolume phi_global, phi_global_psi_inv, phi_n, phi_n_psi;
};
/*
* SPATIAL DIFFERENTIATORS
*/
struct Differentiators {
Differentiators(sobfu::device::TsdfDifferentiator &tsdf_diff_, sobfu::device::Differentiator &diff_,
sobfu::device::Differentiator &diff_inv_,
sobfu::device::SecondOrderDifferentiator &second_order_diff_)
: tsdf_diff(tsdf_diff_), diff(diff_), diff_inv(diff_inv_), second_order_diff(second_order_diff_) {}
sobfu::device::TsdfDifferentiator tsdf_diff;
sobfu::device::Differentiator diff, diff_inv;
sobfu::device::SecondOrderDifferentiator second_order_diff;
};
namespace sobfu {
namespace cuda {
/*
* SOLVER
*/
class Solver {
public:
/* constructor */
Solver(Params ¶ms);
/* destructor */
~Solver();
void estimate_psi(const cv::Ptr<kfusion::cuda::TsdfVolume> phi_global,
cv::Ptr<kfusion::cuda::TsdfVolume> phi_global_psi_inv,
const cv::Ptr<kfusion::cuda::TsdfVolume> phi_n, cv::Ptr<kfusion::cuda::TsdfVolume> phi_n_psi,
std::shared_ptr<sobfu::cuda::DeformationField> psi,
std::shared_ptr<sobfu::cuda::DeformationField> psi_inv);
private:
/* volume params */
int3 dims;
float3 voxel_sizes;
int no_voxels;
float trunc_dist, eta, max_weight;
/* solver params */
SolverParams solver_params;
/* gradients */
sobfu::cuda::SpatialGradients *spatial_grads;
sobfu::device::SpatialGradients *spatial_grads_device;
sobfu::device::TsdfGradient *nabla_phi_n, *nabla_phi_n_o_psi;
sobfu::device::Jacobian *J, *J_inv;
sobfu::device::Laplacian *L, *L_o_psi_inv;
sobfu::device::PotentialGradient *nabla_U, *nabla_U_S;
/* used to calculate value of the energy functional */
sobfu::device::Reductor *r;
/* sobolev filter */
float *h_S_i, *d_S_i;
};
/* get 3d sobolev filter */
static void get_3d_sobolev_filter(SolverParams ¶ms, float *h_S_i);
/* calculate 1d filters from a separable 3d filter */
static void decompose_sobolev_filter(SolverParams ¶ms, float *h_S_i);
} // namespace cuda
namespace device {
/* potential gradient */
__global__ void calculate_potential_gradient_kernel(float2 *phi_n_psi, float2 *phi_global, float4 *nabla_phi_n_o_psi,
float4 *L, float4 *nabla_U, float w_reg, int dim_x, int dim_y,
int dim_z);
void calculate_potential_gradient(kfusion::device::TsdfVolume &phi_n_psi, kfusion::device::TsdfVolume &phi_global,
sobfu::device::TsdfGradient &nabla_phi_n_o_psi, sobfu::device::Laplacian &L,
sobfu::device::PotentialGradient &nabla_U, float w_reg);
/* estimate psi */
void estimate_psi(SDFs &sdfs, sobfu::device::DeformationField &psi, sobfu::device::DeformationField &psi_inv,
sobfu::device::SpatialGradients *spatial_grads, Differentiators &diffs, float *d_S_i,
sobfu::device::Reductor *r, SolverParams ¶ms);
/* DEFORMATION FIELD UPDATES */
__global__ void update_psi_kernel(float4 *psi, float4 *nabla_U_S, float4 *updates, float alpha, int dim_x, int dim_y,
int dim_z);
void update_psi(sobfu::device::DeformationField &psi, sobfu::device::PotentialGradient &nabla_U_S, float4 *updates,
float alpha);
/*
* CONVOLUTIONS
*/
void set_convolution_kernel(float *d_kernel);
__global__ void convolution_rows_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d);
__global__ void convolution_columns_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d);
__global__ void convolution_depth_kernel(float4 *d_dst, float4 *d_src, int image_w, int image_h, int image_d);
void convolution_rows(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d);
void convolution_columns(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d);
void convolution_depth(float4 *d_dst, float4 *updates, int image_w, int image_h, int image_d);
} // namespace device
} // namespace sobfu
| 4,953 | 1,814 |
#pragma once
#include<utility>
namespace pnc {
template <
typename TVectorRef,
typename TVector = std::remove_reference_t<TVectorRef>,
typename TConstant = typename TVector::data_type,
typename TSize = typename TVector::size_type
>
struct Location {
Location(
TVectorRef&& location,
TVectorRef&& gradient,
TConstant cost,
TConstant gamma) :
location(std::forward<TVectorRef>(location)),
gradient(std::forward<TVectorRef>(gradient)),
gamma(gamma),
cost(cost)
{ }
Location(TSize dimension) :
location(dimension),
gradient(dimension),
gamma(0),
cost(0)
{
}
template<typename TVec>
Location(Location<TVec>&& other)
: location(std::move(other.location)),
gradient(std::move(other.gradient)),
cost(cost),
gamma(gamma){}
template<typename TVec>
Location(const Location<TVec>& other)
:
location(other.location),
gradient(other.gradient),
gamma(other.gamma),
cost(other.cost)
{
}
//template<typename TVec>
//Location<TVec>& operator=(const Location<TVec>& other)
//{
// location = other.location;
// gradient = other.gradient;
// gamma = other.gamma;
// cost = other.cost;
// return this;
//}
TVectorRef location;
TVectorRef gradient;
TConstant gamma;
TConstant cost;
};
}
| 1,301 | 524 |
#include "check_adaptation.hpp"
double stan::test::unit::stod(const std::string& val) {
char tmp[val.length()];
strcpy(tmp, val.c_str());
return atof(tmp);
}
void stan::test::unit::check_adaptation(
const size_t& num_params, const std::vector<double>& param_vals,
stan::test::unit::instrumented_writer& report, const double& err_margin) {
std::vector<std::string> param_strings = report.string_values();
size_t offset = 0;
for (size_t i = 0; i < param_strings.size(); i++) {
offset++;
if (param_strings[i].find("lements of inverse mass matrix:")
!= std::string::npos) {
break;
}
}
std::vector<std::string> strs;
boost::split(strs, param_strings[offset], boost::is_any_of(", "),
boost::token_compress_on);
EXPECT_EQ(num_params, strs.size());
for (size_t i = 0; i < num_params; i++) {
ASSERT_NEAR(param_vals[i], test::unit::stod(strs[i]), err_margin);
}
}
void stan::test::unit::check_adaptation(
const size_t& num_rows, const size_t& num_cols,
const std::vector<double>& param_vals,
stan::test::unit::instrumented_writer& report, const double& err_margin) {
std::vector<std::string> param_strings = report.string_values();
size_t offset = 0;
for (size_t i = 0; i < param_strings.size(); i++) {
offset++;
if (param_strings[i].find("lements of inverse mass matrix:")
!= std::string::npos) {
break;
}
}
for (size_t i = 0, ij = 0; i < num_rows; i++) {
std::vector<std::string> strs;
boost::split(strs, param_strings[offset + i], boost::is_any_of(", "),
boost::token_compress_on);
EXPECT_EQ(num_cols, strs.size());
for (size_t j = 0; j < num_cols; j++, ij++) {
ASSERT_NEAR(param_vals[ij], test::unit::stod(strs[j]), err_margin);
}
}
}
void stan::test::unit::check_different(
const size_t& num_params, const std::vector<double>& param_vals,
stan::test::unit::instrumented_writer& report, const double& margin) {
std::vector<std::string> param_strings = report.string_values();
size_t offset = 0;
for (size_t i = 0; i < param_strings.size(); i++) {
offset++;
if (param_strings[i].find("lements of inverse mass matrix:")
!= std::string::npos) {
break;
}
}
std::vector<std::string> strs;
boost::split(strs, param_strings[offset], boost::is_any_of(", "),
boost::token_compress_on);
EXPECT_EQ(num_params, strs.size());
for (size_t i = 0; i < num_params; i++) {
ASSERT_GT(fabs(param_vals[i] - test::unit::stod(strs[i])), margin);
}
}
void stan::test::unit::check_different(
const size_t& num_rows, const size_t& num_cols,
const std::vector<double>& param_vals,
stan::test::unit::instrumented_writer& report, const double& margin) {
std::vector<std::string> param_strings = report.string_values();
size_t offset = 0;
for (size_t i = 0; i < param_strings.size(); i++) {
offset++;
if (param_strings[i].find("lements of inverse mass matrix:")
!= std::string::npos) {
break;
}
}
for (size_t i = 0, ij = 0; i < num_rows; i++) {
std::vector<std::string> strs;
boost::split(strs, param_strings[offset + i], boost::is_any_of(", "),
boost::token_compress_on);
EXPECT_EQ(num_cols, strs.size());
for (size_t j = 0; j < num_cols; j++, ij++) {
ASSERT_GT(fabs(param_vals[ij] - test::unit::stod(strs[j])), margin);
}
}
}
| 3,431 | 1,292 |
/// @ref gtx_normal
namespace args::core::math::detail::glm
{
template<typename T, qualifier Q>
GLM_FUNC_QUALIFIER vec<3, T, Q> triangleNormal
(
vec<3, T, Q> const& p1,
vec<3, T, Q> const& p2,
vec<3, T, Q> const& p3
)
{
return normalize(cross(p1 - p2, p1 - p3));
}
}//namespace args::core::math::detail::glm
| 323 | 153 |
#include "unit_test/UnitTest++.h"
#include "rrLogger.h"
#include "rrRoadRunner.h"
#include "rrException.h"
#include "rrStringUtils.h"
using namespace UnitTest;
using namespace rr;
extern RoadRunner* gRR;
extern string gSBMLModelsPath;
extern string gCompiler;
extern string gSupportCodeFolder;
extern string gTempFolder;
extern vector<string> gModels;
SUITE(Stoichiometric)
{
TEST(AllocateRR)
{
if(!gRR)
{
gRR = new RoadRunner(gCompiler, gTempFolder, gSupportCodeFolder);
}
CHECK(gRR!=NULL);
}
TEST(MODEL_FILES) //Test that model files for the tests are present
{
}
}
| 704 | 233 |
#pragma once
#include <filesystem>
#include <string>
#include <string_view>
enum class LexerState;
enum class TokenType
{
__eof__,
__jam__,
__nothing__,
secondToken,
};
std::string ToString(TokenType type, const std::string& text);
class full
{
public:
full(const std::filesystem::path& path);
size_t PeekLine() const;
TokenType PeekToken() const;
std::string PeekText() const;
void Shift();
private:
std::string m_reference;
std::string_view m_view;
LexerState m_state;
size_t m_line;
TokenType m_type;
std::string m_text;
void ShiftHelper();
}; | 617 | 218 |
/*
Copyright (c) 2011 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
This creates a binary tree topology over a set of n nodes that connect.
*/
#include "config/cli_help_formatter.h"
#include "config/option_builder.h"
#include "config/options_cli.h"
#include "config/option_group_definition.h"
#include "spanning_tree.h"
#include "vw_exception.h"
#ifdef _WIN32
int daemon(int a, int b) { return 0; }
int getpid() { return (int)::GetCurrentProcessId(); }
#endif
#include <iostream>
#include <fstream>
using namespace VW;
void usage(const VW::config::options_cli& desc)
{
std::cout << "usage: spanning_tree [--port,-p number] [--nondaemon] [--help,-h] [pid_file]" << std::endl;
VW::config::cli_help_formatter help_formatter;
std::cout << help_formatter.format_help(desc.get_all_option_group_definitions()) << std::endl;
}
int main(int argc, char* argv[])
{
int port = 26543;
bool nondaemon = false;
bool help = false;
VW::config::options_cli opts(std::vector<std::string>(argv + 1, argv + argc));
VW::config::option_group_definition desc("Spanning Tree");
desc.add(VW::config::make_option("nondaemon", nondaemon).help("Run spanning tree in foreground"))
.add(VW::config::make_option("help", help).short_name("h").help("Print help message"))
.add(VW::config::make_option("port", port)
.short_name("p")
.default_value(26543)
.help("Port number for spanning tree to listen on"));
opts.add_and_parse(desc);
// Return value is ignored as option reachability is not relevant here.
auto warnings = opts.check_unregistered();
_UNUSED(warnings);
auto positional = opts.get_positional_tokens();
std::string pid_file_name;
if (!positional.empty())
{
pid_file_name = positional.front();
if (positional.size() > 1)
{
std::cerr << "Too many positional arguments" << std::endl;
usage(opts);
return 1;
}
}
if (help)
{
usage(opts);
return 0;
}
try
{
if (!nondaemon)
{
VW_WARNING_STATE_PUSH
VW_WARNING_DISABLE_DEPRECATED_USAGE
if (daemon(1, 1)) { THROWERRNO("daemon: "); }
VW_WARNING_STATE_POP
}
SpanningTree spanningTree(port);
if (!pid_file_name.empty())
{
std::ofstream pid_file;
pid_file.open(pid_file_name);
if (!pid_file.is_open())
{
std::cerr << "error writing pid file" << std::endl;
return 1;
}
pid_file << getpid() << std::endl;
pid_file.close();
}
spanningTree.Run();
}
catch (VW::vw_exception& e)
{
std::cerr << "spanning tree (" << e.Filename() << ":" << e.LineNumber() << "): " << e.what() << std::endl;
}
}
| 2,787 | 1,009 |
#include <src/board/board.h>
#include <src/board/i2c/i2c.h>
#include <src/board/i2c/multiplexers/i2c_multiplexer.h>
#include <src/config/satellite.h>
#include <src/sensors/i2c_sensors/rtc.h>
#include <src/util/msp_exception.h>
#include <src/util/runnable_time_source.h>
#include <src/util/satellite_time_source.h>
#include <src/util/tirtos_utils.h>
#include <xdc/runtime/Log.h>
fnptr RunnableTimeSource::GetRunnablePointer() {
return &RunnableTimeSource::UpdateSatelliteTime;
}
void RunnableTimeSource::UpdateSatelliteTime() {
I2c bus(I2C_BUS_A);
I2cMultiplexer multiplexer(&bus, kMuxAddress);
Rtc rtc(&bus, kRtcAddress, &multiplexer, I2cMultiplexer::kMuxChannel0);
while (1) {
try {
RTime time;
try {
time = rtc.GetTime();
} catch (MspException& e) {
MspException::LogException(e, kUpdateSatelliteTimeCatch);
Log_error0("Unable to retrieve time from RTC");
TirtosUtils::SleepMilli(kTimeUpdatePeriodMs);
continue;
}
if (rtc.ValidTime(time)) {
SatelliteTimeSource::SetTime(time);
}
TirtosUtils::SleepMilli(kTimeUpdatePeriodMs);
} catch (MspException& e) {
// TODO(crozone): Temp ugly hack, should be logging top level
// exception here but for some reason the previous catch block is
// not catching the exception properly so instead it is caught here
MspException::LogException(e, kUpdateSatelliteTimeCatch);
Log_error0("Unable to retrieve time from RTC");
TirtosUtils::SleepMilli(kTimeUpdatePeriodMs);
continue;
}
}
}
| 1,735 | 565 |
/*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
Mitsuba is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <mitsuba/bidir/mut_bidir.h>
#include <mitsuba/bidir/mut_lens.h>
#include <mitsuba/bidir/mut_caustic.h>
#include <mitsuba/bidir/mut_mchain.h>
#include <mitsuba/bidir/mut_manifold.h>
#include <mitsuba/bidir/pathsampler.h>
#include <mitsuba/bidir/util.h>
#include <mitsuba/core/sfcurve.h>
#include <boost/bind.hpp>
#include "erpt_proc.h"
//#define MTS_BD_DEBUG_HEAVY
MTS_NAMESPACE_BEGIN
static StatsCounter statsAccepted("Energy redistribution path tracing",
"Accepted mutations", EPercentage);
static StatsCounter statsChainsPerPixel("Energy redistribution path tracing",
"Chains started per pixel", EAverage);
/* ==================================================================== */
/* Worker result implementation */
/* ==================================================================== */
class ERPTWorkResult : public ImageBlock {
public:
Point2i origOffset;
Vector2i origSize;
ERPTWorkResult(const Vector2i &size, const ReconstructionFilter *filter)
: ImageBlock(Bitmap::ESpectrum, size, filter) { }
void load(Stream *stream) {
ImageBlock::load(stream);
origOffset = Point2i(stream);
origSize = Vector2i(stream);
}
void save(Stream *stream) const {
ImageBlock::save(stream);
origOffset.serialize(stream);
origSize.serialize(stream);
}
};
/* ==================================================================== */
/* Worker implementation */
/* ==================================================================== */
class ERPTRenderer : public WorkProcessor {
public:
ERPTRenderer(const ERPTConfiguration &conf)
: m_config(conf) {
}
ERPTRenderer(Stream *stream, InstanceManager *manager)
: WorkProcessor(stream, manager) {
m_config = ERPTConfiguration(stream);
}
void serialize(Stream *stream, InstanceManager *manager) const {
m_config.serialize(stream);
}
ref<WorkUnit> createWorkUnit() const {
return new RectangularWorkUnit();
}
ref<WorkResult> createWorkResult() const {
return new ERPTWorkResult(
m_sensor->getFilm()->getCropSize(),
m_sensor->getFilm()->getReconstructionFilter());
}
void prepare() {
Scene *scene = static_cast<Scene *>(getResource("scene"));
m_scene = new Scene(scene);
m_sampler = static_cast<Sampler *>(getResource("sampler"));
m_indepSampler = static_cast<Sampler *>(getResource("indepSampler"));
m_sensor = static_cast<Sensor *>(getResource("sensor"));
m_scene->removeSensor(scene->getSensor());
m_scene->addSensor(m_sensor);
m_scene->setSensor(m_sensor);
m_scene->setSampler(m_sampler);
m_scene->wakeup(NULL, m_resources);
m_scene->initializeBidirectional();
m_pathSampler = new PathSampler(PathSampler::EBidirectional, m_scene,
m_sampler, m_sampler, m_sampler, m_config.maxDepth, 10,
m_config.separateDirect, true, true);
m_pool = &m_pathSampler->getMemoryPool();
/* Jump sizes recommended by Eric Veach */
Float minJump = 0.1f, coveredArea = 0.05f;
/* Register all available mutators */
if (m_config.bidirectionalMutation)
m_mutators.push_back(new BidirectionalMutator(m_scene, m_indepSampler,
*m_pool, 3, m_config.maxDepth == -1 ? INT_MAX : m_config.maxDepth + 2));
if (m_config.lensPerturbation)
m_mutators.push_back(new LensPerturbation(m_scene, m_indepSampler, *m_pool,
minJump, coveredArea));
if (m_config.multiChainPerturbation)
m_mutators.push_back(new MultiChainPerturbation(m_scene, m_indepSampler, *m_pool,
minJump, coveredArea));
if (m_config.causticPerturbation)
m_mutators.push_back(new CausticPerturbation(m_scene, m_indepSampler, *m_pool,
minJump, coveredArea));
if (m_config.manifoldPerturbation)
m_mutators.push_back(new ManifoldPerturbation(m_scene, m_indepSampler, *m_pool,
m_config.probFactor, true, true,
m_config.avgAngleChangeSurface,
m_config.avgAngleChangeMedium));
if (m_mutators.size() == 0)
Log(EError, "There must be at least one mutator!");
}
void pathCallback(int s, int t, Float weight, Path &path, const bool *stop) {
if (std::isnan(weight) || std::isinf(weight) || weight < 0)
Log(EWarn, "Invalid path weight: %f, ignoring path!", weight);
#if 0
/* Don't run ERPT on paths that start with two diffuse vertices. It's
usually safe to assume that these are handled well enough by BDPT */
int k = path.length();
if (path.vertex(k-2)->isDiffuseInteraction() && path.vertex(k-3)->isDiffuseInteraction()) {
Spectrum value = path.getRelativeWeight() * weight / m_sampler->getSampleCount();
m_result->put(path.getSamplePosition(), &value[0]);
return;
}
#endif
Float meanChains = m_config.numChains * weight
/ (m_config.luminance * m_sampler->getSampleCount());
/* Optional: do not launch too many chains if this is desired by the user */
if (m_config.maxChains > 0 && meanChains > m_config.maxChains)
meanChains = std::min(meanChains, (Float) m_config.maxChains);
/* Decide the actual number of chains that will be launched, as well
as their deposition energy */
int numChains = (int) std::floor(m_indepSampler->next1D() + meanChains);
if (numChains == 0)
return;
Float depositionEnergy = weight / (m_sampler->getSampleCount()
* meanChains * m_config.chainLength);
DiscreteDistribution suitabilities(m_mutators.size());
std::ostringstream oss;
Spectrum relWeight(0.0f);
Float accumulatedWeight = 0;
MutationRecord muRec, currentMuRec(Mutator::EMutationTypeCount, 0, 0, 0, Spectrum(0.f));
Path *current = new Path(),
*proposed = new Path();
size_t mutations = 0;
#if defined(MTS_BD_DEBUG_HEAVY)
if (!path.verify(m_scene, EImportance, oss))
Log(EError, "Started ERPT with an invalid path: %s", oss.str().c_str());
#endif
for (int chain=0; chain<numChains && !*stop; ++chain) {
relWeight = path.getRelativeWeight();
path.clone(*current, *m_pool);
accumulatedWeight = 0;
++statsChainsPerPixel;
for (size_t it=0; it<m_config.chainLength; ++it) {
/* Query all mutators for their suitability */
suitabilities.clear();
for (size_t j=0; j<m_mutators.size(); ++j)
suitabilities.append(m_mutators[j]->suitability(*current));
/* Pick a mutator according to the suitabilities */
int mutatorIdx = -1;
bool success = false;
Mutator *mutator = NULL;
if (suitabilities.normalize() == 0) {
/* No mutator can handle this path -- give up */
accumulatedWeight += m_config.chainLength - it;
break;
}
mutatorIdx = (int) suitabilities.sample(m_indepSampler->next1D());
mutator = m_mutators[mutatorIdx].get();
/* Sample a mutated path */
success = mutator->sampleMutation(*current, *proposed, muRec, currentMuRec);
statsAccepted.incrementBase(1);
if (success) {
Float Qxy = mutator->Q(*current, *proposed, muRec) * suitabilities[mutatorIdx];
suitabilities.clear();
for (size_t j=0; j<m_mutators.size(); ++j)
suitabilities.append(m_mutators[j]->suitability(*proposed));
suitabilities.normalize();
Float Qyx = mutator->Q(*proposed, *current, muRec.reverse()) * suitabilities[mutatorIdx];
Float a = std::min((Float) 1, Qyx / Qxy);
#if defined(MTS_BD_DEBUG_HEAVY)
if (!proposed->verify(m_scene, EImportance, oss)) {
Log(EWarn, "%s proposed as %s, Qxy=%f, Qyx=%f", oss.str().c_str(),
muRec.toString().c_str(), Qxy, Qyx);
Log(EWarn, "Original path: %s", current->toString().c_str());
proposed->release(muRec.l, muRec.l + muRec.ka + 1, *m_pool);
oss.str("");
continue;
}
#endif
if (Qxy == 0) { // be tolerant of this (can occasionally happen due to floating point inaccuracies)
a = 0;
} else if (Qxy < 0 || Qyx < 0 || std::isnan(Qxy) || std::isnan(Qyx)) {
#if defined(MTS_BD_DEBUG)
Log(EDebug, "Source path: %s", current->toString().c_str());
Log(EDebug, "Proposal path: %s", proposed->toString().c_str());
Log(EWarn, "Internal error while computing acceptance probabilities: "
"Qxy=%f, Qyx=%f, muRec=%s", Qxy, Qyx, muRec.toString().c_str());
#endif
a = 0;
}
accumulatedWeight += 1-a;
/* Accept with probability 'a' */
if (a == 1 || m_indepSampler->next1D() < a) {
Spectrum value = relWeight * (accumulatedWeight * depositionEnergy);
m_result->put(current->getSamplePosition(), &value[0]);
/* The mutation was accepted */
current->release(muRec.l, muRec.m+1, *m_pool);
std::swap(current, proposed);
relWeight = current->getRelativeWeight();
mutator->accept(muRec);
currentMuRec = muRec;
accumulatedWeight = a;
++statsAccepted;
++mutations;
} else {
if (a > 0) {
Spectrum value = proposed->getRelativeWeight() * (a * depositionEnergy);
m_result->put(proposed->getSamplePosition(), &value[0]);
}
/* The mutation was rejected */
proposed->release(muRec.l, muRec.l + muRec.ka + 1, *m_pool);
}
} else {
accumulatedWeight += 1;
}
}
if (accumulatedWeight > 0) {
Spectrum value = relWeight * (accumulatedWeight * depositionEnergy);
m_result->put(current->getSamplePosition(), &value[0]);
}
current->release(*m_pool);
}
/*if (mutations == 0) {
cout << "Path was never mutated: " << path.summarize() << endl;
cout << path.toString() << endl;
}*/
delete current;
delete proposed;
}
void process(const WorkUnit *workUnit, WorkResult *workResult, const bool &stop) {
const RectangularWorkUnit *rect = static_cast<const RectangularWorkUnit *>(workUnit);
m_result = static_cast<ERPTWorkResult *>(workResult);
m_result->origOffset = rect->getOffset();
m_result->origSize = rect->getSize();
m_hilbertCurve.initialize(TVector2<uint8_t>(rect->getSize()));
m_result->clear();
boost::function<void (int, int, Float, Path &)> callback
= boost::bind(&ERPTRenderer::pathCallback, this, _1, _2, _3, _4, &stop);
for (size_t i=0; i<m_hilbertCurve.getPointCount(); ++i) {
if (stop)
break;
statsChainsPerPixel.incrementBase();
Point2i offset = Point2i(m_hilbertCurve[i]) + Vector2i(rect->getOffset());
m_sampler->generate(offset);
for (size_t j = 0; j<m_sampler->getSampleCount(); j++) {
m_pathSampler->samplePaths(offset, callback);
m_sampler->advance();
}
}
if (!m_pool->unused())
Log(EError, "Internal error: detected a memory pool leak!");
m_result = NULL;
}
ref<WorkProcessor> clone() const {
return new ERPTRenderer(m_config);
}
MTS_DECLARE_CLASS()
private:
ERPTConfiguration m_config;
ref<Sensor> m_sensor;
ref<Scene> m_scene;
ref<Sampler> m_sampler, m_indepSampler;
ref<PathSampler> m_pathSampler;
ref_vector<Mutator> m_mutators;
HilbertCurve2D<uint8_t> m_hilbertCurve;
ERPTWorkResult *m_result;
MemoryPool *m_pool;
};
/* ==================================================================== */
/* Parallel process */
/* ==================================================================== */
ERPTProcess::ERPTProcess(const RenderJob *job, RenderQueue *queue,
const ERPTConfiguration &conf, const Bitmap *directImage)
: BlockedRenderProcess(job, queue, conf.blockSize), m_job(job), m_config(conf) {
m_directImage = directImage;
}
ref<WorkProcessor> ERPTProcess::createWorkProcessor() const {
return new ERPTRenderer(m_config);
}
void ERPTProcess::develop() {
LockGuard lock(m_resultMutex);
m_film->setBitmap(m_accum->getBitmap());
if (m_directImage)
m_film->addBitmap(m_directImage);
m_queue->signalRefresh(m_job);
}
void ERPTProcess::processResult(const WorkResult *wr, bool cancelled) {
const ERPTWorkResult *result = static_cast<const ERPTWorkResult *>(wr);
UniqueLock lock(m_resultMutex);
m_progress->update(++m_resultCount);
m_accum->put(result);
develop();
lock.unlock();
m_queue->signalWorkCanceled(m_parent, result->origOffset, result->origSize);
}
void ERPTProcess::bindResource(const std::string &name, int id) {
BlockedRenderProcess::bindResource(name, id);
if (name == "sensor") {
Film *film = static_cast<Sensor *>(Scheduler::getInstance()->getResource(id))->getFilm();
m_accum = new ImageBlock(Bitmap::ESpectrum, film->getCropSize());
m_accum->clear();
}
}
MTS_IMPLEMENT_CLASS_S(ERPTRenderer, false, WorkProcessor)
MTS_IMPLEMENT_CLASS(ERPTProcess, false, BlockedRenderProcess)
MTS_NAMESPACE_END
| 15,463 | 4,640 |
#pragma once
#include "../../JObject.hpp"
namespace android::app
{
class Activity;
}
namespace android::content
{
class Intent;
}
namespace android::os
{
class Bundle;
}
namespace android::view
{
class Window;
}
class JString;
namespace android::app
{
class LocalActivityManager : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit LocalActivityManager(const char *className, const char *sig, Ts...agv) : JObject(className, sig, std::forward<Ts>(agv)...) {}
LocalActivityManager(QJniObject obj);
// Constructors
LocalActivityManager(android::app::Activity arg0, jboolean arg1);
// Methods
android::view::Window destroyActivity(JString arg0, jboolean arg1) const;
void dispatchCreate(android::os::Bundle arg0) const;
void dispatchDestroy(jboolean arg0) const;
void dispatchPause(jboolean arg0) const;
void dispatchResume() const;
void dispatchStop() const;
android::app::Activity getActivity(JString arg0) const;
android::app::Activity getCurrentActivity() const;
JString getCurrentId() const;
void removeAllActivities() const;
android::os::Bundle saveInstanceState() const;
android::view::Window startActivity(JString arg0, android::content::Intent arg1) const;
};
} // namespace android::app
| 1,292 | 417 |
//
// Created by JJJai on 12/18/2021.
//
#include <iostream>
#include <utilities/assert.h>
#include "shader_library.h"
std::shared_ptr<scratch::Shader>
scratch::ShaderLibrary::addShader(const std::string &name, const std::string &vertexPath, const std::string &fragPath) {
std::cout << "Loading Shader: " << name << std::endl;
XXH64_hash_t hash = XXH64(name.c_str(), name.length(), HASH_SEED);
std::cout << "Generated Hash:" << std::to_string(hash) << std::endl;
std::shared_ptr<scratch::Shader> shader = std::make_shared<scratch::Shader>(hash, name, vertexPath,
fragPath);
if (loadedShaders.find(hash) != loadedShaders.end()) {
std::cout << "Warning: Shader already loaded, replacing..." << std::to_string(hash) << std::endl;
}
loadedShaders.insert({hash, shader});
return shader;
}
std::shared_ptr<scratch::Shader> scratch::ShaderLibrary::findShader(const std::string &name) {
std::cout << "Looking Up Shader: " << name << std::endl;
XXH64_hash_t hash = XXH64(name.c_str(), name.length(), HASH_SEED);
std::cout << "Generated Hash:" << std::to_string(hash) << std::endl;
if (loadedShaders.find(hash) != loadedShaders.end()) {
return loadedShaders[hash];
} else {
SCRATCH_ASSERT_NEVER("Could not find shader: " + name);
}
}
void scratch::ShaderLibrary::reloadAllShaders() {
for (auto pair: loadedShaders) {
pair.second->reload();
}
}
| 1,514 | 514 |
// Copyright 1996-2018 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include "WbSpeaker.hpp"
#include "WbNodeUtilities.hpp"
#include "WbProtoList.hpp"
#include "WbProtoModel.hpp"
#include "WbRobot.hpp"
#include "WbSimulationState.hpp"
#include "WbSoundClip.hpp"
#include "WbSoundEngine.hpp"
#include "WbSoundSource.hpp"
#include "../../lib/Controller/api/messages.h"
#include <QtCore/QDataStream>
#include <QtCore/QDir>
#include <cassert>
#define TEXT_TO_SPEECH_KEY "WB_TEXT_TO_SPEECH"
void WbSpeaker::init() {
mControllerDir = "";
mSoundSourcesMap.clear();
mPlayingSoundSourcesMap.clear();
mEngine = QString("pico");
mLanguage = QString("en-US");
}
WbSpeaker::WbSpeaker(WbTokenizer *tokenizer) : WbSolidDevice("Speaker", tokenizer) {
init();
}
WbSpeaker::WbSpeaker(const WbSpeaker &other) : WbSolidDevice(other) {
init();
}
WbSpeaker::WbSpeaker(const WbNode &other) : WbSolidDevice(other) {
init();
}
WbSpeaker::~WbSpeaker() {
foreach (WbSoundSource *source, mSoundSourcesMap) {
if (source)
WbSoundEngine::deleteSource(source);
}
mSoundSourcesMap.clear();
mPlayingSoundSourcesMap.clear();
}
void WbSpeaker::postFinalize() {
WbSolidDevice::postFinalize();
WbRobot *robot = const_cast<WbRobot *>(static_cast<const WbRobot *>(WbNodeUtilities::findTopNode(this)));
if (robot)
mControllerDir = robot->controllerDir();
}
void WbSpeaker::handleMessage(QDataStream &stream) {
unsigned char command;
stream >> (unsigned char &)command;
switch (command) {
case C_SPEAKER_PLAY_SOUND: {
int numberOfSound;
stream >> (int &)numberOfSound;
for (int i = 0; i < numberOfSound; ++i) {
short size;
short side;
double volume;
double pitch;
double balance;
unsigned char loop;
stream >> (short &)size;
char soundFile[size];
stream.readRawData(soundFile, size);
stream >> (double &)volume;
stream >> (double &)pitch;
stream >> (double &)balance;
stream >> (short &)side;
stream >> (unsigned char &)loop;
playSound(soundFile, volume, pitch, balance, (bool)loop, (int)side);
}
return;
}
case C_SPEAKER_STOP: {
short numberOfSound;
stream >> (short &)numberOfSound;
if (numberOfSound == 0)
stopAll();
else {
for (int i = 0; i < numberOfSound; ++i) {
short size;
stream >> (short &)size;
char sound[size];
stream.readRawData(sound, size);
stop(sound);
}
}
return;
}
case C_SPEAKER_SET_ENGINE: {
short size;
stream >> (short &)size;
char engine[size];
stream.readRawData(engine, size);
mEngine = QString(engine);
return;
}
case C_SPEAKER_SET_LANGUAGE: {
short size;
stream >> (short &)size;
char language[size];
stream.readRawData(language, size);
mLanguage = QString(language);
return;
}
case C_SPEAKER_SPEAK: {
short size;
double volume;
stream >> (short &)size;
char text[size];
stream.readRawData(text, size);
stream >> (double &)volume;
playText(text, volume);
return;
}
default:
assert(0);
}
}
void WbSpeaker::writeAnswer(QDataStream &stream) {
foreach (const WbSoundSource *source, mPlayingSoundSourcesMap) {
if (!source->isPlaying()) {
if (mPlayingSoundSourcesMap.key(source) == TEXT_TO_SPEECH_KEY) {
stream << (short unsigned int)tag();
stream << (unsigned char)C_SPEAKER_SPEAK_OVER;
} else {
stream << (short unsigned int)tag();
stream << (unsigned char)C_SPEAKER_SOUND_OVER;
const QByteArray name = mPlayingSoundSourcesMap.key(source).toUtf8();
stream.writeRawData(name.constData(), name.size() + 1);
}
mPlayingSoundSourcesMap.remove(mPlayingSoundSourcesMap.key(source));
}
}
}
void WbSpeaker::postPhysicsStep() {
WbSolidDevice::postPhysicsStep();
foreach (WbSoundSource *source, mSoundSourcesMap) {
if (source)
updateSoundSource(source);
}
}
void WbSpeaker::playText(const char *text, double volume) {
if (!mSoundSourcesMap.contains(TEXT_TO_SPEECH_KEY)) { // text-to-speech was never used
WbSoundSource *source = WbSoundEngine::createSource();
updateSoundSource(source);
mSoundSourcesMap[TEXT_TO_SPEECH_KEY] = source;
}
WbSoundSource *source = mSoundSourcesMap.value(TEXT_TO_SPEECH_KEY, NULL);
if (source) {
source->stop();
// cd to the controller directory (because some tags in the text
// may refeer to file relatively to the controller)
QDir initialDir = QDir::current();
if (!QDir::setCurrent(mControllerDir))
this->warn(tr("Cannot change directory to: '%1'").arg(mControllerDir));
WbSoundClip *soundClip = WbSoundEngine::soundFromText(text, mEngine, mLanguage);
QDir::setCurrent(initialDir.path());
if (soundClip) {
source->setSoundClip(soundClip);
source->play();
source->setGain(volume);
mPlayingSoundSourcesMap[TEXT_TO_SPEECH_KEY] = source;
}
}
}
void WbSpeaker::playSound(const char *file, double volume, double pitch, double balance, bool loop, int side) {
QString filename = QString(file);
QString key = filename;
if (side == -1)
key += "_left";
else if (side == 1)
key += "_right";
if (!mSoundSourcesMap.contains(key)) { // this sound was never played
QString path = "";
if (QFile::exists(mControllerDir + filename)) // check if path is relative to the controller
path = mControllerDir;
else { // check if path is relative to the PROTO (or any ancestor PROTO)
WbRobot *robot = const_cast<WbRobot *>(static_cast<const WbRobot *>(WbNodeUtilities::findTopNode(this)));
if (robot && robot->isProtoInstance()) {
WbProtoModel *protoModel = robot->proto();
do {
if (!protoModel->path().isEmpty()) {
path = protoModel->path();
if (QFile::exists(path + filename))
break;
}
protoModel = WbProtoList::current()->findModel(protoModel->ancestorProtoName(), "");
} while (protoModel);
}
}
if (!QFile::exists(path + filename)) { // sound file not found relatively to the PROTOs or controller
if (!QFile::exists(filename)) { // check if path is absolute
this->warn(tr("Sound file '%1' not found. The sound file should be defined relatively to the controller, the PROTO or "
"absolutely.\n")
.arg(filename));
return;
}
path = "";
}
WbSoundSource *source = WbSoundEngine::createSource();
updateSoundSource(source);
// cd to the path directory if required
QDir initialDir = QDir::current();
if (!path.isEmpty()) {
if (!QDir::setCurrent(path))
this->warn(tr("Cannot change directory to: '%1'").arg(path));
}
WbSoundClip *soundClip = WbSoundEngine::sound(filename, balance, side);
if (!path.isEmpty())
QDir::setCurrent(initialDir.path());
if (!soundClip) {
this->warn(tr("Impossible to play '%1'. Make sure the file format is supported (8 or 16 bits, mono or stereo wave).\n")
.arg(filename));
return;
}
source->setSoundClip(soundClip);
source->play();
mSoundSourcesMap[key] = source;
}
WbSoundSource *source = mSoundSourcesMap.value(key, NULL);
if (source) {
mPlayingSoundSourcesMap[key] = source;
if (!source->isPlaying()) // this sound was already played but is over
source->play();
source->setLooping(loop);
source->setGain(volume);
source->setPitch(pitch);
if (WbSimulationState::instance()->isPaused() || WbSimulationState::instance()->isStep())
source->pause();
}
}
void WbSpeaker::stop(const char *sound) {
QString key = QString(sound);
WbSoundSource *source = mSoundSourcesMap.value(key, NULL);
if (!source) {
key = QString(sound) + "_left";
source = mSoundSourcesMap.value(key, NULL);
}
if (!source) {
key = QString(sound) + "_right";
source = mSoundSourcesMap.value(key, NULL);
}
if (source) {
source->stop();
WbSoundEngine::deleteSource(source);
mSoundSourcesMap.remove(key);
}
mPlayingSoundSourcesMap.remove(key);
}
void WbSpeaker::stopAll() {
foreach (WbSoundSource *source, mSoundSourcesMap) {
if (source) {
source->stop();
WbSoundEngine::deleteSource(source);
}
}
mSoundSourcesMap.clear();
mPlayingSoundSourcesMap.clear();
}
void WbSpeaker::updateSoundSource(WbSoundSource *source) {
source->setPosition(position());
source->setVelocity(linearVelocity());
source->setDirection(rotationMatrix() * WbVector3(0, 1, 0));
}
| 9,312 | 3,095 |
#include <utt/Configuration.h>
#include <utt/IBE.h>
#include <xassert/XAssert.h>
#include <xutils/Log.h>
#include <xutils/Utils.h>
using namespace std;
using namespace libutt;
int main(int argc, char *argv[]) {
libutt::initialize(nullptr, 0);
//srand(static_cast<unsigned int>(time(NULL)));
(void)argc;
(void)argv;
IBE::Params p = IBE::Params::random();
IBE::MSK msk = IBE::MSK::random();
IBE::MPK mpk = msk.toMPK(p);
std::string pid = "testuser@testdomain.com";
IBE::EncSK encsk = msk.deriveEncSK(p, pid);
// test EncSK serializes well
std::stringstream ss;
ss << encsk;
IBE::EncSK sameEncSK;
ss >> sameEncSK;
testAssertEqual(encsk, sameEncSK);
Fr v = Fr::random_element();
Fr r_1 = Fr::random_element();
Fr r_2 = Fr::random_element();
logdbg << "v init: " << v << endl;
logdbg << "r_1 init: " << r_1 << endl;
logdbg << "r_2 init: " << r_2 << endl;
IBE::Ctxt ctxt = mpk.encrypt(pid, frsToBytes({ v, r_1, r_2 })), sameCtxt;
ss << ctxt;
ss >> sameCtxt;
testAssertEqual(ctxt, sameCtxt);
Fr samev = Fr::random_element(),
samer_1 = Fr::random_element(),
samer_2 = Fr::random_element();
bool success;
AutoBuf<unsigned char> ptxt;
std::tie(success, ptxt) = encsk.decrypt(ctxt);
testAssertTrue(success);
auto vec = bytesToFrs(ptxt);
samev = vec[0];
samer_1 = vec[1];
samer_2 = vec[2];
logdbg << "v decr: " << samev << endl;
logdbg << "r_1 decr: " << samer_1 << endl;
logdbg << "r_2 decr: " << samer_2 << endl;
testAssertEqual(r_2, samer_2);
testAssertEqual(r_1, samer_1);
testAssertEqual(v, samev);
// Test (in)equality
auto ctxtCopy = ctxt;
testAssertEqual(ctxt, ctxtCopy);
testAssertNotEqual(ctxt, mpk.encrypt(pid, frsToBytes({ Fr::random_element(), Fr::random_element(), Fr::random_element() })));
loginfo << "All is well." << endl;
return 0;
}
| 1,972 | 781 |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following
* disclaimer.
*
* (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the distribution.
*
* (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote products
* derived from this software without specific prior written permission from the respective party.
*
* (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative works
* may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without specific prior
* written permission from Alliance for Sustainable Energy, LLC.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED
* STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
***********************************************************************************************************************/
#include <string>
#include <memory>
#include "AdditionalProperties.hpp"
#include "AdditionalProperties_Impl.hpp"
#include "Model.hpp"
#include "Model_Impl.hpp"
#include "ModelObject.hpp"
#include "ModelObject_Impl.hpp"
#include "ModelExtensibleGroup.hpp"
#include "ResourceObject.hpp"
#include <utilities/idd/OS_AdditionalProperties_FieldEnums.hxx>
#include <utilities/idd/IddEnums.hxx>
#include <utilities/idd/IddFactory.hxx>
namespace openstudio {
namespace model {
namespace detail {
AdditionalProperties_Impl::AdditionalProperties_Impl(const IdfObject &idfObject, Model_Impl *model, bool keepHandle)
: ModelObject_Impl(idfObject, model, keepHandle)
{
OS_ASSERT(idfObject.iddObject().type() == AdditionalProperties::iddObjectType());
}
AdditionalProperties_Impl::AdditionalProperties_Impl(const openstudio::detail::WorkspaceObject_Impl &other,
Model_Impl *model,
bool keepHandle)
: ModelObject_Impl(other, model, keepHandle)
{
OS_ASSERT(other.iddObject().type() == AdditionalProperties::iddObjectType());
}
AdditionalProperties_Impl::AdditionalProperties_Impl(const AdditionalProperties_Impl &other,
Model_Impl *model,
bool keepHandle)
: ModelObject_Impl(other, model, keepHandle)
{}
ModelObject AdditionalProperties_Impl::modelObject() const {
boost::optional<ModelObject> result = getObject<AdditionalProperties>().getModelObjectTarget<ModelObject>(
OS_AdditionalPropertiesFields::ObjectName);
if (!result){
// DLM: should we remove ourself? probably worse to do that since user may call other methods and cause a crash
//this->remove();
LOG_AND_THROW("Cannot retrieve associated ModelObject");
}
OS_ASSERT(result);
return *result;
}
const std::vector<std::string>& AdditionalProperties_Impl::outputVariableNames() const
{
static const std::vector<std::string> result;
return result;
}
IddObjectType AdditionalProperties_Impl::iddObjectType() const
{
return AdditionalProperties::iddObjectType();
}
boost::optional<ParentObject> AdditionalProperties_Impl::parent() const
{
// DLM: should this return the model object? no because model object is not a parent object.
return boost::optional<ParentObject>();
}
bool AdditionalProperties_Impl::setParent(ParentObject& newParent)
{
// DLM: should we allow this? no because model object is not a parent object.
return false;
}
std::vector<ResourceObject> AdditionalProperties_Impl::resources() const
{
return std::vector<ResourceObject>();
}
std::vector<std::string> AdditionalProperties_Impl::featureNames() const
{
std::set<std::string> nameSet;
for (const ModelExtensibleGroup& group : castVector<ModelExtensibleGroup>(extensibleGroups())) {
boost::optional<std::string> name = group.getString(OS_AdditionalPropertiesExtensibleFields::FeatureName);
OS_ASSERT(name);
nameSet.insert(*name);
}
std::vector<std::string> names;
names.assign(nameSet.begin(), nameSet.end());
return names;
}
boost::optional<ModelExtensibleGroup> AdditionalProperties_Impl::getFeatureGroupByName(const std::string &name) const {
for (ModelExtensibleGroup& group : castVector<ModelExtensibleGroup>(extensibleGroups())) {
const boost::optional<std::string> featureName(group.getString(OS_AdditionalPropertiesExtensibleFields::FeatureName));
OS_ASSERT(featureName);
if (*featureName == name) {
return group;
}
}
return boost::none;
}
bool AdditionalProperties_Impl::hasFeature(const std::string &name) const
{
return getFeatureGroupByName(name).has_value();
}
boost::optional<std::string> AdditionalProperties_Impl::getFeatureDataType(const std::string &name) const
{
boost::optional<std::string> dataType;
boost::optional<ModelExtensibleGroup> group(getFeatureGroupByName(name));
if (group) {
dataType = group->getString(OS_AdditionalPropertiesExtensibleFields::FeatureDataType);
OS_ASSERT(dataType);
} else {
dataType = boost::none;
}
return dataType;
}
boost::optional<std::string> AdditionalProperties_Impl::getFeatureStringAndCheckForType(const std::string& name, const std::string& expectedDataType) const
{
boost::optional<std::string> value;
boost::optional<ModelExtensibleGroup> group(getFeatureGroupByName(name));
if (group) {
boost::optional<std::string> dataType(group->getString(OS_AdditionalPropertiesExtensibleFields::FeatureDataType));
OS_ASSERT(dataType);
if (*dataType == expectedDataType) {
value = group->getString(OS_AdditionalPropertiesExtensibleFields::FeatureValue);
} else {
value = boost::none;
}
} else {
value = boost::none;
}
return value;
}
boost::optional<std::string> AdditionalProperties_Impl::getFeatureAsString(const std::string& name) const
{
return getFeatureStringAndCheckForType(name, "String");
}
boost::optional<double> AdditionalProperties_Impl::getFeatureAsDouble(const std::string& name) const
{
boost::optional<std::string> strValue(getFeatureStringAndCheckForType(name, "Double"));
boost::optional<double> value;
if (strValue) {
try {
value = boost::lexical_cast<double>(*strValue);
} catch (boost::bad_lexical_cast) {
LOG(Error, "Value: " + *strValue + ", not castable to type double.")
value = boost::none;
}
} else {
value = boost::none;
}
return value;
}
boost::optional<int> AdditionalProperties_Impl::getFeatureAsInteger(const std::string& name) const
{
boost::optional<std::string> strValue(getFeatureStringAndCheckForType(name, "Integer"));
boost::optional<int> value;
if (strValue) {
try {
value = boost::lexical_cast<int>(*strValue);
} catch (boost::bad_lexical_cast) {
LOG(Error, "Value: " + *strValue + ", not castable to type integer.")
value = boost::none;
}
} else {
value = boost::none;
}
return value;
}
boost::optional<bool> AdditionalProperties_Impl::getFeatureAsBoolean(const std::string& name) const
{
boost::optional<std::string> strValue(getFeatureStringAndCheckForType(name, "Boolean"));
boost::optional<bool> value;
if (strValue) {
if (*strValue == "false") {
value = false;
} else if (*strValue == "true") {
value = true;
} else {
LOG(Error, "Value: " + *strValue + ", not castable to type boolean.")
value = boost::none;
}
} else {
value = boost::none;
}
return value;
}
std::vector<std::string> AdditionalProperties_Impl::suggestedFeatureNames() const
{
std::set<std::string> availableFeatureNames;
// DLM: this should be based on the model object type right?
// DLM: should we create a virtual method for all model objects similar to outputVariableNames
// DLM: long term, this should pull from a list that can be updated at run time, possibly related to OpenStudio standards
for (const AdditionalProperties& addlProps : this->model().getConcreteModelObjects<AdditionalProperties>()) {
for (const std::string& featureName : addlProps.featureNames()) {
availableFeatureNames.insert(featureName);
}
}
std::vector<std::string> retvals;
retvals.assign(availableFeatureNames.begin(), availableFeatureNames.end());
return retvals;
}
bool AdditionalProperties_Impl::setFeatureGroupDataTypeAndValue(const std::string& name, const std::string& dataType, const std::string& value)
{
boost::optional<ModelExtensibleGroup> group(getFeatureGroupByName(name));
if (group) {
const bool dataTypeOK = group->setString(OS_AdditionalPropertiesExtensibleFields::FeatureDataType, dataType, false);
const bool valueOK = group->setString(OS_AdditionalPropertiesExtensibleFields::FeatureValue, value, false);
// Since we're doing this checking in the public setters, these should always return true.
OS_ASSERT(dataTypeOK);
OS_ASSERT(valueOK);
this->emitChangeSignals();
return true;
} else {
std::vector<std::string> temp;
temp.push_back(name);
temp.push_back(dataType);
temp.push_back(value);
ModelExtensibleGroup newgroup = pushExtensibleGroup(temp).cast<ModelExtensibleGroup>();
return (!newgroup.empty());
}
}
bool AdditionalProperties_Impl::setFeature(const std::string& name, const std::string& value)
{
return setFeatureGroupDataTypeAndValue(name, "String", value);
}
bool AdditionalProperties_Impl::setFeature(const std::string& name, const char* value)
{
return setFeature(name, std::string(value));
}
bool AdditionalProperties_Impl::setFeature(const std::string& name, double value)
{
return setFeatureGroupDataTypeAndValue(name, "Double", boost::lexical_cast<std::string>(value));
}
bool AdditionalProperties_Impl::setFeature(const std::string& name, int value)
{
return setFeatureGroupDataTypeAndValue(name, "Integer", boost::lexical_cast<std::string>(value));
}
bool AdditionalProperties_Impl::setFeature(const std::string& name, bool value)
{
std::string strValue(boost::lexical_cast<std::string>(value));
if (value) {
strValue = "true";
} else {
strValue = "false";
}
return setFeatureGroupDataTypeAndValue(name, "Boolean", strValue);
}
bool AdditionalProperties_Impl::resetFeature(const std::string& name)
{
unsigned n_groups = numExtensibleGroups();
for (unsigned i=0; i < n_groups; ++i) {
ModelExtensibleGroup group = getExtensibleGroup(i).cast<ModelExtensibleGroup>();
const boost::optional<std::string> featureName(group.getString(OS_AdditionalPropertiesExtensibleFields::FeatureName));
OS_ASSERT(featureName);
if (*featureName == name) {
eraseExtensibleGroup(i);
return true;
}
}
return false;
}
void AdditionalProperties_Impl::merge(const AdditionalProperties& other, bool overwrite)
{
if (other.handle() == this->handle()){
return;
}
for (const auto& featureName : other.featureNames()){
// check if we already have this key
if ((!overwrite) && this->getFeatureDataType(featureName)){
continue;
}
boost::optional<std::string> dataType = other.getFeatureDataType(featureName);
OS_ASSERT(dataType);
if (istringEqual("String", *dataType)){
boost::optional<std::string> v = other.getFeatureAsString(featureName);
OS_ASSERT(v);
this->setFeature(featureName, *v);
} else if (istringEqual("Double", *dataType)){
boost::optional<double> v = other.getFeatureAsDouble(featureName);
OS_ASSERT(v);
this->setFeature(featureName, *v);
} else if (istringEqual("Boolean", *dataType)){
boost::optional<bool> v = other.getFeatureAsBoolean(featureName);
OS_ASSERT(v);
this->setFeature(featureName, *v);
} else if (istringEqual("Integer", *dataType)){
boost::optional<int> v = other.getFeatureAsInteger(featureName);
OS_ASSERT(v);
this->setFeature(featureName, *v);
}
}
}
} //detail
AdditionalProperties::AdditionalProperties(const ModelObject& modelObject)
: ModelObject(AdditionalProperties::iddObjectType(), modelObject.model())
{
OS_ASSERT(getImpl<detail::AdditionalProperties_Impl>());
if (modelObject.optionalCast<AdditionalProperties>()){
this->remove();
LOG_AND_THROW("Cannot create a AdditionalProperties object for AdditionalProperties object");
}
bool ok = setPointer(OS_AdditionalPropertiesFields::ObjectName, modelObject.handle());
OS_ASSERT(ok);
}
ModelObject AdditionalProperties::modelObject() const {
return getImpl<detail::AdditionalProperties_Impl>()->modelObject();
}
IddObjectType AdditionalProperties::iddObjectType() {
IddObjectType result(IddObjectType::OS_AdditionalProperties);
return result;
}
std::vector<std::string> AdditionalProperties::featureNames() const
{
return getImpl<detail::AdditionalProperties_Impl>()->featureNames();
}
bool AdditionalProperties::hasFeature(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->hasFeature(name);
}
boost::optional<std::string> AdditionalProperties::getFeatureDataType(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->getFeatureDataType(name);
}
boost::optional<std::string> AdditionalProperties::getFeatureAsString(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->getFeatureAsString(name);
}
boost::optional<double> AdditionalProperties::getFeatureAsDouble(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->getFeatureAsDouble(name);
}
boost::optional<int> AdditionalProperties::getFeatureAsInteger(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->getFeatureAsInteger(name);
}
boost::optional<bool> AdditionalProperties::getFeatureAsBoolean(const std::string& name) const
{
return getImpl<detail::AdditionalProperties_Impl>()->getFeatureAsBoolean(name);
}
std::vector<std::string> AdditionalProperties::suggestedFeatureNames() const
{
return getImpl<detail::AdditionalProperties_Impl>()->suggestedFeatureNames();
}
bool AdditionalProperties::setFeature(const std::string& name, const std::string& value)
{
return getImpl<detail::AdditionalProperties_Impl>()->setFeature(name, value);
}
bool AdditionalProperties::setFeature(const std::string& name, const char* value)
{
return getImpl<detail::AdditionalProperties_Impl>()->setFeature(name, value);
}
bool AdditionalProperties::setFeature(const std::string& name, double value)
{
return getImpl<detail::AdditionalProperties_Impl>()->setFeature(name, value);
}
bool AdditionalProperties::setFeature(const std::string& name, int value)
{
return getImpl<detail::AdditionalProperties_Impl>()->setFeature(name, value);
}
bool AdditionalProperties::setFeature(const std::string& name, bool value)
{
return getImpl<detail::AdditionalProperties_Impl>()->setFeature(name, value);
}
bool AdditionalProperties::resetFeature(const std::string& name)
{
return getImpl<detail::AdditionalProperties_Impl>()->resetFeature(name);
}
void AdditionalProperties::merge(const AdditionalProperties& other, bool overwrite)
{
getImpl<detail::AdditionalProperties_Impl>()->merge(other, overwrite);
}
/// @cond
AdditionalProperties::AdditionalProperties(std::shared_ptr<detail::AdditionalProperties_Impl> impl)
: ModelObject(std::move(impl))
{}
/// @endcond
} //model
} //openstudio
| 17,156 | 5,030 |
//******************************************************************************************
// File: IS_DoorControl.h
// Authors: Dan G Ogorchock & Daniel J Ogorchock (Father and Son)
//
// Summary: IS_DoorControl is a class which implements the SmartThings "Door Control" device capability. It features
// an automatic-turn-off time delay for a relay to actuate a button press. This is useful for controlling
// a garage door. Use the input to monitor a magnetic door contact sensor. Use the output to control a relay to
// "press the garage door button" to open/close the garage door.
//
// It inherits from the st::InterruptSensor class and clones much from the st::Executor Class
//
// Create an instance of this class in your sketch's global variable section
// For Example: st::IS_DoorControl sensor3(F("doorControl1"), PIN_CONTACT_DOOR_1, LOW, true, PIN_RELAY_DOOR_1, LOW, true, 1000, 1000, true);
//
// st::IS_DoorControl() constructor requires the following arguments
// - String &name - REQUIRED - the name of the object - must match the Groovy ST_Anything DeviceType tile name
// - byte pinInput - REQUIRED - the Arduino Pin to be used as a digital input
// - bool iState - REQUIRED - LOW or HIGH - determines which value indicates the interrupt is true
// - bool internalPullup - REQUIRED - true == INTERNAL_PULLUP
// - byte pinOutput - REQUIRED - the Arduino Pin to be used as a digital output
// - bool startingState - REQUIRED - the value desired for the initial state of the switch. LOW = "off", HIGH = "on"
// - bool invertLogic - REQUIRED - determines whether the Arduino Digital Output should use inverted logic
// - long delayTime - REQUIRED - the number of milliseconds to keep the output on
// - long numReqCounts - OPTIONAL - number of counts before changing state of input (prevent false alarms)
// - bool useMomentary - OPTIONAL - use momentary output (true) or standard switch (false) (defaults to true)
//
// Change History:
//
// Date Who What
// ---- --- ----
// 2015-01-07 Dan Ogorchock Original Creation
// 2018-08-30 Dan Ogorchock Modified comment section above to comply with new Parent/Child Device Handler requirements
// 2018-11-07 Dan Ogorchock Added optional "numReqCounts" constructor argument/capability
// 2019-07-24 Dan Ogorchock Added parameter to use output as a simple switch instead of momentary output
//
//
//******************************************************************************************
#include "IS_DoorControl.h"
#include "Constants.h"
#include "Everything.h"
namespace st
{
//private
void IS_DoorControl::writeStateToPin()
{
digitalWrite(m_nOutputPin, m_bInvertLogic ? !m_bCurrentState : m_bCurrentState);
}
//public
//constructor
IS_DoorControl::IS_DoorControl(const __FlashStringHelper *name, byte pinInput, bool iState, bool pullup, byte pinOutput, bool startingState, bool invertLogic, unsigned long delayTime, long numReqCounts, bool useMomentary) :
InterruptSensor(name, pinInput, iState, pullup, numReqCounts), //use parent class' constructor
m_bCurrentState(startingState),
m_bInvertLogic(invertLogic),
m_lDelayTime(delayTime),
m_bUseMomentary(useMomentary),
m_lTimeTurnedOn(0),
m_bTimerPending(false)
{
setOutputPin(pinOutput);
}
//destructor
IS_DoorControl::~IS_DoorControl()
{
}
void IS_DoorControl::init()
{
//get current status of contact sensor by calling parent class's init() routine - no need to duplicate it here!
InterruptSensor::init();
}
//update function
void IS_DoorControl::update()
{
if (m_bTimerPending) {
//Turn off digital output if timer has expired
if ((m_bCurrentState == HIGH) && (millis() - m_lTimeTurnedOn >= m_lDelayTime))
{
m_bCurrentState = LOW;
writeStateToPin();
//Decrement number of active timers
if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--;
m_bTimerPending = false;
}
}
//check to see if input pin has changed state
InterruptSensor::update();
}
void IS_DoorControl::beSmart(const String &str)
{
String s = str.substring(str.indexOf(' ') + 1);
if (st::InterruptSensor::debug) {
Serial.print(F("IS_ContactRelay::beSmart s = "));
Serial.println(s);
}
if ( (s == F("on")) || (m_bUseMomentary && (s == F("off"))))
{
m_bCurrentState = HIGH;
if (m_bUseMomentary) {
//Save time turned on
m_lTimeTurnedOn = millis();
//Increment number of active timers
if (!m_bTimerPending)
{
st::Everything::bTimersPending++;
m_bTimerPending = true;
}
}
if (m_bUseMomentary) {
//Queue the door status update the ST Cloud
Everything::sendSmartStringNow(getName() + (getStatus() ? F(" opening") : F(" closing")));
}
}
else if (s == F("off"))
{
m_bCurrentState = LOW;
//Decrement number of active timers
if (st::Everything::bTimersPending > 0) st::Everything::bTimersPending--;
m_bTimerPending = false;
}
//update the digital output
writeStateToPin();
}
//called periodically by Everything class to ensure ST Cloud is kept consistent with the state of the contact sensor
void IS_DoorControl::refresh()
{
Everything::sendSmartString(getName() + (getStatus() ? F(" closed") : F(" open")));
}
void IS_DoorControl::runInterrupt()
{
//add the "closed" event to the buffer to be queued for transfer to the ST Shield
Everything::sendSmartString(getName() + F(" closed"));
}
void IS_DoorControl::runInterruptEnded()
{
//add the "open" event to the buffer to be queued for transfer to the ST Shield
Everything::sendSmartString(getName() + F(" open"));
}
void IS_DoorControl::setOutputPin(byte pin)
{
m_nOutputPin = pin;
pinMode(m_nOutputPin, OUTPUT);
writeStateToPin();
}
} | 5,853 | 2,098 |
#include <iostream>
#include <array>
#include "department.hpp"
int main(int argc, char *argv[])
{
Employee lastemp;
std::string id_number, name, history;
std::cout << "Enter the name of the department: ";
std::getline(std::cin, name);
std::cout << "Enter the department's identification number: ";
std::getline(std::cin, id_number);
std::cout << "Enter the department's history: ";
std::getline(std::cin, history);
Department department = Department(id_number, name, history);
for(int i = 0; i < 5; i++)
{
int id, year_hired, tel_area_code;
std::string first_name, last_name, dob, address, tel_number;
double salary;
std::cout << "Entering information for employee #" << i + 1 << std::endl;
std::cout << "Enter the first name: ";
std::getline(std::cin, first_name);
std::cout << "Enter the last name: ";
std::getline(std::cin, last_name);
std::cout << "Enter the address: ";
std::getline(std::cin, address);
std::cout << "Enter the id (int): ";
std::cin >> id;
std::cout << "Enter the year hired: ";
std::cin >> year_hired;
std::cout << "Enter the phone number area code (int): ";
std::cin >> tel_area_code;
std::cout << "Enter the phone number: ";
std::getline(std::cin, tel_number);
std::cout << "Enter the salary: ";
std::cin >> salary;
std::cout << "Enter the date of birth: ";
std::getline(std::cin, dob);
Employee emp = Employee(id, first_name, last_name, dob, address, year_hired, salary, tel_area_code, tel_number);
department.AddEmployee(emp);
lastemp = emp;
}
std::cout << "Department information" << std::endl;
std::cout << "Identification Number: " << department.GetIdNumber() << std::endl;
std::cout << "Name: " << department.GetName() << std::endl;
std::cout << "History: " << department.GetHistory() << std::endl;
std::cout << "Enter the new name of the department: ";
std::getline(std::cin, name);
department.SetName(name);
std::cout << "Enter the department's new history: ";
std::getline(std::cin, history);
department.SetHistory(history);
department.RemoveEmployee(lastemp);
std::cout << "Removed the last employee" << std::endl;
if(department.DoesEmployeeWorkInDepartment(2))
{
std::cout << "Employee 2 works in the department." << std::endl;
}
else
{
std::cout << "Employee 2 doesn't work in the department." << std::endl;
}
std::cout << "List of employees working in the department:" << std::endl;
department.PrintEmployeeList();
std::cout << "Number of employees working in the department: ";
department.PrintNumberOfEmployees();
} | 2,807 | 855 |
//=== Convert Point vector to Mat===
vector<Point2f> pt_vec;
Mat pt_mat = Mat(pt_vec).clone();
//==== Convert Mat to vector ===
Point *pts = (const Point*) Mat(contour).data;
//=== Warp image ====
warpPerspective ( src, dst, T, Size(w,h), INTER_LINEAR, BORDER_CONSTANT);
//=== Points Transformation
perspectiveTransform(p1, p2, T);//for points! src p1, dst p2
//=== Calculate distantce
double cost = norm(Mat(p1), Mat(p2), NORM_L2);
//=== Homography matrix estimation ====
findHomography( src_pt, dst_pt, RANSAC );
//=== Perspective matrix estimation ====
getPerspectiveTransform(const Point2f src[], const Point2f dst[])
//===Resize===
resize(src, dst, dst.size(), 0, 0, interpolation);
| 699 | 247 |
/*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#ifndef ZIG_BUFFER_HPP
#define ZIG_BUFFER_HPP
#include "list.hpp"
#include <assert.h>
#include <stdint.h>
#include <ctype.h>
#include <stdarg.h>
#define BUF_INIT {{0}}
// Note, you must call one of the alloc, init, or resize functions to have an
// initialized buffer. The assertions should help with this.
struct Buf {
ZigList<char> list;
};
Buf *buf_sprintf(const char *format, ...)
ATTRIBUTE_PRINTF(1, 2);
Buf *buf_vprintf(const char *format, va_list ap);
static inline size_t buf_len(Buf *buf) {
assert(buf->list.length);
return buf->list.length - 1;
}
static inline char *buf_ptr(Buf *buf) {
assert(buf->list.length);
return buf->list.items;
}
static inline void buf_resize(Buf *buf, size_t new_len) {
buf->list.resize(new_len + 1);
buf->list.at(buf_len(buf)) = 0;
}
static inline Buf *buf_alloc_fixed(size_t size) {
Buf *buf = allocate<Buf>(1);
buf_resize(buf, size);
return buf;
}
static inline Buf *buf_alloc(void) {
return buf_alloc_fixed(0);
}
static inline void buf_deinit(Buf *buf) {
buf->list.deinit();
}
static inline void buf_init_from_mem(Buf *buf, const char *ptr, size_t len) {
assert(len != SIZE_MAX);
buf->list.resize(len + 1);
safe_memcpy(buf_ptr(buf), ptr, len);
buf->list.at(buf_len(buf)) = 0;
}
static inline void buf_init_from_str(Buf *buf, const char *str) {
buf_init_from_mem(buf, str, strlen(str));
}
static inline void buf_init_from_buf(Buf *buf, Buf *other) {
buf_init_from_mem(buf, buf_ptr(other), buf_len(other));
}
static inline Buf *buf_create_from_mem(const char *ptr, size_t len) {
assert(len != SIZE_MAX);
Buf *buf = allocate<Buf>(1);
buf_init_from_mem(buf, ptr, len);
return buf;
}
static inline Buf *buf_create_from_slice(Slice<uint8_t> slice) {
return buf_create_from_mem((const char *)slice.ptr, slice.len);
}
static inline Buf *buf_create_from_str(const char *str) {
return buf_create_from_mem(str, strlen(str));
}
static inline Buf *buf_create_from_buf(Buf *buf) {
return buf_create_from_mem(buf_ptr(buf), buf_len(buf));
}
static inline Buf *buf_slice(Buf *in_buf, size_t start, size_t end) {
assert(in_buf->list.length);
assert(start != SIZE_MAX);
assert(end != SIZE_MAX);
assert(start < buf_len(in_buf));
assert(end <= buf_len(in_buf));
Buf *out_buf = allocate<Buf>(1);
out_buf->list.resize(end - start + 1);
safe_memcpy(buf_ptr(out_buf), buf_ptr(in_buf) + start, end - start);
out_buf->list.at(buf_len(out_buf)) = 0;
return out_buf;
}
static inline void buf_append_mem(Buf *buf, const char *mem, size_t mem_len) {
assert(buf->list.length);
assert(mem_len != SIZE_MAX);
size_t old_len = buf_len(buf);
buf_resize(buf, old_len + mem_len);
safe_memcpy(buf_ptr(buf) + old_len, mem, mem_len);
buf->list.at(buf_len(buf)) = 0;
}
static inline void buf_append_str(Buf *buf, const char *str) {
assert(buf->list.length);
buf_append_mem(buf, str, strlen(str));
}
static inline void buf_append_buf(Buf *buf, Buf *append_buf) {
assert(buf->list.length);
buf_append_mem(buf, buf_ptr(append_buf), buf_len(append_buf));
}
static inline void buf_append_char(Buf *buf, uint8_t c) {
assert(buf->list.length);
buf_append_mem(buf, (const char *)&c, 1);
}
void buf_appendf(Buf *buf, const char *format, ...)
ATTRIBUTE_PRINTF(2, 3);
static inline bool buf_eql_mem(Buf *buf, const char *mem, size_t mem_len) {
assert(buf->list.length);
if (buf_len(buf) != mem_len)
return false;
return memcmp(buf_ptr(buf), mem, mem_len) == 0;
}
static inline bool buf_eql_str(Buf *buf, const char *str) {
assert(buf->list.length);
return buf_eql_mem(buf, str, strlen(str));
}
static inline bool buf_starts_with_mem(Buf *buf, const char *mem, size_t mem_len) {
if (buf_len(buf) < mem_len) {
return false;
}
return memcmp(buf_ptr(buf), mem, mem_len) == 0;
}
static inline bool buf_starts_with_buf(Buf *buf, Buf *sub) {
return buf_starts_with_mem(buf, buf_ptr(sub), buf_len(sub));
}
static inline bool buf_starts_with_str(Buf *buf, const char *str) {
return buf_starts_with_mem(buf, str, strlen(str));
}
static inline bool buf_ends_with_mem(Buf *buf, const char *mem, size_t mem_len) {
if (buf_len(buf) < mem_len) {
return false;
}
return memcmp(buf_ptr(buf) + buf_len(buf) - mem_len, mem, mem_len) == 0;
}
static inline bool buf_ends_with_str(Buf *buf, const char *str) {
return buf_ends_with_mem(buf, str, strlen(str));
}
bool buf_eql_buf(Buf *buf, Buf *other);
uint32_t buf_hash(Buf *buf);
static inline void buf_upcase(Buf *buf) {
for (size_t i = 0; i < buf_len(buf); i += 1) {
buf_ptr(buf)[i] = (char)toupper(buf_ptr(buf)[i]);
}
}
static inline Slice<uint8_t> buf_to_slice(Buf *buf) {
return Slice<uint8_t>{reinterpret_cast<uint8_t*>(buf_ptr(buf)), buf_len(buf)};
}
#endif
| 5,053 | 2,016 |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modify it
under the terms of the QuantLib license. You should have received a
copy of the license along with this program; if not, please email
<quantlib-dev@lists.sf.net>. The license is also available online at
<http://quantlib.org/license.shtml>.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the license for more details.
*/
#include "businessdayconventions.hpp"
#include "utilities.hpp"
#include <ql/time/businessdayconvention.hpp>
#include <ql/time/daycounter.hpp>
#include <ql/time/calendars/southafrica.hpp>
#include <ql/time/period.hpp>
using namespace QuantLib;
using namespace boost::unit_test_framework;
namespace business_day_conventions_test {
struct SingleCase {
SingleCase(const Calendar& calendar,
const BusinessDayConvention& convention,
const Date& start,
const Period& period,
const bool endOfMonth,
Date result)
: calendar(calendar), convention(convention), start(start),
period(period), endOfMonth(endOfMonth), result(result) {}
Calendar calendar;
BusinessDayConvention convention;
Date start;
Period period;
bool endOfMonth;
Date result;
};
}
void BusinessDayConventionTest::testConventions() {
BOOST_TEST_MESSAGE("Testing business day conventions...");
using namespace business_day_conventions_test;
SingleCase testCases[] = {
// Following
SingleCase(SouthAfrica(), Following, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)),
SingleCase(SouthAfrica(), Following, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)),
SingleCase(SouthAfrica(), Following, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)),
SingleCase(SouthAfrica(), Following, Date(31,January,2015), Period(1,Months), false, Date(2,March,2015)),
//ModifiedFollowing
SingleCase(SouthAfrica(), ModifiedFollowing, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)),
SingleCase(SouthAfrica(), ModifiedFollowing, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)),
SingleCase(SouthAfrica(), ModifiedFollowing, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)),
SingleCase(SouthAfrica(), ModifiedFollowing, Date(31,January,2015), Period(1,Months), false, Date(27,February,2015)),
SingleCase(SouthAfrica(), ModifiedFollowing, Date(25,March,2015), Period(1,Months), false, Date(28,April,2015)),
SingleCase(SouthAfrica(), ModifiedFollowing, Date(7,February,2015), Period(1,Months), false, Date(9,March,2015)),
//Preceding
SingleCase(SouthAfrica(), Preceding, Date(3,March,2015), Period(-1,Months), false, Date(3,February,2015)),
SingleCase(SouthAfrica(), Preceding, Date(3,February,2015), Period(-2,Days), false, Date(30,January,2015)),
SingleCase(SouthAfrica(), Preceding, Date(1,March,2015), Period(-1,Months), true, Date(30,January,2015)),
SingleCase(SouthAfrica(), Preceding, Date(1,March,2015), Period(-1,Months), false, Date(30,January,2015)),
//ModifiedPreceding
SingleCase(SouthAfrica(), ModifiedPreceding, Date(3,March,2015), Period(-1,Months), false, Date(3,February,2015)),
SingleCase(SouthAfrica(), ModifiedPreceding, Date(3,February,2015), Period(-2,Days), false, Date(30,January,2015)),
SingleCase(SouthAfrica(), ModifiedPreceding, Date(1,March,2015), Period(-1,Months), true, Date(2,February,2015)),
SingleCase(SouthAfrica(), ModifiedPreceding, Date(1,March,2015), Period(-1,Months), false, Date(2,February,2015)),
//Unadjusted
SingleCase(SouthAfrica(), Unadjusted, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)),
SingleCase(SouthAfrica(), Unadjusted, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)),
SingleCase(SouthAfrica(), Unadjusted, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)),
SingleCase(SouthAfrica(), Unadjusted, Date(31,January,2015), Period(1,Months), false, Date(28,February,2015)),
//HalfMonthModifiedFollowing
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(31,January,2015), Period(1,Months), true, Date(27,February,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(31,January,2015), Period(1,Months), false, Date(27,February,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(3,January,2015), Period(1,Weeks), false, Date(12,January,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(21,March,2015), Period(1,Weeks), false, Date(30,March,2015)),
SingleCase(SouthAfrica(), HalfMonthModifiedFollowing, Date(7,February,2015), Period(1,Months), false, Date(9,March,2015)),
//Nearest
SingleCase(SouthAfrica(), Nearest, Date(3,February,2015), Period(1,Months), false, Date(3,March,2015)),
SingleCase(SouthAfrica(), Nearest, Date(3,February,2015), Period(4,Days), false, Date(9,February,2015)),
SingleCase(SouthAfrica(), Nearest, Date(16,April,2015), Period(1,Months), false, Date(15,May,2015)),
SingleCase(SouthAfrica(), Nearest, Date(17,April,2015), Period(1,Months), false, Date(18,May,2015)),
SingleCase(SouthAfrica(), Nearest, Date(4,March,2015), Period(1,Months), false, Date(2,April,2015)),
SingleCase(SouthAfrica(), Nearest, Date(2,April,2015), Period(1,Months), false, Date(4,May,2015))
};
Size n = sizeof(testCases)/sizeof(SingleCase);
for (Size i=0; i<n; i++) {
Calendar calendar(testCases[i].calendar);
Date result = calendar.advance(
testCases[i].start,
testCases[i].period,
testCases[i].convention,
testCases[i].endOfMonth);
BOOST_CHECK_MESSAGE(result == testCases[i].result,
"\ncase " << i << ":\n" //<< j << " ("<< desc << "): "
<< "start date: " << testCases[i].start << "\n"
<< "calendar: " << calendar << "\n"
<< "period: " << testCases[i].period << ", end of month: " << testCases[i].endOfMonth << "\n"
<< "convention: " << testCases[i].convention << "\n"
<< "expected: " << testCases[i].result << " vs. actual: " << result);
}
}
test_suite* BusinessDayConventionTest::suite() {
test_suite* suite = BOOST_TEST_SUITE("Business day convention tests");
suite->add(QUANTLIB_TEST_CASE(&BusinessDayConventionTest::testConventions));
return suite;
}
| 7,405 | 2,695 |
#include "openmi/pb/attr_value.pb.h"
using namespace openmi;
int main(int argc, char** argv) {
proto::AttrValue av;
av.set_i(10);
switch (av.value_case()) {
case proto::AttrValue::kI:
std::cout << "kI. value: " << av.i() << std::endl; break;
case proto::AttrValue::VALUE_NOT_SET:
std::cout << "VALUE not set"; break;
}
return 0;
}
| 362 | 143 |
//
// SVDetectBase.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVDetectBase.h"
#include "SVPerson.h"
SVDetectBase::SVDetectBase(SVInst *_app)
:SVListenBase(_app) {
}
SVDetectBase::~SVDetectBase() {
}
void SVDetectBase::update(f32 _dt){
}
void SVDetectBase::pushData(void *_faceData){
}
s32 SVDetectBase::transformIndex(s32 index) {
return 0;
}
BINDREGION SVDetectBase::getIndexRegion(s32 index) {
return BD_REGION_CENTER;
}
| 511 | 230 |
#include <iostream>
#include <vector>
#include <unordered_set>
#include <stdlib.h> // srand y rand
#include <algorithm> // advance
#include <time.h>
using namespace std;
int CALLS=0; // Llamadas a evaluación
const int LIMIT=100000; // Límite de evaluaciones
// Lee la entrada y la almacena en una matriz
void readInput (vector<vector<double>> &mat) {
unsigned i, j;
double f;
int s = mat.size();
int iter = s*(s-1)/2;
for (int k=0; k<iter; k++) {
cin >> i >> j >> f;
mat[i][j] = mat[j][i] = f;
}
}
/********** Evaluación ***************/
// Contribución de un elemento
double singleContribution(unordered_set<int> &solution, vector<vector<double> > &mat, int elem) {
double result = 0;
unordered_set<int>::iterator it;
for (it = solution.begin(); it != solution.end(); it++) {
result += mat[ elem ][ *it ];
}
return result;
}
// Variedad de una solución
double evaluateSolution(unordered_set<int> &solution, vector<vector<double> > &mat) {
double fitness = 0;
unordered_set<int>::iterator it;
for (it = solution.begin(); it != solution.end(); it++) {
fitness += singleContribution(solution, mat, *it);
}
return fitness /= 2; // Las cuenta doble
}
/******************* Local Search ********************/
// Más lejano a los seleccionados (de los que quedan por elegir)
int farthestToSel(unordered_set<int> &non_selected, unordered_set<int> &selected, vector<vector<double> > &mat) {
int farthest;
double max_sum_dist, current_sum_dist;
unordered_set<int>::iterator it;
it = non_selected.begin();
farthest = *it;
max_sum_dist = singleContribution(selected, mat, farthest);
for ( ; it!=non_selected.end(); it++) {
current_sum_dist = singleContribution(selected, mat, *it); // Suma distancias del elemento a los seleccionados
if (current_sum_dist > max_sum_dist) { // Si la suma es mayor, lo reemplaza
max_sum_dist = current_sum_dist;
farthest = *it;
}
}
return farthest;
}
// Genera solución aleatoria
unordered_set<int> randomSol(unsigned m, unsigned n, unordered_set<int> &complement){
int elem,rnd;
unordered_set<int> selected;
unordered_set<int> elements;
for (unsigned i=0; i<n; i++) {
elements.insert(i);
}
unordered_set<int>::iterator it;
while (selected.size()<m){
rnd=rand()%elements.size(); // Elijo un número aleatorio
it=elements.begin();
advance(it,rnd); // Selecciono el elemento correspondiente
elem=*it;
elements.erase( elem );
selected.insert( elem );
}
complement=elements; // Elementos que no están en la solución
return selected;
}
int lowestContributor(unordered_set<int> &solution, vector<vector<double> > &mat, double &min_contrib){
int lowest;
double current_contrib;
unordered_set<int>::iterator it;
it = solution.begin();
lowest = *it;
min_contrib = singleContribution(solution, mat, lowest);
it++;
for ( ; it!=solution.end(); it++) {
current_contrib = singleContribution(solution, mat, *it); // Suma distancias del elemento a los seleccionados
if (current_contrib < min_contrib) { // Si la suma es menor, lo reemplaza
min_contrib = current_contrib;
lowest = *it;
}
}
return lowest;
}
// random generator function:
int rndGen (int i) { return rand()%i;}
void localSearch(vector<vector<double> > &mat, unsigned m) {
clock_t t_start, t_total;
t_start = clock();
unordered_set<int> non_selected; // Elementos no seleccionados
unordered_set<int> solution = randomSol(m,mat.size(), non_selected);
double diversity=evaluateSolution(solution, mat);
vector<int>::iterator it; // Para iterar sobre los candidatos
int lowest, best_candidate;
double contrib, min_contrib;
bool carryon = true;
while (carryon && CALLS < LIMIT){
carryon=false;
lowest=lowestContributor(solution, mat, min_contrib); // Menor contribuyente
solution.erase(lowest); // Lo elimino
best_candidate = farthestToSel(non_selected, solution,mat); // Candidato más lejano a los seleccionados
CALLS+=non_selected.size(); // Elije la mejor entre todas estas soluciones
contrib = singleContribution(solution, mat, best_candidate);
if (contrib > min_contrib){ // Si encuentra una mejor en el entorno, se actualiza y continúa
diversity = diversity + contrib - min_contrib; // Modificamos diversidad (sólo el factor que cambia)
carryon=true;
solution.insert(best_candidate); // Insertamos el candidato
non_selected.erase(best_candidate); // Lo borramos de la lista de candidatos
non_selected.insert(lowest); // Ahora el menor contribuyente es un candidato más
}
}
/*
if (solution.size() < m)
solution.insert(lowest); // Si no se encontró uno mejor, recuperamos la solución
*/
t_total = clock() - t_start;
// output: Diversidad - Tiempo
cout << diversity << "\t" << (double) t_total / CLOCKS_PER_SEC << "\t" << CALLS << endl;
}
/******************* MAIN **********************/
int main( int argc, char *argv[] ) {
int n, m;
cin >> n >> m; // Leemos los parámetros n y m
vector<double> v (n, 0); // Vector de ceros con n componentes
vector<vector<double > > mat (n, v); // Matriz de nxn ceros
readInput(mat); // Leemos la entrada
cout << fixed;
srand(stoi(argv[1])); // SEED as parameter
localSearch(mat, m);
} | 5,343 | 1,835 |
//===- include/pstore/core/hamt_map_types.hpp -------------*- mode: C++ -*-===//
//* _ _ _ *
//* | |__ __ _ _ __ ___ | |_ _ __ ___ __ _ _ __ | |_ _ _ _ __ ___ ___ *
//* | '_ \ / _` | '_ ` _ \| __| | '_ ` _ \ / _` | '_ \ | __| | | | '_ \ / _ \/ __| *
//* | | | | (_| | | | | | | |_ | | | | | | (_| | |_) | | |_| |_| | |_) | __/\__ \ *
//* |_| |_|\__,_|_| |_| |_|\__| |_| |_| |_|\__,_| .__/ \__|\__, | .__/ \___||___/ *
//* |_| |___/|_| *
//===----------------------------------------------------------------------===//
//
// Part of the pstore project, under the Apache License v2.0 with LLVM Exceptions.
// See https://github.com/SNSystems/pstore/blob/master/LICENSE.txt for license
// information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
/// \file hamt_map_types.hpp
#ifndef PSTORE_CORE_HAMT_MAP_TYPES_HPP
#define PSTORE_CORE_HAMT_MAP_TYPES_HPP
#include "pstore/adt/chunked_sequence.hpp"
#include "pstore/core/array_stack.hpp"
#include "pstore/core/db_archive.hpp"
namespace pstore {
class transaction_base;
namespace index {
namespace details {
using hash_type = std::uint64_t;
/// The number of bits in hash_type. This is the maximum number of children that an
/// internal-node can carry.
constexpr auto const hash_size = sizeof (hash_type) * 8;
#ifdef _MSC_VER
// TODO: VC2015RC won't allow pop_count to be constexpr. Sigh. This forces a (very
// crude) population count implementation
namespace details_count {
constexpr inline unsigned bit_set (std::size_t v, unsigned bit) {
return (v & (std::size_t{1} << bit)) >> bit;
}
constexpr inline unsigned crude_pop_count (std::size_t v) {
return bit_set (v, 0x00) + bit_set (v, 0x01) + bit_set (v, 0x02) +
bit_set (v, 0x03) + bit_set (v, 0x04) + bit_set (v, 0x05) +
bit_set (v, 0x06) + bit_set (v, 0x07) + bit_set (v, 0x08) +
bit_set (v, 0x09) + bit_set (v, 0x0A) + bit_set (v, 0x0B) +
bit_set (v, 0x0C) + bit_set (v, 0x0D) + bit_set (v, 0x0E) +
bit_set (v, 0x0F);
}
} // namespace details_count
constexpr unsigned hash_index_bits = details_count::crude_pop_count (hash_size - 1);
#else
/// The number of bits that it takes to represent hash_size.
constexpr unsigned hash_index_bits = bit_count::pop_count (hash_size - 1);
#endif
constexpr unsigned max_hash_bits = (hash_size + 7) / hash_index_bits * hash_index_bits;
constexpr unsigned hash_index_mask = (1U << hash_index_bits) - 1U;
constexpr unsigned max_internal_depth = max_hash_bits / hash_index_bits;
/// The max depth of the hash trees include several levels internal nodes
/// (max_internal_depth), one linear node and one leaf node.
constexpr unsigned max_tree_depth = max_internal_depth + 2U;
/// Using LSB for marking internal nodes
constexpr std::uintptr_t internal_node_bit = 1;
/// Using second LSB for marking newly allocated internal nodes
constexpr std::uintptr_t heap_node_bit = 2;
} // end namespace details
//* _ _ _ _ _ *
//* | |_ ___ __ _ __| |___ _ _ | |__| |___ __| |__ *
//* | ' \/ -_) _` / _` / -_) '_| | '_ \ / _ \/ _| / / *
//* |_||_\___\__,_\__,_\___|_| |_.__/_\___/\__|_\_\ *
//* *
/// The address of an instance of this type is passed to the hamt_map ctor to load an
/// existing index, and it is returned by a call to hamt_map::flush().
struct header_block {
std::array<std::uint8_t, 8> signature;
/// The number of keys stored in the tree.
std::uint64_t size;
/// The store address of the tree's root node.
address root;
};
PSTORE_STATIC_ASSERT (sizeof (header_block) == 24);
PSTORE_STATIC_ASSERT (offsetof (header_block, signature) == 0);
PSTORE_STATIC_ASSERT (offsetof (header_block, size) == 8);
PSTORE_STATIC_ASSERT (offsetof (header_block, root) == 16);
namespace details {
std::size_t const not_found = std::numeric_limits<std::size_t>::max ();
class internal_node;
class linear_node;
constexpr bool depth_is_internal_node (unsigned const shift) noexcept {
return shift < details::max_hash_bits;
}
struct nchildren {
std::size_t n;
};
//* _ _ _ _ *
//* (_)_ _ __| |_____ __ _ __ ___(_)_ _| |_ ___ _ _ *
//* | | ' \/ _` / -_) \ / | '_ \/ _ \ | ' \ _/ -_) '_| *
//* |_|_||_\__,_\___/_\_\ | .__/\___/_|_||_\__\___|_| *
//* |_| *
/// An index pointer is either a database address or a pointer to volatile RAM.
/// The type information (which of the two fields applies) is carried externally.
union index_pointer {
index_pointer () noexcept
: internal{nullptr} {}
explicit index_pointer (address const a) noexcept
: addr (a) {}
explicit index_pointer (typed_address<internal_node> const a) noexcept
: addr (a.to_address ()) {}
explicit index_pointer (typed_address<linear_node> const a) noexcept
: addr (a.to_address ()) {}
explicit index_pointer (internal_node * const p) noexcept
: internal{tag_node (p)} {}
explicit index_pointer (linear_node * const p) noexcept
: linear{tag_node (p)} {}
index_pointer (index_pointer const &) noexcept = default;
index_pointer (index_pointer &&) noexcept = default;
index_pointer & operator= (index_pointer const &) = default;
index_pointer & operator= (index_pointer &&) noexcept = default;
index_pointer & operator= (address const & a) noexcept {
addr = a;
return *this;
}
index_pointer & operator= (typed_address<internal_node> const & a) noexcept {
addr = a.to_address ();
return *this;
}
index_pointer & operator= (typed_address<linear_node> const & a) noexcept {
addr = a.to_address ();
return *this;
}
index_pointer & operator= (internal_node * const p) noexcept {
internal = tag_node (p);
return *this;
}
index_pointer & operator= (linear_node * const l) noexcept {
linear = tag_node (l);
return *this;
}
bool operator== (index_pointer const & other) const noexcept {
return addr == other.addr;
}
bool operator!= (index_pointer const & other) const noexcept {
return !operator== (other);
}
explicit operator bool () const noexcept { return !this->is_empty (); }
/// Returns true if the index_pointer is pointing to an internal node, false
/// otherwise.
/// \sa is_leaf
bool is_internal () const noexcept {
return (reinterpret_cast<std::uintptr_t> (internal) & internal_node_bit) != 0;
}
/// Returns true if the index_pointer is pointing to a linear node, false otherwise.
/// \sa is_leaf
/// \note A linear node is always found at max_internal_depth. This function will
/// return true for internal nodes at lower tree levels.
bool is_linear () const noexcept { return is_internal (); }
/// Returns true if the index_pointer is pointing to a value address in the store,
/// false otherwise.
/// \sa is_internal
bool is_leaf () const noexcept { return !is_internal (); }
/// Returns true if the index_pointer is pointing to a heap node, false otherwise.
/// \sa is_addr
bool is_heap () const noexcept {
return (reinterpret_cast<std::uintptr_t> (internal) & heap_node_bit) != 0;
}
/// Returns true if the index_pointer is pointing to a store node, false otherwise.
/// \sa is_heap
bool is_address () const noexcept { return !is_heap (); }
bool is_empty () const noexcept { return internal == nullptr; }
template <typename T>
T tag_node () const noexcept {
return reinterpret_cast<T> (tag ());
}
template <typename T>
T untag_node () const noexcept {
return reinterpret_cast<T> (untag ());
}
typed_address<internal_node> untag_internal_address () const noexcept {
return typed_address<internal_node>::make (addr.absolute () &
~internal_node_bit);
}
typed_address<linear_node> untag_linear_address () const noexcept {
return typed_address<linear_node>::make (addr.absolute () & ~internal_node_bit);
}
address addr;
internal_node * internal;
linear_node * linear;
private:
static std::uintptr_t tag (void * const p) noexcept {
return reinterpret_cast<std::uintptr_t> (p) | internal_node_bit | heap_node_bit;
}
std::uintptr_t tag () const noexcept { return tag (internal); }
static internal_node * tag_node (internal_node * const p) noexcept {
return reinterpret_cast<internal_node *> (tag (p));
}
static linear_node * tag_node (linear_node * const p) noexcept {
return reinterpret_cast<linear_node *> (tag (p));
}
std::uintptr_t untag () const noexcept {
return reinterpret_cast<std::uintptr_t> (internal) & ~internal_node_bit &
~heap_node_bit;
}
};
PSTORE_STATIC_ASSERT (sizeof (index_pointer) == 8);
PSTORE_STATIC_ASSERT (alignof (index_pointer) == 8);
PSTORE_STATIC_ASSERT (offsetof (index_pointer, addr) == 0);
PSTORE_STATIC_ASSERT (sizeof (index_pointer::internal) == sizeof (index_pointer::addr));
PSTORE_STATIC_ASSERT (offsetof (index_pointer, internal) == 0);
PSTORE_STATIC_ASSERT (sizeof (index_pointer::linear) == sizeof (index_pointer::addr));
PSTORE_STATIC_ASSERT (offsetof (index_pointer, linear) == 0);
//* _ _ *
//* _ __ __ _ _ _ ___ _ _| |_ | |_ _ _ _ __ ___ *
//* | '_ \/ _` | '_/ -_) ' \ _| | _| || | '_ \/ -_) *
//* | .__/\__,_|_| \___|_||_\__| \__|\_, | .__/\___| *
//* |_| |__/|_| *
/// \brief A class used to keep the pointer to parent node and the child slot.
class parent_type {
public:
parent_type () = default;
/// Constructs a parent type object.
/// \param idx The pointer to either the parent node or a leaf node.
/// \param pos If idx is a leaf node address, pos is set to the default value
/// (not_found). Otherwise, pos refers to the child slot.
parent_type (index_pointer const idx, std::size_t const pos = not_found) noexcept
: node (idx)
, position (pos) {}
bool operator== (parent_type const & other) const {
return position == other.position && node == other.node;
}
bool operator!= (parent_type const & other) const { return !operator== (other); }
index_pointer node;
std::size_t position = 0;
};
using parent_stack = array_stack<parent_type, max_tree_depth>;
//* _ _ _ *
//* | (_)_ _ ___ __ _ _ _ _ _ ___ __| |___ *
//* | | | ' \/ -_) _` | '_| | ' \/ _ \/ _` / -_) *
//* |_|_|_||_\___\__,_|_| |_||_\___/\__,_\___| *
//* *
/// \brief A linear node.
/// Linear nodes as used as the place of last resort for entries which cannot be
/// distinguished by their hash value.
class linear_node {
public:
using iterator = address *;
using const_iterator = address const *;
void * operator new (std::size_t) = delete;
void operator delete (void * p);
~linear_node () noexcept = default;
linear_node & operator= (linear_node const & rhs) = delete;
linear_node & operator= (linear_node && rhs) = delete;
/// \name Construction
///@{
/// \brief Allocates a new linear node in memory and copy the contents of an
/// existing node into it. The new node is allocated with sufficient storage for the
/// child of the supplied node plus the number passed in the 'extra_children'
/// parameter.
///
/// \param orig_node A node whose contents will be copied into the newly allocated
/// linear node.
/// \param extra_children The number of extra child for which space will be
/// allocated. This number is added to the number of children in 'orig_node' in
/// calculating the amount of storage to be allocated.
/// \result A pointer to the newly allocated linear node.
static std::unique_ptr<linear_node> allocate_from (linear_node const & orig_node,
std::size_t extra_children);
/// \brief Allocates a new in-memory linear node based on the contents of an
/// existing store node.
///
/// \param db The database from which the source node should be loaded.
/// \param node A reference to the source node which may be either in-heap or
/// in-store.
/// \param extra_children The number of additional child nodes for which storage
/// should be allocated.
/// \result A pointer to the newly allocated linear node.
static std::unique_ptr<linear_node> allocate_from (database const & db,
index_pointer const node,
std::size_t extra_children);
/// \brief Allocates a new linear node in memory with sufficient space for two leaf
/// addresses.
///
/// \param a The first leaf address for the new linear node.
/// \param b The second leaf address for the new linear node.
/// \result A pointer to the newly allocated linear node.
static std::unique_ptr<linear_node> allocate (address a, address b);
/// \brief Returns a pointer to a linear node which may be in-heap or in-store.
///
/// If the supplied index_pointer points to a heap-resident linear node then returns
/// a pair whose first member is nullptr and whose second member contains the node
/// pointer. If the index_pointer references an in-store linear node then the node
/// is fetched and the function returns a pair whose first member is the store's
/// shared_ptr and whose second member is the equivalent raw pointer (i.e.
/// result.first.get () == result.second). In this case, the second pointer is only
/// valid as long as the first pointer is "live".
///
/// \param db The database from which the node should be loaded.
/// \param node A pointer to the node location: either in the heap or in the store.
/// \result A pair holding a pointer to the node in-store memory (if necessary) and
/// its raw pointer.
static auto get_node (database const & db, index_pointer const node)
-> std::pair<std::shared_ptr<linear_node const>, linear_node const *>;
///@}
/// \name Element access
///@{
address operator[] (std::size_t const i) const noexcept {
PSTORE_ASSERT (i < size_);
return leaves_[i];
}
address & operator[] (std::size_t const i) noexcept {
PSTORE_ASSERT (i < size_);
return leaves_[i];
}
///@}
/// \name Iterators
///@{
iterator begin () { return leaves_; }
const_iterator begin () const { return leaves_; }
const_iterator cbegin () const { return this->begin (); }
iterator end () { return leaves_ + size_; }
const_iterator end () const { return leaves_ + size_; }
const_iterator cend () const { return this->end (); }
///@}
/// \name Capacity
///@{
/// Checks whether the container is empty.
bool empty () const { return size_ == 0; }
/// Returns the number of elements.
std::size_t size () const { return size_; }
///@}
/// \name Storage
///@{
/// Returns the number of bytes of storage required for the node.
std::size_t size_bytes () const { return linear_node::size_bytes (this->size ()); }
/// Returns the number of bytes of storage required for a linear node with 'size'
/// children.
static constexpr std::size_t size_bytes (std::uint64_t const size) {
return sizeof (linear_node) - sizeof (linear_node::leaves_) +
sizeof (linear_node::leaves_[0]) * size;
}
///@}
/// Write this linear node to the store.
///
/// \param transaction The transaction to which the linear node will be appended.
/// \result The address at which the node was written.
address flush (transaction_base & transaction) const;
/// Search the linear node and return the child slot if the key exists.
/// Otherwise, return the {nullptr, not_found} pair.
/// \tparam KeyType The type of the keys stored in the linear node.
/// \tparam OtherKeyType A type whose serialized value is compatible with KeyType
/// \tparam KeyEqual The type of the key-comparison function.
/// \param db The dataase instance from which child nodes should be loaded.
/// \param key The key to be located.
/// \param equal A comparison function which will be called to compare child nodes
/// to the supplied key value. It should return true if the keys match and false
/// otherwise.
/// \result If found, returns an `index_pointer` reference to the child node and the
/// position within the linear node instance of the child record. If not found,
/// returns the pair index_pointer (), details::not_found.
template <typename KeyType, typename OtherKeyType, typename KeyEqual,
typename = typename std::enable_if<
serialize::is_compatible<KeyType, OtherKeyType>::value>::type>
auto lookup (database const & db, OtherKeyType const & key, KeyEqual equal) const
-> std::pair<index_pointer const, std::size_t>;
private:
using signature_type = std::array<std::uint8_t, 8>;
static signature_type const node_signature_;
/// A placement-new implementation which allocates sufficient storage for a linear
/// node with the number of children given by the size parameter.
void * operator new (std::size_t s, nchildren size);
// Non-allocating placement allocation functions.
void * operator new (std::size_t const size, void * const ptr) noexcept {
return ::operator new (size, ptr);
}
void operator delete (void * p, nchildren size);
void operator delete (void * const p, void * const ptr) noexcept {
::operator delete (p, ptr);
}
/// \param size The capacity of this linear node.
explicit linear_node (std::size_t size);
linear_node (linear_node const & rhs);
linear_node (linear_node && rhs) = delete;
/// Allocates a new linear node in memory.
///
/// \param num_children Sufficient space is allocated for the number of child nodes
/// specified in this parameter.
/// \param from_node A node whose contents will be copied into the new node. If the
/// number of children requested is greater than the number of children in
/// from_node, the remaining entries are zeroed; if less then the child node
/// collection is truncated after the specified number of entries.
/// \result A pointer to the newly allocated linear node.
static std::unique_ptr<linear_node> allocate (std::size_t num_children,
linear_node const & from_node);
signature_type signature_ = node_signature_;
std::uint64_t size_;
address leaves_[1];
};
// lookup
// ~~~~~~
template <typename KeyType, typename OtherKeyType, typename KeyEqual, typename>
auto linear_node::lookup (database const & db, OtherKeyType const & key,
KeyEqual equal) const
-> std::pair<index_pointer const, std::size_t> {
// Linear search. TODO: perhaps we should sort the nodes and use a binary
// search? This would require a template compare method.
std::size_t cnum = 0;
for (auto const & child : *this) {
KeyType const existing_key =
serialize::read<KeyType> (serialize::archive::database_reader{db, child});
if (equal (existing_key, key)) {
return {index_pointer{child}, cnum};
}
++cnum;
}
// Not found
return {index_pointer (), details::not_found};
}
//* _ _ _ _ *
//* (_)_ _| |_ ___ _ _ _ _ __ _| | ___ ___ __| |___ *
//* | | ' \ _/ -_) '_| ' \/ _` | | | \/ _ \/ _` / -_) *
//* |_|_||_\__\___|_| |_||_\__,_|_| |_|\_\___/\__,_\___| *
//* *
/// An internal trie node.
class internal_node {
public:
using iterator = index_pointer *;
using const_iterator = index_pointer const *;
/// Construct an internal node with a child.
internal_node (index_pointer const & leaf, hash_type hash);
/// Construct the internal node with two children.
internal_node (index_pointer const & existing_leaf, index_pointer const & new_leaf,
hash_type existing_hash, hash_type new_hash);
internal_node (internal_node const & rhs);
internal_node (internal_node && rhs) = delete;
~internal_node () noexcept = default;
internal_node & operator= (internal_node const & rhs) = delete;
internal_node & operator= (internal_node && rhs) = delete;
/// Construct an internal node from existing internal-node instance. This may be
/// used, for example, when copying an in-store node into memory in preparation for
/// modifying it.
///
/// \tparam SequenceContainer A container of internal_node instances which supports
/// emplace_back().
/// \param container Points to the container which will own the new internal node
/// instance.
/// \param other A existing internal_node whose contents are copied into the newly
/// allocated instance.
/// \returns A new instance of internal_node which is owned by *container.
template <typename SequenceContainer,
typename = typename std::enable_if<std::is_same<
typename SequenceContainer::value_type, internal_node>::value>::type>
static internal_node * allocate (SequenceContainer * const container,
internal_node const & other) {
container->emplace_back (other);
// TODO: in C++17 we can use the emplace_back return value.
return &container->back ();
}
/// Construct an internal node with a single child.
///
/// \tparam SequenceContainer A container of internal_node instances which supports
/// emplace_back().
/// \param container Points to the container which will own the new internal node
/// instance.
/// \param leaf The child of the newly allocated internal node.
/// \param hash The hash associated with the child node.
/// \returns A new instance of internal_node which is owned by *container.
template <typename SequenceContainer,
typename = typename std::enable_if<std::is_same<
typename SequenceContainer::value_type, internal_node>::value>::type>
static internal_node * allocate (SequenceContainer * container,
index_pointer const & leaf, hash_type const hash) {
container->emplace_back (leaf, hash);
// TODO: in C++17 we can use the emplace_back return value.
return &container->back ();
}
/// Construct an internal node with two children.
///
/// \tparam SequenceContainer A container of internal_node instances which supports
/// emplace_back().
/// \param container Points to the container which will own the new internal node
/// instance.
/// \param existing_leaf One of the two child nodes of the new internal node.
/// \param new_leaf One of the two child nodes of the new internal node.
/// \param existing_hash The hash associated with the \p existing_leaf node.
/// \param new_hash The hash associated with the \p new_leaf node.
/// \returns A new instance of internal_node which is owned by *container.
template <typename SequenceContainer,
typename = typename std::enable_if<std::is_same<
typename SequenceContainer::value_type, internal_node>::value>::type>
static internal_node *
allocate (SequenceContainer * container, index_pointer const & existing_leaf,
index_pointer const & new_leaf, hash_type const existing_hash,
hash_type const new_hash) {
container->emplace_back (existing_leaf, new_leaf, existing_hash, new_hash);
// TODO: in C++17 we can use the emplace_back return value.
return &container->back ();
}
/// Return a pointer to an internal node. If the node is in-store, it is loaded and
/// the internal heap node pointer if \p node is a heap internal node.
/// Otherwise return the pointer which is pointed to the store node.
///
/// \param db The database containing the node.
/// \param node The node's location: either in-store or in-heap.
/// \return A pair of which the first element is a in-store pointer to the node
/// body. This may be null if called on a heap-resident node. The second element is
/// the raw node pointer, that is, the address of a heap node or the result of
/// calling .get() on the store-pointer.
static auto get_node (database const & db, index_pointer const node)
-> std::pair<std::shared_ptr<internal_node const>, internal_node const *>;
/// Load an internal node from the store.
static auto read_node (database const & db, typed_address<internal_node> const addr)
-> std::shared_ptr<internal_node const>;
/// Returns a writable reference to an internal node. If the \p node parameter
/// references an in-heap node, then this pointer is returned otherwise a copy of
/// the \p internal parameter is placed in heap-allocated memory.
///
/// \note It is expected that both \p node and \p internal are references to the
/// same node.
///
/// \tparam SequenceContainer A container of internal_node instances which supports
/// emplace_back().
/// \param container Points to the container which will own the new internal node
/// instance.
/// \param node A reference to an internal node. This may be either in-store on the
/// heap. If on the heap the returned value is the underlying pointer.
/// \param internal A read-only instance of an internal node. If the \p node
/// parameter is in-store then a copy of this value is placed on the heap.
/// \result See above.
template <typename SequenceContainer,
typename = typename std::enable_if<std::is_same<
typename SequenceContainer::value_type, internal_node>::value>::type>
static internal_node * make_writable (SequenceContainer * const container,
index_pointer const node,
internal_node const & internal) {
if (node.is_heap ()) {
internal_node * const inode = node.untag_node<internal_node *> ();
PSTORE_ASSERT (inode->signature_ == node_signature_);
return inode;
}
return allocate (container, internal);
}
/// Returns the number of bytes occupied by an in-store internal node with the given
/// number of child nodes. Note that the storage occupied by an in-heap internal
/// node with the same number of children may be greater.
///
/// \param num_children The number of children to assume for the purpose of
/// computing the number of bytes occupied.
/// \return The number of bytes occupied by an in-store internal node with the given
/// number of child nodes.
static constexpr std::size_t size_bytes (std::size_t const num_children) noexcept {
PSTORE_ASSERT (num_children > 0 && num_children <= hash_size);
return sizeof (internal_node) - sizeof (internal_node::children_) +
sizeof (decltype (internal_node::children_[0])) * num_children;
}
/// Returns the number of children contained by this node.
unsigned size () const noexcept {
PSTORE_ASSERT (this->bitmap_ != hash_type{0});
return bit_count::pop_count (this->bitmap_);
}
/// Return the new leaf child index number.
static unsigned get_new_index (hash_type const new_hash,
hash_type const existing_hash) noexcept {
return static_cast<unsigned> (new_hash >= existing_hash);
}
std::pair<index_pointer, std::size_t> lookup (hash_type hash_index) const;
/// Insert a child into the internal node (this).
void insert_child (hash_type const hash, index_pointer const leaf,
gsl::not_null<parent_stack *> parents);
/// Write an internal node and its children into a store.
address flush (transaction_base & transaction, unsigned shifts);
index_pointer const & operator[] (std::size_t const i) const {
PSTORE_ASSERT (i < size ());
return children_[i];
}
index_pointer & operator[] (std::size_t const i) {
PSTORE_ASSERT (i < size ());
return children_[i];
}
hash_type get_bitmap () const noexcept { return bitmap_; }
/// A function for deliberately creating illegal internal nodes in the unit test. DO
/// NOT USE except for that purpose!
void set_bitmap (hash_type const bm) noexcept { bitmap_ = bm; }
/// \name Iterators
///@{
iterator begin () noexcept { return &children_[0]; }
const_iterator begin () const { return &children_[0]; }
const_iterator cbegin () const { return &children_[0]; }
iterator end () noexcept { return this->begin () + this->size (); }
const_iterator end () const { return this->begin () + this->size (); }
const_iterator cend () const { return this->cbegin () + this->size (); }
///@}
private:
static bool validate_after_load (internal_node const & internal,
typed_address<internal_node> const addr);
/// Appends the internal node (which refers to a node in heap memory) to the
/// store. Returns a new (in-store) internal store address.
address store_node (transaction_base & transaction) const;
using signature_type = std::array<std::uint8_t, 8>;
static signature_type const node_signature_;
/// A magic number for internal nodes in the store. Acts as a quick integrity test
/// for the index structures.
signature_type signature_ = node_signature_;
/// For each index in the children array, the corresponding bit is set in this field
/// if it is a reference to an internal node or an leaf node. In a linear node, the
/// bitmap field contains the number of elements in the array.
hash_type bitmap_ = 0;
/// \brief The array of child node references.
/// Each child may be in-memory or in-store.
index_pointer children_[1U];
};
// lookup
// ~~~~~~
inline auto internal_node::lookup (hash_type const hash_index) const
-> std::pair<index_pointer, std::size_t> {
PSTORE_ASSERT (hash_index < (hash_type{1} << hash_index_bits));
auto const bit_pos = hash_type{1} << hash_index;
if ((bitmap_ & bit_pos) != 0) { //! OCLINT(PH - bitwise in conditional is ok)
std::size_t const index = bit_count::pop_count (bitmap_ & (bit_pos - 1U));
return {children_[index], index};
}
return {index_pointer{}, not_found};
}
} // namespace details
} // namespace index
} // namespace pstore
#endif // PSTORE_CORE_HAMT_MAP_TYPES_HPP
| 38,558 | 9,370 |
// This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/orc/tree/main/c++/src/RleDecoderV2.cc
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "Adaptor.hh"
#include "Compression.hh"
#include "RLEV2Util.hh"
#include "RLEv2.hh"
namespace orc {
int64_t RleDecoderV2::readLongBE(uint64_t bsz) {
int64_t ret = 0, val;
uint64_t n = bsz;
while (n > 0) {
n--;
val = readByte();
ret |= (val << (n * 8));
}
return ret;
}
inline int64_t RleDecoderV2::readVslong() {
return unZigZag(readVulong());
}
uint64_t RleDecoderV2::readVulong() {
uint64_t ret = 0, b;
uint64_t offset = 0;
do {
b = readByte();
ret |= (0x7f & b) << offset;
offset += 7;
} while (b >= 0x80);
return ret;
}
RleDecoderV2::RleDecoderV2(std::unique_ptr<SeekableInputStream> input, bool _isSigned, MemoryPool& pool,
DataBuffer<char>* _sharedBufferPtr)
: inputStream(std::move(input)),
isSigned(_isSigned),
firstByte(0),
runLength(0),
runRead(0),
bufferStart(nullptr),
bufferEnd(bufferStart),
deltaBase(0),
byteSize(0),
firstValue(0),
prevValue(0),
bitSize(0),
bitsLeft(0),
curByte(0),
patchBitSize(0),
unpackedIdx(0),
patchIdx(0),
base(0),
curGap(0),
curPatch(0),
patchMask(0),
actualGap(0),
unpacked(pool, 0),
unpackedPatch(pool, 0),
direct(pool, 0),
sharedBuffer(pool, 0) {
// PASS
if (_sharedBufferPtr != nullptr) {
sharedBufferPtr = _sharedBufferPtr;
}
}
void RleDecoderV2::seek(PositionProvider& location) {
// move the input stream
inputStream->seek(location);
// clear state
bufferEnd = bufferStart = nullptr;
runRead = runLength = 0;
// skip ahead the given number of records
skip(location.next());
}
void RleDecoderV2::skip(uint64_t numValues) {
// simple for now, until perf tests indicate something encoding specific is
// needed
const uint64_t N = 64;
int64_t dummy[N];
while (numValues) {
uint64_t nRead = std::min(N, numValues);
next(dummy, nRead, nullptr);
numValues -= nRead;
}
}
void RleDecoderV2::next(int64_t* const data, const uint64_t numValues, const char* const notNull) {
uint64_t nRead = 0;
while (nRead < numValues) {
// Skip any nulls before attempting to read first byte.
while (notNull && !notNull[nRead]) {
if (++nRead == numValues) {
return; // ended with null values
}
}
if (runRead == runLength) {
resetRun();
firstByte = readByte();
}
uint64_t offset = nRead, length = numValues - nRead;
EncodingType enc = static_cast<EncodingType>((firstByte >> 6) & 0x03);
switch (static_cast<int64_t>(enc)) {
case SHORT_REPEAT:
nRead += nextShortRepeats(data, offset, length, notNull);
break;
case DIRECT:
nRead += nextDirect(data, offset, length, notNull);
break;
case PATCHED_BASE:
nRead += nextPatched(data, offset, length, notNull);
break;
case DELTA:
nRead += nextDelta(data, offset, length, notNull);
break;
default:
throw ParseError("unknown encoding");
}
}
}
uint64_t RleDecoderV2::nextShortRepeats(int64_t* const data, uint64_t offset, uint64_t numValues,
const char* const notNull) {
if (runRead == runLength) {
// extract the number of fixed bytes
byteSize = (firstByte >> 3) & 0x07;
byteSize += 1;
runLength = firstByte & 0x07;
// run lengths values are stored only after MIN_REPEAT value is met
runLength += MIN_REPEAT;
runRead = 0;
// read the repeated value which is store using fixed bytes
firstValue = readLongBE(byteSize);
if (isSigned) {
firstValue = unZigZag(static_cast<uint64_t>(firstValue));
}
}
uint64_t nRead = std::min(runLength - runRead, numValues);
if (notNull) {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
if (notNull[pos]) {
data[pos] = firstValue;
++runRead;
}
}
} else {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
data[pos] = firstValue;
++runRead;
}
}
return nRead;
}
#define OPT_RLE_V2
#ifndef OPT_RLE_V2
uint64_t RleDecoderV2::nextDirect(int64_t* const data, uint64_t offset, uint64_t numValues, const char* const notNull) {
if (runRead == runLength) {
// extract the number of fixed bits
unsigned char fbo = (firstByte >> 1) & 0x1f;
bitSize = decodeBitWidth(fbo);
// extract the run length
runLength = static_cast<uint64_t>(firstByte & 0x01) << 8;
runLength |= readByte();
// runs are one off
runLength += 1;
runRead = 0;
}
uint64_t nRead = std::min(runLength - runRead, numValues);
runRead += readLongs(data, offset, nRead, bitSize, notNull);
if (isSigned) {
if (notNull) {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
if (notNull[pos]) {
data[pos] = unZigZag(static_cast<uint64_t>(data[pos]));
}
}
} else {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
data[pos] = unZigZag(static_cast<uint64_t>(data[pos]));
}
}
}
return nRead;
}
#else
uint64_t RleDecoderV2::nextDirect(int64_t* const data, uint64_t offset, uint64_t numValues, const char* const notNull) {
if (runRead == runLength) {
// extract the number of fixed bits
unsigned char fbo = (firstByte >> 1) & 0x1f;
bitSize = decodeBitWidth(fbo);
// extract the run length
runLength = static_cast<uint64_t>(firstByte & 0x01) << 8;
runLength |= readByte();
// runs are one off
runLength += 1;
runRead = 0;
direct.reserve(runLength);
readLongsFully(direct.data(), runLength, bitSize);
directIdx = 0;
}
uint64_t nRead = std::min(runLength - runRead, numValues);
if (isSigned) {
if (notNull) {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
if (notNull[pos]) {
data[pos] = unZigZag(static_cast<uint64_t>(direct[directIdx]));
directIdx++;
runRead++;
}
}
} else {
runRead += nRead;
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
data[pos] = unZigZag(static_cast<uint64_t>(direct[directIdx]));
directIdx++;
}
}
} else {
if (notNull) {
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
if (notNull[pos]) {
data[pos] = direct[directIdx];
directIdx++;
runRead++;
}
}
} else {
runRead += nRead;
memcpy(data + offset, direct.data() + directIdx, sizeof(data[0]) * nRead);
directIdx += nRead;
}
}
return nRead;
}
#endif
uint64_t RleDecoderV2::nextPatched(int64_t* const data, uint64_t offset, uint64_t numValues,
const char* const notNull) {
if (runRead == runLength) {
// extract the number of fixed bits
unsigned char fbo = (firstByte >> 1) & 0x1f;
bitSize = decodeBitWidth(fbo);
// extract the run length
runLength = static_cast<uint64_t>(firstByte & 0x01) << 8;
runLength |= readByte();
// runs are one off
runLength += 1;
runRead = 0;
// extract the number of bytes occupied by base
uint64_t thirdByte = readByte();
byteSize = (thirdByte >> 5) & 0x07;
// base width is one off
byteSize += 1;
// extract patch width
uint32_t pwo = thirdByte & 0x1f;
patchBitSize = decodeBitWidth(pwo);
// read fourth byte and extract patch gap width
uint64_t fourthByte = readByte();
uint32_t pgw = (fourthByte >> 5) & 0x07;
// patch gap width is one off
pgw += 1;
// extract the length of the patch list
size_t pl = fourthByte & 0x1f;
if (pl == 0) {
throw ParseError("Corrupt PATCHED_BASE encoded data (pl==0)!");
}
// read the next base width number of bytes to extract base value
base = readLongBE(byteSize);
int64_t mask = (static_cast<int64_t>(1) << ((byteSize * 8) - 1));
// if mask of base value is 1 then base is negative value else positive
if ((base & mask) != 0) {
base = base & ~mask;
base = -base;
}
// TODO: something more efficient than resize
unpacked.resize(runLength);
unpackedIdx = 0;
readLongs(unpacked.data(), 0, runLength, bitSize);
// any remaining bits are thrown out
resetReadLongs();
// TODO: something more efficient than resize
unpackedPatch.resize(pl);
patchIdx = 0;
// TODO: Skip corrupt?
// if ((patchBitSize + pgw) > 64 && !skipCorrupt) {
if ((patchBitSize + pgw) > 64) {
throw ParseError(
"Corrupt PATCHED_BASE encoded data "
"(patchBitSize + pgw > 64)!");
}
uint32_t cfb = getClosestFixedBits(patchBitSize + pgw);
readLongs(unpackedPatch.data(), 0, pl, cfb);
// any remaining bits are thrown out
resetReadLongs();
// apply the patch directly when decoding the packed data
patchMask = ((static_cast<int64_t>(1) << patchBitSize) - 1);
adjustGapAndPatch();
}
uint64_t nRead = std::min(runLength - runRead, numValues);
for (uint64_t pos = offset; pos < offset + nRead; ++pos) {
// skip null positions
if (notNull && !notNull[pos]) {
continue;
}
if (static_cast<int64_t>(unpackedIdx) != actualGap) {
// no patching required. add base to unpacked value to get final value
data[pos] = base + unpacked[unpackedIdx];
} else {
// extract the patch value
int64_t patchedVal = unpacked[unpackedIdx] | (curPatch << bitSize);
// add base to patched value
data[pos] = base + patchedVal;
// increment the patch to point to next entry in patch list
++patchIdx;
if (patchIdx < unpackedPatch.size()) {
adjustGapAndPatch();
// next gap is relative to the current gap
actualGap += unpackedIdx;
}
}
++runRead;
++unpackedIdx;
}
return nRead;
}
uint64_t RleDecoderV2::nextDelta(int64_t* const data, uint64_t offset, uint64_t numValues, const char* const notNull) {
if (runRead == runLength) {
// extract the number of fixed bits
unsigned char fbo = (firstByte >> 1) & 0x1f;
if (fbo != 0) {
bitSize = decodeBitWidth(fbo);
} else {
bitSize = 0;
}
// extract the run length
runLength = static_cast<uint64_t>(firstByte & 0x01) << 8;
runLength |= readByte();
++runLength; // account for first value
runRead = deltaBase = 0;
// read the first value stored as vint
if (isSigned) {
firstValue = static_cast<int64_t>(readVslong());
} else {
firstValue = static_cast<int64_t>(readVulong());
}
prevValue = firstValue;
// read the fixed delta value stored as vint (deltas can be negative even
// if all number are positive)
deltaBase = static_cast<int64_t>(readVslong());
}
uint64_t nRead = std::min(runLength - runRead, numValues);
uint64_t pos = offset;
for (; pos < offset + nRead; ++pos) {
// skip null positions
if (!notNull || notNull[pos]) break;
}
if (runRead == 0 && pos < offset + nRead) {
data[pos++] = firstValue;
++runRead;
}
if (bitSize == 0) {
// add fixed deltas to adjacent values
for (; pos < offset + nRead; ++pos) {
// skip null positions
if (notNull && !notNull[pos]) {
continue;
}
prevValue = data[pos] = prevValue + deltaBase;
++runRead;
}
} else {
for (; pos < offset + nRead; ++pos) {
// skip null positions
if (!notNull || notNull[pos]) break;
}
if (runRead < 2 && pos < offset + nRead) {
// add delta base and first value
prevValue = data[pos++] = firstValue + deltaBase;
++runRead;
}
// write the unpacked values, add it to previous value and store final
// value to result buffer. if the delta base value is negative then it
// is a decreasing sequence else an increasing sequence
uint64_t remaining = (offset + nRead) - pos;
runRead += readLongs(data, pos, remaining, bitSize, notNull);
if (deltaBase < 0) {
for (; pos < offset + nRead; ++pos) {
// skip null positions
if (notNull && !notNull[pos]) {
continue;
}
prevValue = data[pos] = prevValue - data[pos];
}
} else {
for (; pos < offset + nRead; ++pos) {
// skip null positions
if (notNull && !notNull[pos]) {
continue;
}
prevValue = data[pos] = prevValue + data[pos];
}
}
}
return nRead;
}
} // namespace orc
| 15,111 | 4,789 |
//
// DBEndpoint.hh
//
// Copyright (c) 2017 Couchbase, Inc All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#pragma once
#include "Endpoint.hh"
#include "c4Replicator.h"
#include "Stopwatch.hh"
#include "fleece/slice.hh"
class JSONEndpoint;
class RemoteEndpoint;
class DbEndpoint : public Endpoint {
public:
explicit DbEndpoint(const std::string &spec);
explicit DbEndpoint(C4Database*);
#ifdef HAS_COLLECTIONS
explicit DbEndpoint(C4Collection*);
#endif
virtual bool isDatabase() const override {return true;}
fleece::alloc_slice path() const;
virtual void prepare(bool isSource, bool mustExist, fleece::slice docIDProperty, const Endpoint*) override;
void setBidirectional(bool bidi) {_bidirectional = bidi;}
void setContinuous(bool cont) {_continuous = cont;}
void setMaxRetries(unsigned n) {_maxRetries = n;}
using credentials = std::pair<std::string, std::string>;
void setCredentials(const credentials &cred) {_credentials = cred;}
void setRootCerts(fleece::alloc_slice rootCerts){_rootCerts = rootCerts;}
void setClientCert(fleece::alloc_slice client) {_clientCert = client;}
void setClientCertKey(fleece::alloc_slice key) {_clientCertKey = key;}
void setClientCertKeyPassword(fleece::alloc_slice p) {_clientCertKeyPassword = p;}
virtual void copyTo(Endpoint *dst, uint64_t limit) override;
virtual void writeJSON(fleece::slice docID, fleece::slice json) override;
virtual void finish() override;
void pushToLocal(DbEndpoint&);
void replicateWith(RemoteEndpoint&, bool pushing =true);
void startReplicationWith(RemoteEndpoint&, bool pushing);
void waitTillIdle();
void stopReplication();
void finishReplication();
void exportTo(JSONEndpoint*);
void importFrom(JSONEndpoint*);
void onStateChanged(C4ReplicatorStatus status);
void onDocsEnded(bool pushing,
size_t count,
const C4DocumentEnded* docs[]);
private:
void enterTransaction();
void commit();
void startLine();
void exportTo(Endpoint *dst, uint64_t limit);
C4ReplicatorParameters replicatorParameters(C4ReplicatorMode push, C4ReplicatorMode pull);
void startReplicator(C4Replicator*, C4Error&);
c4::ref<C4Database> _db;
#ifdef HAS_COLLECTIONS
C4Collection* _collection {nullptr};
#endif
bool _openedDB {false};
unsigned _transactionSize {0};
bool _inTransaction {false};
Endpoint* _otherEndpoint;
fleece::Stopwatch _stopwatch;
double _lastElapsed {0};
uint64_t _lastDocCount {0};
bool _needNewline {false};
// Replication mode only:
bool _bidirectional {false};
bool _continuous {false};
unsigned _maxRetries = 0; // no retries by default
credentials _credentials;
fleece::alloc_slice _rootCerts;
fleece::alloc_slice _clientCert, _clientCertKey, _clientCertKeyPassword;
fleece::alloc_slice _options;
c4::ref<C4Replicator> _replicator;
static constexpr unsigned kMaxTransactionSize = 100000;
};
| 3,631 | 1,119 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
namespace unifex {
namespace detail {
template <typename, typename = void>
extern const bool _is_executor;
template <typename E, typename R, typename = void>
extern const bool _can_execute;
template <typename S, typename F, typename = void>
extern const bool _can_submit;
} // detail
namespace _execute_cpo {
extern const struct _fn execute;
} // namespace _execute_cpo
using _execute_cpo::execute;
namespace _submit_cpo {
extern const struct _fn submit;
} // namespace _submit_cpo
using _submit_cpo::submit;
namespace _connect_cpo {
extern const struct _fn connect;
} // namespace _connect_cpo
using _connect_cpo::connect;
} // namespace unifex
| 1,339 | 401 |
#include<fast_io.h>
#include<fast_io_device.h>
int main()
try
{
fast_io::obuf_file pf(u8"example.txt",fast_io::open_mode::app);
fast_io::file_lock_guard g(file_lock(pf.handle),fast_io::flock_request_l64{});
fast_io::io_flush_guard g2(pf);
for(std::size_t i{};i!=1000000;++i)
{
print(pf,"Hello ");
print(pf,"World\n");
}
}
catch(fast_io::error e)
{
perrln(e);
return 1;
} | 384 | 195 |
/*=============================================================================
Copyright (c) 2015 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#include <boost/detail/lightweight_test.hpp>
#include <boost/spirit/home/x3.hpp>
#include "test.hpp"
namespace x3 = boost::spirit::x3;
struct my_tag;
struct my_rule_class
{
template <typename Iterator, typename Exception, typename Context>
x3::error_handler_result
on_error(Iterator&, Iterator const&, Exception const&, Context const& context)
{
x3::get<my_tag>(context)++;
return x3::error_handler_result::fail;
}
template <typename Iterator, typename Attribute, typename Context>
inline void
on_success(Iterator const&, Iterator const&, Attribute&, Context const& context)
{
x3::get<my_tag>(context)++;
}
};
int
main()
{
using spirit_test::test_attr;
using spirit_test::test;
using boost::spirit::x3::rule;
using boost::spirit::x3::int_;
using boost::spirit::x3::with;
{ // injecting data into the context in the grammar
int val = 0;
auto r = rule<my_rule_class, char const*>() =
'(' > int_ > ',' > int_ > ')'
;
auto start =
with<my_tag>(std::ref(val)) [ r ]
;
BOOST_TEST(test("(123,456)", start));
BOOST_TEST(!test("(abc,def)", start));
BOOST_TEST(val == 2);
}
{ // injecting non-const lvalue into the context
int val = 0;
auto const r = int_[([](auto& ctx){
x3::get<my_tag>(ctx) += x3::_attr(ctx);
})];
BOOST_TEST(test("123,456", with<my_tag>(val)[r % ',']));
BOOST_TEST(579 == val);
}
{ // injecting rvalue into the context
auto const r1 = int_[([](auto& ctx){
x3::get<my_tag>(ctx) += x3::_attr(ctx);
})];
auto const r2 = rule<struct my_rvalue_rule_class, int>() =
x3::lit('(') >> (r1 % ',') >> x3::lit(')')[([](auto& ctx){
x3::_val(ctx) = x3::get<my_tag>(ctx);
})];
int attr = 0;
BOOST_TEST(test_attr("(1,2,3)", with<my_tag>(100)[r2], attr));
BOOST_TEST(106 == attr);
}
{ // injecting const/non-const lvalue and rvalue into the context
struct functor {
int operator()(int& val) {
return val * 10; // non-const ref returns 10 * injected val
}
int operator()(int const& val) {
return val; // const ref returns injected val
}
};
auto f = [](auto& ctx){
x3::_val(ctx) = x3::_attr(ctx) + functor()(x3::get<my_tag>(ctx));
};
auto const r = rule<struct my_rule_class2, int>() = int_[f];
int attr = 0;
int const cval = 10;
BOOST_TEST(test_attr("5", with<my_tag>(cval)[r], attr));
BOOST_TEST(15 == attr); // x3::get returns const ref to cval
attr = 0;
int val = 10;
BOOST_TEST(test_attr("5", with<my_tag>(val)[r], attr));
BOOST_TEST(105 == attr); // x3::get returns ref to val
attr = 0;
BOOST_TEST(test_attr("5", with<my_tag>(10)[r], attr));
// x3::get returns ref to member variable of with_directive
BOOST_TEST(105 == attr);
}
return boost::report_errors();
}
| 3,529 | 1,198 |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*********************************************************************************/
#include <modules/vectorfieldvisualizationgl/vectorfieldvisualizationglmodule.h>
#include <modules/opengl/shader/shadermanager.h>
#include <modules/vectorfieldvisualizationgl/processors/datageneration/lorenzsystem.h>
#include <modules/vectorfieldvisualizationgl/processors/datageneration/vectorfieldgenerator2d.h>
#include <modules/vectorfieldvisualizationgl/processors/datageneration/vectorfieldgenerator3d.h>
#include <modules/vectorfieldvisualizationgl/processors/datageneration/vectorfieldgenerator4d.h>
#include <modules/vectorfieldvisualizationgl/processors/2d/lic2d.h>
#include <modules/vectorfieldvisualizationgl/processors/2d/hedgehog2d.h>
#include <modules/vectorfieldvisualizationgl/processors/2d/vector2dmagnitude.h>
#include <modules/vectorfieldvisualizationgl/processors/2d/vector2dcurl.h>
#include <modules/vectorfieldvisualizationgl/processors/2d/vector2ddivergence.h>
#include <modules/vectorfieldvisualizationgl/processors/3d/lic3d.h>
#include <modules/vectorfieldvisualizationgl/processors/3d/vector3dcurl.h>
#include <modules/vectorfieldvisualizationgl/processors/3d/vector3ddivergence.h>
#include <modules/vectorfieldvisualizationgl/processors/4d/tmip.h>
// Autogenerated
#include <modules/vectorfieldvisualizationgl/shader_resources.h>
namespace inviwo {
VectorFieldVisualizationGLModule::VectorFieldVisualizationGLModule(InviwoApplication* app)
: InviwoModule(app, "VectorFieldVisualizationGL") {
// Add a directory to the search path of the Shadermanager
vectorfieldvisualizationgl::addShaderResources(ShaderManager::getPtr(),
{getPath(ModulePath::GLSL)});
registerProcessor<LorenzSystem>();
registerProcessor<VectorFieldGenerator2D>();
registerProcessor<VectorFieldGenerator3D>();
registerProcessor<LIC2D>();
registerProcessor<HedgeHog2D>();
registerProcessor<Vector2DMagnitude>();
registerProcessor<Vector2DCurl>();
registerProcessor<Vector2DDivergence>();
registerProcessor<LIC3D>();
registerProcessor<Vector3DCurl>();
registerProcessor<Vector3DDivergence>();
registerProcessor<TMIP>();
registerProcessor<VectorFieldGenerator4D>();
}
int VectorFieldVisualizationGLModule::getVersion() const { return 1; }
std::unique_ptr<VersionConverter> VectorFieldVisualizationGLModule::getConverter(int version) const {
return util::make_unique<Converter>(version);
}
VectorFieldVisualizationGLModule::Converter::Converter(int version) : version_(version) {}
bool VectorFieldVisualizationGLModule::Converter::convert(TxElement* root) {
std::vector<xml::IdentifierReplacement> repl = {};
const std::vector<std::pair<std::string, std::string>> volumeGLrepl = {
{"Vector3DCurl", "vector3dcurl.frag"},
{"Vector3DDivergence", "vector3ddivergence.frag"}};
for (const auto& i : volumeGLrepl) {
xml::IdentifierReplacement inport = { {xml::Kind::processor("org.inviwo." + i.first),
xml::Kind::inport("org.inviwo.VolumeInport")},
i.second + "inport",
"inputVolume" };
xml::IdentifierReplacement outport = { {xml::Kind::processor("org.inviwo." + i.first),
xml::Kind::outport("org.inviwo.VolumeOutport")},
i.second + "outport",
"outputVolume" };
repl.push_back(inport);
repl.push_back(outport);
}
bool res = false;
switch (version_) {
case 0: {
res |= xml::changeIdentifiers(root, repl);
}
return res;
default:
return false; // No changes
}
return true;
}
} // namespace
| 5,412 | 1,613 |
/*
* Copyright (C) 2008 Alp Toker <alp@atoker.com>
* Copyright (C) 2010 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#include "config.h"
#include "FontCustomPlatformData.h"
#include "CairoUtilities.h"
#include "FontCacheFreeType.h"
#include "FontDescription.h"
#include "FontPlatformData.h"
#include "SharedBuffer.h"
#include <cairo-ft.h>
#include <cairo.h>
#include <ft2build.h>
#include FT_MODULE_H
#include <mutex>
namespace WebCore {
static void releaseCustomFontData(void* data)
{
static_cast<SharedBuffer*>(data)->deref();
}
static cairo_user_data_key_t freeTypeFaceKey;
FontCustomPlatformData::FontCustomPlatformData(FT_Face freeTypeFace, SharedBuffer& buffer)
: m_fontFace(adoptRef(cairo_ft_font_face_create_for_ft_face(freeTypeFace, FT_LOAD_DEFAULT)))
{
buffer.ref(); // This is balanced by the buffer->deref() in releaseCustomFontData.
static cairo_user_data_key_t bufferKey;
cairo_font_face_set_user_data(m_fontFace.get(), &bufferKey, &buffer,
static_cast<cairo_destroy_func_t>(releaseCustomFontData));
// Cairo doesn't do FreeType reference counting, so we need to ensure that when
// this cairo_font_face_t is destroyed, it cleans up the FreeType face as well.
cairo_font_face_set_user_data(m_fontFace.get(), &freeTypeFaceKey, freeTypeFace,
reinterpret_cast<cairo_destroy_func_t>(reinterpret_cast<void(*)(void)>(FT_Done_Face)));
}
static RefPtr<FcPattern> defaultFontconfigOptions()
{
// Get some generic default settings from fontconfig for web fonts. Strategy
// from Behdad Esfahbod in https://code.google.com/p/chromium/issues/detail?id=173207#c35
static FcPattern* pattern = nullptr;
static std::once_flag flag;
std::call_once(flag, [](FcPattern*) {
pattern = FcPatternCreate();
FcConfigSubstitute(nullptr, pattern, FcMatchPattern);
cairo_ft_font_options_substitute(getDefaultCairoFontOptions(), pattern);
FcDefaultSubstitute(pattern);
FcPatternDel(pattern, FC_FAMILY);
FcConfigSubstitute(nullptr, pattern, FcMatchFont);
}, pattern);
return adoptRef(FcPatternDuplicate(pattern));
}
FontPlatformData FontCustomPlatformData::fontPlatformData(const FontDescription& description, bool bold, bool italic, const FontFeatureSettings& fontFaceFeatures, FontSelectionSpecifiedCapabilities)
{
auto* freeTypeFace = static_cast<FT_Face>(cairo_font_face_get_user_data(m_fontFace.get(), &freeTypeFaceKey));
ASSERT(freeTypeFace);
RefPtr<FcPattern> pattern = defaultFontconfigOptions();
FcPatternAddString(pattern.get(), FC_FAMILY, reinterpret_cast<const FcChar8*>(freeTypeFace->family_name));
for (auto& fontFaceFeature : fontFaceFeatures) {
if (fontFaceFeature.enabled()) {
const auto& tag = fontFaceFeature.tag();
const char buffer[] = { tag[0], tag[1], tag[2], tag[3], '\0' };
FcPatternAddString(pattern.get(), FC_FONT_FEATURES, reinterpret_cast<const FcChar8*>(buffer));
}
}
#if ENABLE(VARIATION_FONTS)
auto variants = buildVariationSettings(freeTypeFace, description);
if (!variants.isEmpty()) {
FcPatternAddString(pattern.get(), FC_FONT_VARIATIONS, reinterpret_cast<const FcChar8*>(variants.utf8().data()));
}
#endif
return FontPlatformData(m_fontFace.get(), WTFMove(pattern), description.computedPixelSize(), freeTypeFace->face_flags & FT_FACE_FLAG_FIXED_WIDTH, bold, italic, description.orientation());
}
static bool initializeFreeTypeLibrary(FT_Library& library)
{
// https://www.freetype.org/freetype2/docs/design/design-4.html
// https://lists.nongnu.org/archive/html/freetype-devel/2004-10/msg00022.html
FT_Memory memory = bitwise_cast<FT_Memory>(ft_smalloc(sizeof(*memory)));
if (!memory)
return false;
memory->user = nullptr;
memory->alloc = [](FT_Memory, long size) -> void* {
return fastMalloc(size);
};
memory->free = [](FT_Memory, void* block) -> void {
fastFree(block);
};
memory->realloc = [](FT_Memory, long, long newSize, void* block) -> void* {
return fastRealloc(block, newSize);
};
if (FT_New_Library(memory, &library)) {
ft_sfree(memory);
return false;
}
FT_Add_Default_Modules(library);
return true;
}
std::unique_ptr<FontCustomPlatformData> createFontCustomPlatformData(SharedBuffer& buffer, const String&)
{
static FT_Library library;
if (!library && !initializeFreeTypeLibrary(library)) {
library = nullptr;
return nullptr;
}
FT_Face freeTypeFace;
if (FT_New_Memory_Face(library, reinterpret_cast<const FT_Byte*>(buffer.data()), buffer.size(), 0, &freeTypeFace))
return nullptr;
return makeUnique<FontCustomPlatformData>(freeTypeFace, buffer);
}
bool FontCustomPlatformData::supportsFormat(const String& format)
{
return equalLettersIgnoringASCIICase(format, "truetype")
|| equalLettersIgnoringASCIICase(format, "opentype")
#if USE(WOFF2)
|| equalLettersIgnoringASCIICase(format, "woff2")
#if ENABLE(VARIATION_FONTS)
|| equalLettersIgnoringASCIICase(format, "woff2-variations")
#endif
#endif
#if ENABLE(VARIATION_FONTS)
|| equalLettersIgnoringASCIICase(format, "woff-variations")
|| equalLettersIgnoringASCIICase(format, "truetype-variations")
|| equalLettersIgnoringASCIICase(format, "opentype-variations")
#endif
|| equalLettersIgnoringASCIICase(format, "woff");
}
}
| 6,214 | 2,046 |
//$Id$
//------------------------------------------------------------------------------
// NonlinearConstraint
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration.
// All Other Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
// http://www.apache.org/licenses/LICENSE-2.0.
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
// Developed jointly by NASA/GSFC and Thinking Systems, Inc. under contract
// number NNG04CC06P
//
// Author: Wendy Shoan (GSFC/MAB)
// Created: 2006.08.14
//
/**
* Definition for the NonlinearConstraint command class
*/
//------------------------------------------------------------------------------
#ifndef NonlinearConstraint_hpp
#define NonlinearConstraint_hpp
#include "SolverSequenceCommand.hpp"
#include "Solver.hpp"
#include "Parameter.hpp"
#include "ElementWrapper.hpp"
/**
* Command that manages processing for targeter goals.
*/
class GMAT_API NonlinearConstraint : public SolverSequenceCommand
{
public:
NonlinearConstraint();
NonlinearConstraint(const NonlinearConstraint& nlc);
NonlinearConstraint& operator=(const NonlinearConstraint& nlc);
virtual ~NonlinearConstraint();
// inherited from GmatBase
virtual GmatBase* Clone() const;
virtual bool RenameRefObject(const Gmat::ObjectType type,
const std::string &oldName,
const std::string &newName);
virtual const ObjectTypeArray&
GetRefObjectTypeArray();
virtual const StringArray&
GetRefObjectNameArray(const Gmat::ObjectType type);
// Parameter accessors
virtual std::string GetParameterText(const Integer id) const;
virtual Integer GetParameterID(const std::string &str) const;
virtual Gmat::ParameterType
GetParameterType(const Integer id) const;
virtual std::string GetParameterTypeString(const Integer id) const;
virtual Real GetRealParameter(const Integer id) const;
virtual Real SetRealParameter(const Integer id,
const Real value);
virtual std::string GetStringParameter(const Integer id) const;
virtual bool SetStringParameter(const Integer id,
const char *value);
virtual bool SetStringParameter(const Integer id,
const std::string &value);
virtual bool SetRefObject(GmatBase *obj, const Gmat::ObjectType type,
const std::string &name = "");
// Inherited methods overridden from the base class
virtual bool InterpretAction();
virtual const StringArray&
GetWrapperObjectNameArray(bool completeSet = false);
virtual bool SetElementWrapper(ElementWrapper* toWrapper,
const std::string &withName);
virtual void ClearWrappers();
virtual bool Initialize();
virtual bool Execute();
virtual void RunComplete();
virtual const std::string&
GetGeneratingString(Gmat::WriteMode mode,
const std::string &prefix,
const std::string &useName);
DEFAULT_TO_NO_CLONES
protected:
// Parameter IDs
enum
{
OPTIMIZER_NAME = SolverSequenceCommandParamCount,
CONSTRAINT_ARG1,
OPERATOR,
CONSTRAINT_ARG2,
TOLERANCE,
NonlinearConstraintParamCount
};
static const std::string
PARAMETER_TEXT[NonlinearConstraintParamCount - SolverSequenceCommandParamCount];
static const Gmat::ParameterType
PARAMETER_TYPE[NonlinearConstraintParamCount - SolverSequenceCommandParamCount];
enum Operator
{
LESS_THAN_OR_EQUAL = 0,
GREATER_THAN_OR_EQUAL,
EQUAL
};
static const std::string OP_STRINGS[3];
/// The name of the spacecraft that gets maneuvered
std::string optimizerName;
/// The optimizer instance used to manage the optimizer state machine
Solver *optimizer;
/// Name of the variable to be constrained
std::string arg1Name;
// pointer to the Variable that is to be minimized
//Parameter *constraint;
ElementWrapper *arg1;
/// most recent value of the variable
Real constraintValue; // do I still need this?
/// name of the parameter part of the right-hand-side
std::string arg2Name;
//Parameter *nlcParm;
ElementWrapper *arg2;
/// String of value array name // I don't think I need any of this stuff
//std::string nlcArrName;
/// constraint array row index variable name
//std::string nlcArrRowStr;
/// constraint array column index variable name
//std::string nlcArrColStr;
/// constraint array row index
//Integer nlcArrRow;
/// constraint array column index
//Integer nlcArrCol;
//Parameter *nlcArrRowParm;
//Parameter *nlcArrColParm;
/// flag indicating whether or not the constraint is an inequality
/// constraint
bool isInequality;
/// string to send into the optimizer, based on isInequality
std::string isIneqString;
/// the desired value (right hand side of the constraint equation)
Real desiredValue;
/// indicates what type of operator was passed in for the generating
/// string
Operator op;
/// tolerance for the constraint <future>
Real tolerance; // <future>
/// Flag used to finalize the targeter data during execution
bool optimizerDataFinalized;
/// ID for this constraint (returned from the optimizer)
Integer constraintId;
/// is the right hand side a parameter?
//bool isNlcParm;
/// is the right hand side an array?
//bool isNlcArray;
/// Pointer to the object that owns the goal
//GmatBase *constraintObject;
/// Object ID for the parameter
//Integer parmId;
/// flag indicating whether or not the generating string has been interpreted
bool interpreted;
std::string panelDescriptor; // Shows "(<=) Sat.SMA" or whatever
Real panelDesired;
Real panelAchieved;
//bool InterpretParameter(const std::string text,
// std::string ¶mType,
// std::string ¶mObj,
// std::string &parmSystem);
//bool ConstructConstraint(const char* str);
};
#endif // NonlinearConstraint_hpp
| 7,671 | 1,911 |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
| See: https://www.mrpt.org/Authors - All rights reserved. |
| Released under BSD License. See: https://www.mrpt.org/License |
+------------------------------------------------------------------------+ */
#include "hmt_slam_guiMain.h"
#include <mrpt/config/CConfigFileMemory.h>
#include <mrpt/gui/about_box.h>
#include <mrpt/io/CFileGZInputStream.h>
#include <mrpt/serialization/CArchive.h>
#include <wx/msgdlg.h>
#include "MyArtProvider.h"
//(*InternalHeaders(hmt_slam_guiFrame)
#include <wx/artprov.h>
#include <wx/bitmap.h>
#include <wx/font.h>
#include <wx/icon.h>
#include <wx/image.h>
#include <wx/intl.h>
#include <wx/settings.h>
#include <wx/string.h>
#include <wx/tglbtn.h>
//*)
#include <mrpt/system/filesystem.h>
#include <memory>
using namespace std;
using namespace mrpt;
using namespace mrpt::hmtslam;
using namespace mrpt::slam;
using namespace mrpt::config;
using namespace mrpt::io;
using namespace mrpt::system;
using namespace mrpt::poses;
//(*IdInit(hmt_slam_guiFrame)
const long hmt_slam_guiFrame::ID_BUTTON1 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICLINE3 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON2 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON3 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICLINE1 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON4 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON6 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICLINE2 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON12 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON10 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON5 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL1 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT1 = wxNewId();
const long hmt_slam_guiFrame::ID_TEXTCTRL1 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON11 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT6 = wxNewId();
const long hmt_slam_guiFrame::ID_TEXTCTRL2 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL3 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT2 = wxNewId();
const long hmt_slam_guiFrame::ID_CHOICE1 = wxNewId();
const long hmt_slam_guiFrame::ID_TREECTRL1 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL15 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL17 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL16 = wxNewId();
const long hmt_slam_guiFrame::ID_NOTEBOOK2 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT5 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON7 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON8 = wxNewId();
const long hmt_slam_guiFrame::ID_BUTTON9 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL14 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL8 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL5 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT3 = wxNewId();
const long hmt_slam_guiFrame::ID_XY_GLCANVAS = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL11 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL10 = wxNewId();
const long hmt_slam_guiFrame::ID_STATICTEXT4 = wxNewId();
const long hmt_slam_guiFrame::ID_CUSTOM1 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL13 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL12 = wxNewId();
const long hmt_slam_guiFrame::ID_SPLITTERWINDOW2 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL7 = wxNewId();
const long hmt_slam_guiFrame::ID_SPLITTERWINDOW1 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL4 = wxNewId();
const long hmt_slam_guiFrame::ID_NOTEBOOK1 = wxNewId();
const long hmt_slam_guiFrame::ID_PANEL2 = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM1 = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM2 = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM3 = wxNewId();
const long hmt_slam_guiFrame::idMenuQuit = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM6 = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM4 = wxNewId();
const long hmt_slam_guiFrame::ID_MENUITEM5 = wxNewId();
const long hmt_slam_guiFrame::idMenuAbout = wxNewId();
const long hmt_slam_guiFrame::ID_STATUSBAR1 = wxNewId();
//*)
BEGIN_EVENT_TABLE(hmt_slam_guiFrame, wxFrame)
//(*EventTable(hmt_slam_guiFrame)
//*)
END_EVENT_TABLE()
hmt_slam_guiFrame::hmt_slam_guiFrame(wxWindow* parent, wxWindowID id)
{
// Load my custom icons:
wxArtProvider::Push(new CMyArtProvider);
//(*Initialize(hmt_slam_guiFrame)
wxMenuItem* MenuItem2;
wxMenuItem* MenuItem1;
wxFlexGridSizer* FlexGridSizer8;
wxFlexGridSizer* FlexGridSizer1;
wxFlexGridSizer* FlexGridSizer2;
wxFlexGridSizer* FlexGridSizer15;
wxBoxSizer* BoxSizer3;
wxMenu* Menu1;
wxFlexGridSizer* FlexGridSizer17;
wxFlexGridSizer* FlexGridSizer11;
wxFlexGridSizer* FlexGridSizer7;
wxFlexGridSizer* FlexGridSizer4;
wxFlexGridSizer* FlexGridSizer9;
wxFlexGridSizer* FlexGridSizer14;
wxFlexGridSizer* FlexGridSizer6;
wxFlexGridSizer* FlexGridSizer3;
wxMenuItem* MenuItem5;
wxFlexGridSizer* FlexGridSizer16;
wxFlexGridSizer* FlexGridSizer10;
wxBoxSizer* BoxSizer1;
wxFlexGridSizer* FlexGridSizer13;
wxMenuBar* MenuBar1;
wxFlexGridSizer* FlexGridSizer18;
wxMenuItem* MenuItem6;
wxFlexGridSizer* FlexGridSizer12;
wxMenu* Menu2;
wxFlexGridSizer* FlexGridSizer5;
wxMenuItem* MenuItem8;
Create(
parent, id, _("HTM-SLAM - Part of the MRPT project"), wxDefaultPosition,
wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
SetClientSize(wxSize(700, 400));
SetMinSize(wxSize(-1, 300));
{
wxIcon FrameIcon;
FrameIcon.CopyFromBitmap(wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("MAIN_ICON")), wxART_FRAME_ICON));
SetIcon(FrameIcon);
}
FlexGridSizer1 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer1->AddGrowableCol(0);
FlexGridSizer1->AddGrowableRow(1);
Panel1 = new wxPanel(
this, ID_PANEL1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL1"));
FlexGridSizer2 = new wxFlexGridSizer(0, 12, 0, 0);
FlexGridSizer2->AddGrowableCol(8);
btnReset = new wxCustomButton(
Panel1, ID_BUTTON1, _("Reset"),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_RESET")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON1"));
btnReset->SetBitmapDisabled(
btnReset->CreateBitmapDisabled(btnReset->GetBitmapLabel()));
btnReset->SetLabelMargin(wxSize(10, 2));
btnReset->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnReset, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
StaticLine3 = new wxStaticLine(
Panel1, ID_STATICLINE3, wxDefaultPosition, wxSize(1, -1), wxLI_VERTICAL,
_T("ID_STATICLINE3"));
FlexGridSizer2->Add(
StaticLine3, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnLoad = new wxCustomButton(
Panel1, ID_BUTTON2, _("Load state..."),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_LOAD")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON2"));
btnLoad->SetBitmapDisabled(
btnLoad->CreateBitmapDisabled(btnLoad->GetBitmapLabel()));
btnLoad->SetLabelMargin(wxSize(10, 2));
btnLoad->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnLoad, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnSave = new wxCustomButton(
Panel1, ID_BUTTON3, _("Save state.."),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_SAVE")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON3"));
btnSave->SetBitmapDisabled(
btnSave->CreateBitmapDisabled(btnSave->GetBitmapLabel()));
btnSave->SetLabelMargin(wxSize(10, 2));
btnSave->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnSave, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
StaticLine1 = new wxStaticLine(
Panel1, ID_STATICLINE1, wxDefaultPosition, wxSize(1, -1), wxLI_VERTICAL,
_T("ID_STATICLINE1"));
FlexGridSizer2->Add(
StaticLine1, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnStart = new wxCustomButton(
Panel1, ID_BUTTON4, _("START"),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_PLAY")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON4"));
btnStart->SetBitmapDisabled(
btnStart->CreateBitmapDisabled(btnStart->GetBitmapLabel()));
btnStart->SetLabelMargin(wxSize(10, 2));
btnStart->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnStart, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnPause = new wxCustomButton(
Panel1, ID_BUTTON6, _("Pause"),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_STOP")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON6"));
btnPause->SetBitmapDisabled(
btnPause->CreateBitmapDisabled(btnPause->GetBitmapLabel()));
btnPause->SetLabelMargin(wxSize(10, 2));
btnPause->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnPause, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
StaticLine2 = new wxStaticLine(
Panel1, ID_STATICLINE2, wxDefaultPosition, wxSize(1, -1), wxLI_VERTICAL,
_T("ID_STATICLINE2"));
FlexGridSizer2->Add(
StaticLine2, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnShowLogWin = new wxCustomButton(
Panel1, ID_BUTTON12, _("Show log"),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_LOG")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON12"));
btnShowLogWin->SetBitmapDisabled(
btnShowLogWin->CreateBitmapDisabled(btnShowLogWin->GetBitmapLabel()));
btnShowLogWin->SetLabelMargin(wxSize(10, 2));
btnShowLogWin->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(
btnShowLogWin, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
FlexGridSizer2->Add(
-1, -1, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnAbout = new wxCustomButton(
Panel1, ID_BUTTON10, _("About..."),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_ABOUT")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON10"));
btnAbout->SetBitmapDisabled(
btnAbout->CreateBitmapDisabled(btnAbout->GetBitmapLabel()));
btnAbout->SetLabelMargin(wxSize(10, 2));
btnAbout->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnAbout, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnQuit = new wxCustomButton(
Panel1, ID_BUTTON5, _("Quit"),
wxArtProvider::GetBitmap(
wxART_MAKE_ART_ID_FROM_STR(_T("ICON_QUIT")),
wxART_MAKE_CLIENT_ID_FROM_STR(wxString(wxEmptyString))),
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON5"));
btnQuit->SetBitmapDisabled(
btnQuit->CreateBitmapDisabled(btnQuit->GetBitmapLabel()));
btnQuit->SetLabelMargin(wxSize(10, 2));
btnQuit->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer2->Add(btnQuit, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
Panel1->SetSizer(FlexGridSizer2);
FlexGridSizer2->Fit(Panel1);
FlexGridSizer2->SetSizeHints(Panel1);
FlexGridSizer1->Add(
Panel1, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Panel2 = new wxPanel(
this, ID_PANEL2, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL2"));
FlexGridSizer3 = new wxFlexGridSizer(1, 1, 0, 0);
FlexGridSizer3->AddGrowableCol(0);
FlexGridSizer3->AddGrowableRow(0);
Notebook1 = new wxNotebook(
Panel2, ID_NOTEBOOK1, wxDefaultPosition, wxDefaultSize, 0,
_T("ID_NOTEBOOK1"));
panConfig = new wxPanel(
Notebook1, ID_PANEL3, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL3"));
FlexGridSizer16 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer16->AddGrowableCol(0);
FlexGridSizer16->AddGrowableRow(1);
FlexGridSizer17 = new wxFlexGridSizer(1, 3, 0, 0);
FlexGridSizer17->AddGrowableCol(1);
StaticText1 = new wxStaticText(
panConfig, ID_STATICTEXT1, _("Input rawlog file:"), wxDefaultPosition,
wxDefaultSize, 0, _T("ID_STATICTEXT1"));
FlexGridSizer17->Add(
StaticText1, 1, wxALL | wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, 5);
edInputRawlog = new wxTextCtrl(
panConfig, ID_TEXTCTRL1, _("dataset.rawlog"), wxDefaultPosition,
wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
FlexGridSizer17->Add(
edInputRawlog, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnPickRawlog = new wxButton(
panConfig, ID_BUTTON11, _("Pick..."), wxDefaultPosition, wxDefaultSize,
0, wxDefaultValidator, _T("ID_BUTTON11"));
FlexGridSizer17->Add(
btnPickRawlog, 1, wxALL | wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL, 5);
FlexGridSizer16->Add(
FlexGridSizer17, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM,
0);
FlexGridSizer18 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer18->AddGrowableCol(0);
FlexGridSizer18->AddGrowableRow(1);
StaticText6 = new wxStaticText(
panConfig, ID_STATICTEXT6, _("More parameters:"), wxDefaultPosition,
wxDefaultSize, 0, _T("ID_STATICTEXT6"));
FlexGridSizer18->Add(
StaticText6, 1, wxALL | wxALIGN_BOTTOM | wxALIGN_CENTER_HORIZONTAL, 5);
edRestParams = new wxTextCtrl(
panConfig, ID_TEXTCTRL2,
_("//====================================================\n// "
" HMT-SLAM\n// Here come global parameters for the "
"app.\n//"
"====================================================\n[HMT-SLAM]"
"\n\n// The directory where the log files will be saved (left in "
"blank if no log is required)\nLOG_OUTPUT_DIR\t= "
"LOG_HTMSLAM_MALAGA\n\nrawlog_offset\t= 0\t\t// Whether to skip some "
"rawlog entries \nLOG_FREQUENCY\t= 20\t// The frequency of log files "
"generation:\nLOG_SHOW3D\t\t= 1\nrandom_seed\t\t= 1234\t// "
"0:Randomize, !=0:use that seed.\n\n// "
"--------------------------------\n// Local SLAM method "
"selection:\n// 1: RBPF_2DLASER\n// "
"--------------------------------\nSLAM_METHOD=1\n\n//"
"SLAM_MIN_DIST_BETWEEN_OBS=1.0\t\t// Map updates threshold "
"(meters)\n//SLAM_MIN_HEADING_BETWEEN_OBS_DEG=50\t// Map updates "
"threshold (degrees)\n\nSLAM_MIN_DIST_BETWEEN_OBS=1.25\t\t// Map "
"updates threshold (meters)\nSLAM_MIN_HEADING_BETWEEN_OBS_DEG=30\t// "
"Map updates threshold (degrees)\n\nMIN_ODOMETRY_STD_XY\t\t= "
"0.05\t\t// Minimum sigma in odometry increments "
"(meters)\nMIN_ODOMETRY_STD_PHI\t= 2\t\t\t// Minimum sigma in "
"odometry increments (deg)\n\n// Loop closure detectors:\n// "
"gridmaps\n// images\nTLC_DETECTORS=gridmaps\n\n// "
"====================================================\n// "
"TLC_GRIDMATCHING\n//\n// Top. Loop-closure detector based on "
"grid-matching\n// "
"====================================================\n[TLC_"
"GRIDMATCHING]\nfeatsPerSquareMeter\t\t= "
"0.012\n\nthreshold_max\t\t\t= 0.20 \t\t// For considering candidate "
"matches\nthreshold_delta\t\t\t= 0.09\n\nransac_prob_good_inliers = "
"0.9999999999 // Prob. of a good inliers (for the number of "
"iterations).\n\nmaxKLd_for_merge = 0.9\t\t// Merge of close "
"SOG modes\n\nmin_ICP_goodness\t= 0.25\nmax_ICP_mahadist\t= 20 //10 "
"// The maximum Mahalanobis distance between the initial and final "
"poses in the ICP not to discard the hypothesis "
"(default=10)\n\nransac_minSetSizeRatio\t= 0.15 // "
"0.20\n\nransac_mahalanobisDistanceThreshold\t= 6\t\t// amRobust "
"method only\nransac_chi2_quantile\t= 0.5 \t\t\t\t// "
"amModifiedRANSAC method only\n\nsave_feat_coors\t\t\t= 0\t\t// Dump "
"correspondences to grid_feats\ndebug_save_map_pairs\t= 1\t\t// Save "
"the pair of maps with the best "
"correspondences\ndebug_show_corrs\t\t= 0\t\t// Debug output of "
"graphs\n\n\n// "
"----------------------------------------------------------\n// All "
"the params of the feature detectors/descriptors\n// "
"----------------------------------------------------------"
"\nfeatsType\t\t\t= 1\t\t// 0: KLT, 1: Harris, 3: SIFT, 4: "
"SURF\n\n// The feature descriptor to use: 0=detector already has "
"descriptor, \n// 1= SIFT, 2=SURF, 4=Spin images, 8=Polar images, "
"16=log-polar images \nfeature_descriptor\t\t= 8\n\npatchSize\t\t\t= "
"0 \t// Not needed\n\nKLTOptions.min_distance\t\t= 6\t\t\t// "
"Pixels\nKLTOptions.threshold\t\t= 0.01 // 0.10 // "
"0.20\n\nharrisOptions.min_distance\t= 6\t\t\t// "
"Pixels\nharrisOptions.threshold \t= 0.10 // "
"0.20\n\nSIFTOptions.implementation\t= 3\t\t\t// "
"Hess\n\nSURFOptions.rotation_invariant\t= 1\t\t// 0=64 dims, "
"1=128dims\n\nSpinImagesOptions.hist_size_distance\t= 10 "
"\nSpinImagesOptions.hist_size_intensity\t= 10 "
"\nSpinImagesOptions.radius\t\t\t= "
"20\n\nPolarImagesOptions.bins_angle\t\t\t= "
"8\nPolarImagesOptions.bins_distance\t\t= "
"6\nPolarImagesOptions.radius\t\t\t= "
"40\n\nLogPolarImagesOptions.radius\t\t\t= "
"20\nLogPolarImagesOptions.num_angles\t\t= 8\n\n\n\n// "
"====================================================\n//\n// "
" \tPARTICLE_FILTER\n//\n// Parameters of the PARTICLE FILTER "
"within each LMH,\n// invoked & implemented in "
"CLSLAM_RBPF_2DLASER\n// "
"====================================================\n[PARTICLE_"
"FILTER]\n//"
"--------------------------------------------------------------------"
"--------------\n// The Particle Filter algorithm:\n//\t0: "
"pfStandardProposal\n//\t1: pfAuxiliaryPFStandard\n//\t2: "
"pfOptimalProposal *** (ICP,...)\n//\t3: pfAuxiliaryPFOptimal\t "
" *** (Optimal SAMPLING)\n//\n// See: "
"http://www.mrpt.org/Particle_Filters\n//"
"--------------------------------------------------------------------"
"--------------\nPF_algorithm=3\n\nadaptiveSampleSize\t= 0\t\t// 0: "
"Fixed # of particles, 1: KLD "
"adaptive\n\n//"
"--------------------------------------------------------------------"
"--------------\n// The Particle Filter Resampling method:\n//\t0: "
"prMultinomial\n//\t1: prResidual\n//\t2: prStratified\n//\t3: "
"prSystematic\n//\n// See: /docs/html/topic_resampling.html or "
"http://www.mrpt.org/ "
"topic_resampling.html\n//"
"--------------------------------------------------------------------"
"--------------\nresamplingMethod=0\npfAuxFilterOptimal_"
"MaximumSearchSamples = 250\t\t// For PF "
"algorithm=3\n\nsampleSize\t= 5\t\t// Number of particles (for fixed "
"number algorithms)\nBETA\t\t= 0.50\t// Resampling ESS "
"threshold\t\npowFactor\t= 0.01\t\t\t// A \"power factor\" for "
"updating weights\t\t\t\n\n\n// "
"====================================================\n//"
"\t\tGRAPH_CUT\n//\n// Params for Area Abstraction (AA)\n// "
"====================================================\n[GRAPH_CUT]"
"\npartitionThreshold = 0.6 // In the range "
"[0,1]. Lower gives larger clusters.\nminDistForCorrespondence "
" = 0.50\nuseMapMatching = "
"1\nminimumNumberElementsEachCluster = 5\n\n// "
"====================================================\n//\n// "
" MULTIMETRIC MAP CONFIGURATION\n//\n// The params for creating "
"the metric maps for \n// each LMH.\n// "
"====================================================\n[MetricMaps]"
"\n// Creation of maps:\noccupancyGrid_count\t\t\t= "
"1\ngasGrid_count\t\t\t\t= 0\nlandmarksMap_count\t\t\t= "
"0\nbeaconMap_count\t\t\t\t= 0\npointsMap_count\t\t\t\t= 1\n\n// "
"Selection of map for likelihood: (fuseAll=-1,occGrid=0, "
"points=1,landmarks=2,gasGrid=3)\nlikelihoodMapSelection\t\t= "
"0\n\n// Enables (1) / Disables (0) insertion into specific "
"maps:\nenableInsertion_pointsMap\t= "
"1\nenableInsertion_landmarksMap= 1\nenableInsertion_beaconMap\t= "
"1\nenableInsertion_gridMaps\t= 1\nenableInsertion_gasGridMaps\t= "
"1\n\n// ====================================================\n// "
"MULTIMETRIC MAP: OccGrid #00\n// "
"====================================================\n// Creation "
"Options for OccupancyGridMap "
"00:\n[MetricMaps_occupancyGrid_00_creationOpts]\nresolution=0."
"07\ndisableSaveAs3DObject=0\n\n\n// Insertion Options for "
"OccupancyGridMap "
"00:\n[MetricMaps_occupancyGrid_00_insertOpts]"
"\nmapAltitude\t\t\t\t\t\t\t= 0\nuseMapAltitude\t\t\t\t\t\t= "
"0\nmaxDistanceInsertion\t\t\t\t= "
"35\nmaxOccupancyUpdateCertainty\t\t\t= "
"0.60\nconsiderInvalidRangesAsFreeSpace\t= "
"1\nminLaserScanNoiseStd\t\t\t\t= "
"0.001\nhorizontalTolerance\t\t\t\t\t= 0.9 // In "
"degrees\n\nCFD_features_gaussian_size\t\t\t= "
"3\nCFD_features_median_size\t\t\t= 3\n\n\n// Likelihood Options for "
"OccupancyGridMap "
"00:\n[MetricMaps_occupancyGrid_00_likelihoodOpts]"
"\nlikelihoodMethod\t\t\t\t= 4 // 0=MI, 1=Beam Model, 2=RSLC, "
"3=Cells Difs, 4=LF_Thrun, 5=LF_II\nLF_decimation\t\t\t\t\t= "
"4\nLF_stdHit\t\t\t\t\t\t= 0.10\nLF_maxCorrsDistance\t\t\t\t= "
"0.50\nLF_zHit\t\t\t\t\t\t\t= 0.999\nLF_zRandom\t\t\t\t\t\t= "
"0.001\nLF_maxRange\t\t\t\t\t\t= 60\nLF_alternateAverageMethod\t\t= "
"0\nenableLikelihoodCache\t\t\t= 1\n\n// "
"====================================================\n// "
"MULTIMETRIC MAP: PointMap #00\n// "
"====================================================\n// Creation "
"Options for Pointsmap 00:\n// Creation Options for OccupancyGridMap "
"00:\n[MetricMaps_PointsMap_00_creationOpts]\ndisableSaveAs3DObject="
"0\n\n[MetricMaps_PointsMap_00_insertOpts]"
"\nminDistBetweenLaserPoints=0.05 // The minimum distance between "
"points (in 3D): If two points are too close, one of them is not "
"inserted into the map.\nisPlanarMap=0 // If set "
"to true, only HORIZONTAL (i.e. XY plane) measurements will be "
"inserted in the map. Default value is false, thus 3D maps are "
"generated\n"),
wxDefaultPosition, wxDefaultSize,
wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB | wxTE_MULTILINE | wxHSCROLL |
wxALWAYS_SHOW_SB,
wxDefaultValidator, _T("ID_TEXTCTRL2"));
wxFont edRestParamsFont(
8, wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxNORMAL, false,
wxEmptyString, wxFONTENCODING_DEFAULT);
edRestParams->SetFont(edRestParamsFont);
FlexGridSizer18->Add(
edRestParams, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 1);
FlexGridSizer16->Add(
FlexGridSizer18, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM,
0);
panConfig->SetSizer(FlexGridSizer16);
FlexGridSizer16->Fit(panConfig);
FlexGridSizer16->SetSizeHints(panConfig);
panMapView = new wxPanel(
Notebook1, ID_PANEL4, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL4"));
FlexGridSizer4 = new wxFlexGridSizer(1, 1, 0, 0);
FlexGridSizer4->AddGrowableCol(0);
FlexGridSizer4->AddGrowableRow(0);
SplitterWindow1 = new wxSplitterWindow(
panMapView, ID_SPLITTERWINDOW1, wxPoint(176, 320), wxDefaultSize,
wxSP_3D | wxSP_LIVE_UPDATE, _T("ID_SPLITTERWINDOW1"));
SplitterWindow1->SetMinSize(wxSize(10, 10));
SplitterWindow1->SetMinimumPaneSize(10);
Panel3 = new wxPanel(
SplitterWindow1, ID_PANEL5, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_PANEL5"));
FlexGridSizer5 = new wxFlexGridSizer(3, 1, 0, 0);
FlexGridSizer5->AddGrowableCol(0);
FlexGridSizer5->AddGrowableRow(1);
FlexGridSizer7 = new wxFlexGridSizer(0, 2, 0, 0);
StaticText2 = new wxStaticText(
Panel3, ID_STATICTEXT2, _("Select hypothesis:"), wxDefaultPosition,
wxDefaultSize, 0, _T("ID_STATICTEXT2"));
FlexGridSizer7->Add(
StaticText2, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
cbHypos = new wxChoice(
Panel3, ID_CHOICE1, wxDefaultPosition, wxDefaultSize, 0, nullptr, 0,
wxDefaultValidator, _T("ID_CHOICE1"));
FlexGridSizer7->Add(
cbHypos, 1, wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL,
5);
FlexGridSizer5->Add(
FlexGridSizer7, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Notebook2 = new wxNotebook(
Panel3, ID_NOTEBOOK2, wxDefaultPosition, wxDefaultSize, wxNB_MULTILINE,
_T("ID_NOTEBOOK2"));
panTreeView = new wxPanel(
Notebook2, ID_PANEL15, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_PANEL15"));
FlexGridSizer15 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer15->AddGrowableCol(0);
FlexGridSizer15->AddGrowableRow(0);
treeView = new wxTreeCtrl(
panTreeView, ID_TREECTRL1, wxDefaultPosition, wxDefaultSize,
wxTR_LINES_AT_ROOT | wxTR_MULTIPLE | wxTR_DEFAULT_STYLE | wxVSCROLL |
wxHSCROLL,
wxDefaultValidator, _T("ID_TREECTRL1"));
FlexGridSizer15->Add(
treeView, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
panTreeView->SetSizer(FlexGridSizer15);
FlexGridSizer15->Fit(panTreeView);
FlexGridSizer15->SetSizeHints(panTreeView);
Panel15 = new wxPanel(
Notebook2, ID_PANEL17, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_PANEL17"));
Panel14 = new wxPanel(
Notebook2, ID_PANEL16, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_PANEL16"));
Notebook2->AddPage(panTreeView, _("Tree view"), true);
Notebook2->AddPage(Panel15, _("All nodes"), false);
Notebook2->AddPage(Panel14, _("All arcs"), false);
FlexGridSizer5->Add(
Notebook2, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 1);
Panel8 = new wxPanel(
Panel3, ID_PANEL8, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL8"));
FlexGridSizer8 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer8->AddGrowableCol(0);
FlexGridSizer8->AddGrowableRow(0);
BoxSizer3 = new wxBoxSizer(wxHORIZONTAL);
StaticText5 = new wxStaticText(
Panel8, ID_STATICTEXT5, _("Edit the map"), wxDefaultPosition,
wxDefaultSize, wxALIGN_CENTRE, _T("ID_STATICTEXT5"));
wxFont StaticText5Font = wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT);
if (!StaticText5Font.Ok())
StaticText5Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
StaticText5Font.SetPointSize(
(int)(StaticText5Font.GetPointSize() * 1.000000));
StaticText5Font.SetWeight(wxFONTWEIGHT_BOLD);
StaticText5->SetFont(StaticText5Font);
BoxSizer3->Add(
StaticText5, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
FlexGridSizer8->Add(
BoxSizer3, 1, wxALL | wxALIGN_BOTTOM | wxALIGN_CENTER_HORIZONTAL, 0);
Panel12 = new wxPanel(
Panel8, ID_PANEL14, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL14"));
FlexGridSizer14 = new wxFlexGridSizer(2, 1, 0, 0);
FlexGridSizer14->AddGrowableCol(0);
FlexGridSizer6 = new wxFlexGridSizer(0, 3, 0, 0);
btnImportArea = new wxCustomButton(
Panel12, ID_BUTTON7, _("Import area/metric map..."), wxNullBitmap,
wxDefaultPosition, wxDefaultSize,
wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON7"));
btnImportArea->SetLabelMargin(wxSize(10, 2));
btnImportArea->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer6->Add(
btnImportArea, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
FlexGridSizer14->Add(
FlexGridSizer6, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
FlexGridSizer9 = new wxFlexGridSizer(0, 3, 0, 0);
btnAddNode = new wxCustomButton(
Panel12, ID_BUTTON8, _("Add node..."), wxNullBitmap, wxDefaultPosition,
wxDefaultSize, wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON8"));
btnAddNode->SetLabelMargin(wxSize(10, 2));
btnAddNode->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer9->Add(
btnAddNode, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
btnAddArc = new wxCustomButton(
Panel12, ID_BUTTON9, _("Add arc..."), wxNullBitmap, wxDefaultPosition,
wxDefaultSize, wxCUSTBUT_BUTTON | wxCUSTBUT_BOTTOM | wxCUSTBUT_FLAT,
wxDefaultValidator, _T("ID_BUTTON9"));
btnAddArc->SetLabelMargin(wxSize(10, 2));
btnAddArc->SetBitmapMargin(wxSize(-1, 3));
FlexGridSizer9->Add(btnAddArc, 1, wxALL | wxALIGN_LEFT | wxALIGN_BOTTOM, 5);
FlexGridSizer14->Add(
FlexGridSizer9, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Panel12->SetSizer(FlexGridSizer14);
FlexGridSizer14->Fit(Panel12);
FlexGridSizer14->SetSizeHints(Panel12);
FlexGridSizer8->Add(
Panel12, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Panel8->SetSizer(FlexGridSizer8);
FlexGridSizer8->Fit(Panel8);
FlexGridSizer8->SetSizeHints(Panel8);
FlexGridSizer5->Add(
Panel8, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Panel3->SetSizer(FlexGridSizer5);
FlexGridSizer5->Fit(Panel3);
FlexGridSizer5->SetSizeHints(Panel3);
Panel4 = new wxPanel(
SplitterWindow1, ID_PANEL7, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_PANEL7"));
BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
SplitterWindow2 = new wxSplitterWindow(
Panel4, ID_SPLITTERWINDOW2, wxDefaultPosition, wxDefaultSize,
wxSP_3D | wxSP_LIVE_UPDATE, _T("ID_SPLITTERWINDOW2"));
SplitterWindow2->SetMinSize(wxSize(60, 60));
SplitterWindow2->SetMinimumPaneSize(60);
Panel6 = new wxPanel(
SplitterWindow2, ID_PANEL10, wxDefaultPosition, wxSize(100, 100),
wxTAB_TRAVERSAL, _T("ID_PANEL10"));
Panel6->SetMinSize(wxSize(100, 100));
FlexGridSizer10 = new wxFlexGridSizer(0, 1, 0, 0);
FlexGridSizer10->AddGrowableCol(0);
FlexGridSizer10->AddGrowableRow(1);
StaticText3 = new wxStaticText(
Panel6, ID_STATICTEXT3, _("Global HMT map"), wxDefaultPosition,
wxDefaultSize, wxALIGN_CENTRE, _T("ID_STATICTEXT3"));
wxFont StaticText3Font = wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT);
if (!StaticText3Font.Ok())
StaticText3Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
StaticText3Font.SetPointSize(
(int)(StaticText3Font.GetPointSize() * 1.000000));
StaticText3Font.SetWeight(wxFONTWEIGHT_BOLD);
StaticText3->SetFont(StaticText3Font);
FlexGridSizer10->Add(
StaticText3, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
Panel7 = new wxPanel(
Panel6, ID_PANEL11, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL11"));
FlexGridSizer11 = new wxFlexGridSizer(0, 1, 0, 0);
FlexGridSizer11->AddGrowableCol(0);
FlexGridSizer11->AddGrowableRow(0);
m_glGlobalHMTMap = new CMyGLCanvas(
Panel7, ID_XY_GLCANVAS, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL, _T("ID_XY_GLCANVAS"));
FlexGridSizer11->Add(
m_glGlobalHMTMap, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM,
0);
Panel7->SetSizer(FlexGridSizer11);
FlexGridSizer11->Fit(Panel7);
FlexGridSizer11->SetSizeHints(Panel7);
FlexGridSizer10->Add(
Panel7, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP, 0);
Panel6->SetSizer(FlexGridSizer10);
FlexGridSizer10->SetSizeHints(Panel6);
Panel10 = new wxPanel(
SplitterWindow2, ID_PANEL12, wxDefaultPosition, wxSize(100, 100),
wxTAB_TRAVERSAL, _T("ID_PANEL12"));
Panel10->SetMinSize(wxSize(100, 100));
FlexGridSizer12 = new wxFlexGridSizer(0, 1, 0, 0);
FlexGridSizer12->AddGrowableCol(0);
FlexGridSizer12->AddGrowableRow(1);
StaticText4 = new wxStaticText(
Panel10, ID_STATICTEXT4, _("Selected area local map"),
wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE, _T("ID_STATICTEXT4"));
wxFont StaticText4Font = wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT);
if (!StaticText4Font.Ok())
StaticText4Font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
StaticText4Font.SetPointSize(
(int)(StaticText4Font.GetPointSize() * 1.000000));
StaticText4Font.SetWeight(wxFONTWEIGHT_BOLD);
StaticText4->SetFont(StaticText4Font);
FlexGridSizer12->Add(
StaticText4, 1,
wxALL | wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL, 5);
Panel11 = new wxPanel(
Panel10, ID_PANEL13, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_PANEL13"));
FlexGridSizer13 = new wxFlexGridSizer(0, 1, 0, 0);
FlexGridSizer13->AddGrowableCol(0);
FlexGridSizer13->AddGrowableRow(0);
m_glLocalArea = new CMyGLCanvas(
Panel11, ID_CUSTOM1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL,
_T("ID_CUSTOM1"));
FlexGridSizer13->Add(
m_glLocalArea, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
Panel11->SetSizer(FlexGridSizer13);
FlexGridSizer13->Fit(Panel11);
FlexGridSizer13->SetSizeHints(Panel11);
FlexGridSizer12->Add(
Panel11, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP, 0);
Panel10->SetSizer(FlexGridSizer12);
FlexGridSizer12->SetSizeHints(Panel10);
SplitterWindow2->SplitHorizontally(Panel6, Panel10);
BoxSizer1->Add(
SplitterWindow2, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP, 0);
Panel4->SetSizer(BoxSizer1);
BoxSizer1->Fit(Panel4);
BoxSizer1->SetSizeHints(Panel4);
SplitterWindow1->SplitVertically(Panel3, Panel4);
FlexGridSizer4->Add(
SplitterWindow1, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM,
0);
panMapView->SetSizer(FlexGridSizer4);
FlexGridSizer4->Fit(panMapView);
FlexGridSizer4->SetSizeHints(panMapView);
Notebook1->AddPage(panConfig, _("SLAM parameters"), false);
Notebook1->AddPage(panMapView, _("HMT-MAP view"), true);
FlexGridSizer3->Add(
Notebook1, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 1);
Panel2->SetSizer(FlexGridSizer3);
FlexGridSizer3->Fit(Panel2);
FlexGridSizer3->SetSizeHints(Panel2);
FlexGridSizer1->Add(
Panel2, 1, wxALL | wxEXPAND | wxALIGN_LEFT | wxALIGN_BOTTOM, 0);
SetSizer(FlexGridSizer1);
MenuBar1 = new wxMenuBar();
Menu1 = new wxMenu();
MenuItem3 = new wxMenuItem(
Menu1, ID_MENUITEM1, _("Reset HMT map"), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem3);
Menu1->AppendSeparator();
MenuItem4 = new wxMenuItem(
Menu1, ID_MENUITEM2, _("Load state..."), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem4);
MenuItem5 = new wxMenuItem(
Menu1, ID_MENUITEM3, _("Save state..."), wxEmptyString, wxITEM_NORMAL);
Menu1->Append(MenuItem5);
Menu1->AppendSeparator();
MenuItem1 = new wxMenuItem(
Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"),
wxITEM_NORMAL);
Menu1->Append(MenuItem1);
MenuBar1->Append(Menu1, _("&File"));
Menu3 = new wxMenu();
MenuItem8 = new wxMenuItem(
Menu3, ID_MENUITEM6, _("Set parameters"), wxEmptyString, wxITEM_NORMAL);
Menu3->Append(MenuItem8);
Menu3->AppendSeparator();
MenuItem6 = new wxMenuItem(
Menu3, ID_MENUITEM4, _("Start SLAM"), wxEmptyString, wxITEM_NORMAL);
Menu3->Append(MenuItem6);
MenuItem7 = new wxMenuItem(
Menu3, ID_MENUITEM5, _("Pause SLAM"), wxEmptyString, wxITEM_NORMAL);
Menu3->Append(MenuItem7);
MenuBar1->Append(Menu3, _("Map Building"));
Menu2 = new wxMenu();
MenuItem2 = new wxMenuItem(
Menu2, idMenuAbout, _("About\tF1"),
_("Show info about this application"), wxITEM_NORMAL);
Menu2->Append(MenuItem2);
MenuBar1->Append(Menu2, _("Help"));
SetMenuBar(MenuBar1);
StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
int __wxStatusBarWidths_1[1] = {-1};
int __wxStatusBarStyles_1[1] = {wxSB_NORMAL};
StatusBar1->SetFieldsCount(1, __wxStatusBarWidths_1);
StatusBar1->SetStatusStyles(1, __wxStatusBarStyles_1);
SetStatusBar(StatusBar1);
FlexGridSizer1->SetSizeHints(this);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnResetClick, this, ID_BUTTON1);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnLoadClick, this, ID_BUTTON2);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnSaveClick, this, ID_BUTTON3);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnStartClick, this, ID_BUTTON4);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnPauseClick, this, ID_BUTTON6);
Bind(
wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnShowLogWinClick, this,
ID_BUTTON12);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnAbout, this, ID_BUTTON10);
Bind(wxEVT_BUTTON, &hmt_slam_guiFrame::OnQuit, this, ID_BUTTON5);
Bind(
wxEVT_BUTTON, &hmt_slam_guiFrame::OnbtnPickRawlogClick, this,
ID_BUTTON11);
Bind(
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
&hmt_slam_guiFrame::OnNotebook2PageChanged, this, ID_NOTEBOOK2);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnbtnResetClick, this, ID_MENUITEM1);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnbtnLoadClick, this, ID_MENUITEM2);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnbtnSaveClick, this, ID_MENUITEM3);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnQuit, this, idMenuQuit);
Bind(
wxEVT_MENU, &hmt_slam_guiFrame::OnMenuSetSLAMParameter, this,
ID_MENUITEM6);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnbtnStartClick, this, ID_MENUITEM4);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnbtnPauseClick, this, ID_MENUITEM5);
Bind(wxEVT_MENU, &hmt_slam_guiFrame::OnAbout, this, idMenuAbout);
//*)
// Initialize data ========================================================
// Create log window:
m_logWin = new CDlgLog(this);
// { wxCommandEvent dum; OnbtnShowLogWinClick(dum); }
cout << "Initializing HMT-SLAM visual application...\n";
m_hmtslam = std::make_unique<CHMTSLAM>();
cout << "Initializing HMT-SLAM visual application DONE.\n";
// Reset HMT map:
{
wxCommandEvent dum;
OnbtnResetClick(dum);
}
// Launch Thread:
m_hThreadHMTSLAM = std::thread(&hmt_slam_guiFrame::thread_HMTSLAM, this);
// Set default size of the window:
this->SetSize(600, 500);
this->Maximize();
}
hmt_slam_guiFrame::~hmt_slam_guiFrame()
{
WX_START_TRY
// Stop thread:
m_thread_in_queue.push(new TThreadMsg(OP_QUIT_THREAD));
if (m_hThreadHMTSLAM.joinable()) m_hThreadHMTSLAM.join();
//(*Destroy(hmt_slam_guiFrame)
//*)
WX_END_TRY
}
void hmt_slam_guiFrame::OnQuit(wxCommandEvent&) { Close(); }
void hmt_slam_guiFrame::OnAbout(wxCommandEvent&)
{
mrpt::gui::show_mrpt_about_box_wxWidgets(this, "htm-slam-gui");
}
void hmt_slam_guiFrame::OnNotebook2PageChanged(wxNotebookEvent& event) {}
void hmt_slam_guiFrame::loadHMTConfigFromSettings()
{
std::string s;
// From the text block:
s += std::string(edRestParams->GetValue().mb_str());
CConfigFileMemory cfg(s);
// From GUI controls:
cfg.write(
"HMT-SLAM", "rawlog_file",
std::string(this->edInputRawlog->GetValue().mb_str()));
// Load
m_hmtslam->loadOptions(cfg);
}
// RESET =======
void hmt_slam_guiFrame::OnbtnResetClick(wxCommandEvent& event)
{
WX_START_TRY
this->loadHMTConfigFromSettings();
m_hmtslam->initializeEmptyMap();
updateAllMapViews();
WX_END_TRY
}
void hmt_slam_guiFrame::OnbtnLoadClick(wxCommandEvent& event)
{
string fil;
if (AskForOpenHMTMap(fil)) loadHTMSLAMFromFile(fil);
}
bool hmt_slam_guiFrame::loadHTMSLAMFromFile(const std::string& filePath)
{
WX_START_TRY
if (!fileExists(filePath))
{
wxMessageBox(
string(string("File doesn't exist:\n") + filePath).c_str(),
_("Error loading file"), wxOK, this);
return false;
}
wxBusyCursor busy;
// Save the path
WX_START_TRY
string the_path(extractFileDirectory(filePath));
// iniFile->write(iniFileSect,"LastDir", the_path );
WX_END_TRY
// Load
{
CFileGZInputStream f(filePath);
mrpt::serialization::archiveFrom(f) >> *m_hmtslam;
}
m_curFileOpen = filePath;
// Refresh views:
// ---------------------------
// The tree:
rebuildTreeView();
// The global map:
updateGlobalMapView();
return true;
WX_END_TRY
return false;
}
void hmt_slam_guiFrame::rebuildTreeView()
{
WX_START_TRY
wxBusyCursor waitCursor;
treeView->DeleteAllItems();
treeView->SetQuickBestSize(true);
// Root element & Areas:
wxTreeItemId root = treeView->AddRoot(_("Areas"), 0, -1, nullptr);
CHierarchicalMHMap::const_iterator it;
size_t i;
for (i = 0, it = m_hmtslam->m_map.begin(); it != m_hmtslam->m_map.end();
it++, i++)
{
string str = format("Area %i", (int)it->second->getID());
// wxTreeItemId treeNode =
treeView->AppendItem(
root, str.c_str(), 0, -1, new CItemData(it->second, i));
}
treeView->ExpandAll();
// List of hypotheses:
cbHypos->Clear();
for (const auto& h : m_hmtslam->m_LMHs)
cbHypos->Append(format("%i", (int)h.first));
cbHypos->SetSelection(0);
WX_END_TRY
}
//------------------------------------------------------------------------
// Asks the user for a file, return false if user cancels
//------------------------------------------------------------------------
bool hmt_slam_guiFrame::AskForOpenHMTMap(std::string& fil)
{
wxString caption = wxT("Choose a file to open");
wxString wildcard = wxT(
"HMT-SLAM files (*.hmtslam;*.hmtslam.gz)|*.hmtslam;*.hmtslam.gz|All "
"files (*.*)|*.*");
wxString defaultDir;
wxString defaultFilename;
wxFileDialog dialog(
this, caption, defaultDir, defaultFilename, wildcard,
wxFD_OPEN | wxFD_FILE_MUST_EXIST);
if (dialog.ShowModal() == wxID_OK)
{
fil = string(dialog.GetPath().mb_str());
return true;
}
else
return false;
}
void hmt_slam_guiFrame::OnbtnSaveClick(wxCommandEvent& event) {}
void hmt_slam_guiFrame::OnbtnStartClick(wxCommandEvent& event)
{
m_thread_in_queue.push(new TThreadMsg(OP_START_SLAM));
}
void hmt_slam_guiFrame::OnbtnPauseClick(wxCommandEvent& event)
{
m_thread_in_queue.push(new TThreadMsg(OP_PAUSE_SLAM));
}
void hmt_slam_guiFrame::OnMenuSetSLAMParameter(wxCommandEvent& event) {}
void hmt_slam_guiFrame::OnbtnPickRawlogClick(wxCommandEvent& event) {}
void hmt_slam_guiFrame::OnbtnShowLogWinClick(wxCommandEvent& event)
{
if (m_logWin->IsVisible())
{
m_logWin->Hide();
btnShowLogWin->SetValue(false);
btnShowLogWin->Refresh();
}
else
{
m_logWin->Show();
btnShowLogWin->SetValue(true);
btnShowLogWin->Refresh();
}
}
| 41,979 | 18,680 |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file was generated by Djinni from constants.djinni
#include "NativeConstantsInterface.hpp" // my header
#include "NativeConstantRecord.hpp"
namespace djinni_generated {
em::val NativeConstantsInterface::cppProxyMethods() {
static const em::val methods = em::val::array(std::vector<std::string> {
"dummy",
});
return methods;
}
void NativeConstantsInterface::dummy(const CppType& self) {
self->dummy();
}
EMSCRIPTEN_BINDINGS(testsuite_constants_interface) {
::djinni::DjinniClass_<::testsuite::ConstantsInterface>("testsuite_ConstantsInterface", "testsuite.ConstantsInterface")
.smart_ptr<std::shared_ptr<::testsuite::ConstantsInterface>>("testsuite_ConstantsInterface")
.function("nativeDestroy", &NativeConstantsInterface::nativeDestroy)
.function("dummy", NativeConstantsInterface::dummy)
;
}
namespace {
EM_JS(void, djinni_init_testsuite_constants_interface_consts, (), {
if (!('testsuite_ConstantsInterface' in Module)) {
Module.testsuite_ConstantsInterface = {};
}
Module.testsuite_ConstantsInterface.BOOL_CONSTANT = true;
Module.testsuite_ConstantsInterface.I8_CONSTANT = 1;
Module.testsuite_ConstantsInterface.I16_CONSTANT = 2;
Module.testsuite_ConstantsInterface.I32_CONSTANT = 3;
Module.testsuite_ConstantsInterface.I64_CONSTANT = BigInt("4");
Module.testsuite_ConstantsInterface.F32_CONSTANT = 5.0;
Module.testsuite_ConstantsInterface.F64_CONSTANT = 5.0;
Module.testsuite_ConstantsInterface.OPT_BOOL_CONSTANT = true;
Module.testsuite_ConstantsInterface.OPT_I8_CONSTANT = 1;
Module.testsuite_ConstantsInterface.OPT_I16_CONSTANT = 2;
Module.testsuite_ConstantsInterface.OPT_I32_CONSTANT = 3;
Module.testsuite_ConstantsInterface.OPT_I64_CONSTANT = 4;
Module.testsuite_ConstantsInterface.OPT_F32_CONSTANT = 5.0;
Module.testsuite_ConstantsInterface.OPT_F64_CONSTANT = 5.0;
Module.testsuite_ConstantsInterface.STRING_CONSTANT = "string-constant";
Module.testsuite_ConstantsInterface.OPT_STRING_CONSTANT = "string-constant";
Module.testsuite_ConstantsInterface.OBJECT_CONSTANT = {
someInteger: Module.testsuite_ConstantsInterface.I32_CONSTANT,
someString: Module.testsuite_ConstantsInterface.STRING_CONSTANT
}
;
Module.testsuite_ConstantsInterface.UPPER_CASE_CONSTANT = "upper-case-constant";
})
}
void NativeConstantsInterface::staticInitializeConstants() {
static std::once_flag initOnce;
std::call_once(initOnce, [] {
djinni_init_testsuite_constants_interface_consts();
::djinni::djinni_register_name_in_ns("testsuite_ConstantsInterface", "testsuite.ConstantsInterface");
});
}
EMSCRIPTEN_BINDINGS(testsuite_constants_interface_consts) {
NativeConstantsInterface::staticInitializeConstants();
}
} // namespace djinni_generated
| 3,003 | 923 |
/****************************************************************************/
/// @file NIImporter_MATSim.cpp
/// @author Daniel Krajzewicz
/// @author Jakob Erdmann
/// @author Michael Behrisch
/// @date Tue, 26.04.2011
/// @version $Id$
///
// Importer for networks stored in MATSim format
/****************************************************************************/
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
// Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
/****************************************************************************/
//
// This file is part of SUMO.
// SUMO is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
/****************************************************************************/
// ===========================================================================
// included modules
// ===========================================================================
#ifdef _MSC_VER
#include <windows_config.h>
#else
#include <config.h>
#endif
#include <set>
#include <functional>
#include <sstream>
#include <utils/xml/SUMOSAXHandler.h>
#include <utils/common/ToString.h>
#include <utils/common/MsgHandler.h>
#include <netbuild/NBEdge.h>
#include <netbuild/NBEdgeCont.h>
#include <netbuild/NBNode.h>
#include <netbuild/NBNodeCont.h>
#include <netbuild/NBNetBuilder.h>
#include <utils/geom/GeoConvHelper.h>
#include <utils/options/OptionsCont.h>
#include <utils/common/FileHelpers.h>
#include <utils/common/StringTokenizer.h>
#include <utils/common/TplConvert.h>
#include <utils/xml/XMLSubSys.h>
#include "NILoader.h"
#include "NIImporter_MATSim.h"
// ===========================================================================
// static variables
// ===========================================================================
StringBijection<int>::Entry NIImporter_MATSim::matsimTags[] = {
{ "network", NIImporter_MATSim::MATSIM_TAG_NETWORK },
{ "node", NIImporter_MATSim::MATSIM_TAG_NODE },
{ "link", NIImporter_MATSim::MATSIM_TAG_LINK },
{ "links", NIImporter_MATSim::MATSIM_TAG_LINKS },
{ "", NIImporter_MATSim::MATSIM_TAG_NOTHING }
};
StringBijection<int>::Entry NIImporter_MATSim::matsimAttrs[] = {
{ "id", NIImporter_MATSim::MATSIM_ATTR_ID },
{ "x", NIImporter_MATSim::MATSIM_ATTR_X },
{ "y", NIImporter_MATSim::MATSIM_ATTR_Y },
{ "from", NIImporter_MATSim::MATSIM_ATTR_FROM },
{ "to", NIImporter_MATSim::MATSIM_ATTR_TO },
{ "length", NIImporter_MATSim::MATSIM_ATTR_LENGTH },
{ "freespeed", NIImporter_MATSim::MATSIM_ATTR_FREESPEED },
{ "capacity", NIImporter_MATSim::MATSIM_ATTR_CAPACITY },
{ "permlanes", NIImporter_MATSim::MATSIM_ATTR_PERMLANES },
{ "oneway", NIImporter_MATSim::MATSIM_ATTR_ONEWAY },
{ "modes", NIImporter_MATSim::MATSIM_ATTR_MODES },
{ "origid", NIImporter_MATSim::MATSIM_ATTR_ORIGID },
{ "capperiod", NIImporter_MATSim::MATSIM_ATTR_CAPPERIOD },
{ "capDivider", NIImporter_MATSim::MATSIM_ATTR_CAPDIVIDER },
{ "", NIImporter_MATSim::MATSIM_ATTR_NOTHING }
};
// ===========================================================================
// method definitions
// ===========================================================================
// ---------------------------------------------------------------------------
// static methods
// ---------------------------------------------------------------------------
void
NIImporter_MATSim::loadNetwork(const OptionsCont& oc, NBNetBuilder& nb) {
// check whether the option is set (properly)
if (!oc.isSet("matsim-files")) {
return;
}
/* Parse file(s)
* Each file is parsed twice: first for nodes, second for edges. */
std::vector<std::string> files = oc.getStringVector("matsim-files");
// load nodes, first
NodesHandler nodesHandler(nb.getNodeCont());
for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
// nodes
if (!FileHelpers::isReadable(*file)) {
WRITE_ERROR("Could not open matsim-file '" + *file + "'.");
return;
}
nodesHandler.setFileName(*file);
PROGRESS_BEGIN_MESSAGE("Parsing nodes from matsim-file '" + *file + "'");
if (!XMLSubSys::runParser(nodesHandler, *file)) {
return;
}
PROGRESS_DONE_MESSAGE();
}
// load edges, then
EdgesHandler edgesHandler(nb.getNodeCont(), nb.getEdgeCont(), oc.getBool("matsim.keep-length"),
oc.getBool("matsim.lanes-from-capacity"), NBCapacity2Lanes(oc.getFloat("lanes-from-capacity.norm")));
for (std::vector<std::string>::const_iterator file = files.begin(); file != files.end(); ++file) {
// edges
edgesHandler.setFileName(*file);
PROGRESS_BEGIN_MESSAGE("Parsing edges from matsim-file '" + *file + "'");
XMLSubSys::runParser(edgesHandler, *file);
PROGRESS_DONE_MESSAGE();
}
}
// ---------------------------------------------------------------------------
// definitions of NIImporter_MATSim::NodesHandler-methods
// ---------------------------------------------------------------------------
NIImporter_MATSim::NodesHandler::NodesHandler(NBNodeCont& toFill)
: GenericSAXHandler(matsimTags, MATSIM_TAG_NOTHING,
matsimAttrs, MATSIM_ATTR_NOTHING,
"matsim - file"), myNodeCont(toFill) {
}
NIImporter_MATSim::NodesHandler::~NodesHandler() {}
void
NIImporter_MATSim::NodesHandler::myStartElement(int element, const SUMOSAXAttributes& attrs) {
if (element != MATSIM_TAG_NODE) {
return;
}
// get the id, report a warning if not given or empty...
bool ok = true;
std::string id = attrs.get<std::string>(MATSIM_ATTR_ID, 0, ok);
double x = attrs.get<double>(MATSIM_ATTR_X, id.c_str(), ok);
double y = attrs.get<double>(MATSIM_ATTR_Y, id.c_str(), ok);
if (!ok) {
return;
}
Position pos(x, y);
if (!NBNetBuilder::transformCoordinate(pos)) {
WRITE_ERROR("Unable to project coordinates for node '" + id + "'.");
}
NBNode* node = new NBNode(id, pos);
if (!myNodeCont.insert(node)) {
delete node;
WRITE_ERROR("Could not add node '" + id + "'. Probably declared twice.");
}
}
// ---------------------------------------------------------------------------
// definitions of NIImporter_MATSim::EdgesHandler-methods
// ---------------------------------------------------------------------------
NIImporter_MATSim::EdgesHandler::EdgesHandler(const NBNodeCont& nc, NBEdgeCont& toFill,
bool keepEdgeLengths, bool lanesFromCapacity,
NBCapacity2Lanes capacity2Lanes)
: GenericSAXHandler(matsimTags, MATSIM_TAG_NOTHING,
matsimAttrs, MATSIM_ATTR_NOTHING, "matsim - file"),
myNodeCont(nc), myEdgeCont(toFill), myCapacityNorm(3600),
myKeepEdgeLengths(keepEdgeLengths), myLanesFromCapacity(lanesFromCapacity),
myCapacity2Lanes(capacity2Lanes) {
}
NIImporter_MATSim::EdgesHandler::~EdgesHandler() {
}
void
NIImporter_MATSim::EdgesHandler::myStartElement(int element,
const SUMOSAXAttributes& attrs) {
bool ok = true;
if (element == MATSIM_TAG_NETWORK) {
if (attrs.hasAttribute(MATSIM_ATTR_CAPDIVIDER)) {
int capDivider = attrs.get<int>(MATSIM_ATTR_CAPDIVIDER, "network", ok);
if (ok) {
myCapacityNorm = (double)(capDivider * 3600);
}
}
}
if (element == MATSIM_TAG_LINKS) {
bool ok = true;
std::string capperiod = attrs.get<std::string>(MATSIM_ATTR_CAPPERIOD, "links", ok);
StringTokenizer st(capperiod, ":");
if (st.size() != 3) {
WRITE_ERROR("Bogus capacity period format; requires 'hh:mm:ss'.");
return;
}
try {
int hours = TplConvert::_2int(st.next().c_str());
int minutes = TplConvert::_2int(st.next().c_str());
int seconds = TplConvert::_2int(st.next().c_str());
myCapacityNorm = (double)(hours * 3600 + minutes * 60 + seconds);
} catch (NumberFormatException&) {
} catch (EmptyData&) {
}
return;
}
// parse "link" elements
if (element != MATSIM_TAG_LINK) {
return;
}
std::string id = attrs.get<std::string>(MATSIM_ATTR_ID, 0, ok);
std::string fromNodeID = attrs.get<std::string>(MATSIM_ATTR_FROM, id.c_str(), ok);
std::string toNodeID = attrs.get<std::string>(MATSIM_ATTR_TO, id.c_str(), ok);
double length = attrs.get<double>(MATSIM_ATTR_LENGTH, id.c_str(), ok); // override computed?
double freeSpeed = attrs.get<double>(MATSIM_ATTR_FREESPEED, id.c_str(), ok); //
double capacity = attrs.get<double>(MATSIM_ATTR_CAPACITY, id.c_str(), ok); // override permLanes?
double permLanes = attrs.get<double>(MATSIM_ATTR_PERMLANES, id.c_str(), ok);
//bool oneWay = attrs.getOpt<bool>(MATSIM_ATTR_ONEWAY, id.c_str(), ok, true); // mandatory?
std::string modes = attrs.getOpt<std::string>(MATSIM_ATTR_MODES, id.c_str(), ok, ""); // which values?
std::string origid = attrs.getOpt<std::string>(MATSIM_ATTR_ORIGID, id.c_str(), ok, "");
NBNode* fromNode = myNodeCont.retrieve(fromNodeID);
NBNode* toNode = myNodeCont.retrieve(toNodeID);
if (fromNode == 0) {
WRITE_ERROR("Could not find from-node for edge '" + id + "'.");
}
if (toNode == 0) {
WRITE_ERROR("Could not find to-node for edge '" + id + "'.");
}
if (fromNode == 0 || toNode == 0) {
return;
}
if (myLanesFromCapacity) {
permLanes = myCapacity2Lanes.get(capacity);
}
NBEdge* edge = new NBEdge(id, fromNode, toNode, "", freeSpeed, (int) permLanes, -1, NBEdge::UNSPECIFIED_WIDTH, NBEdge::UNSPECIFIED_OFFSET);
edge->addParameter("capacity", toString(capacity));
if (myKeepEdgeLengths) {
edge->setLoadedLength(length);
}
if (!myEdgeCont.insert(edge)) {
delete edge;
WRITE_ERROR("Could not add edge '" + id + "'. Probably declared twice.");
}
}
/****************************************************************************/
| 10,555 | 3,547 |
#include <sstream>
#include <cmath>
#include <windows.h>
#include "Time.h"
#include "Logger.h"
namespace renderer
{
Time::Time()
:m_tStart(),
m_tEnd(),
m_dt(0),
m_systemTimer(0),
m_numFrames(0),
m_fps(0)
{
}
Time::~Time()
{
}
void Time::OnTimerEndCalled()
{
m_dt = abs(std::chrono::duration_cast<std::chrono::milliseconds>(m_tEnd - m_tStart).count());
if (m_systemTimer >= 1000) //1 second = 1000 milliseconds
{
OnSystemTimeStep();
}
m_systemTimer += m_dt;
++m_numFrames;
}
void Time::OnSystemTimeStep()
{
m_fps = m_numFrames; //record number of frames passed in a second.
m_systemTimer = 0;
m_numFrames = 0;
Logger::GetInstance().LogInfo(std::to_string(m_fps).c_str());
}
} | 882 | 325 |
/*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "runtime.hpp"
namespace reshade::vulkan
{
class device_impl;
class command_queue_impl;
class swapchain_impl : public api::api_object_impl<VkSwapchainKHR, runtime>
{
static const uint32_t NUM_SYNC_SEMAPHORES = 4;
public:
swapchain_impl(device_impl *device, command_queue_impl *graphics_queue);
~swapchain_impl();
void get_back_buffer(uint32_t index, api::resource *out) final;
uint32_t get_back_buffer_count() const final;
uint32_t get_current_back_buffer_index() const final;
bool on_init(VkSwapchainKHR swapchain, const VkSwapchainCreateInfoKHR &desc, HWND hwnd);
void on_reset();
void on_present(VkQueue queue, const uint32_t swapchain_image_index, std::vector<VkSemaphore> &wait);
bool on_layer_submit(uint32_t eye, VkImage source, const VkExtent2D &source_extent, VkFormat source_format, VkSampleCountFlags source_samples, uint32_t source_layer_index, const float bounds[4], VkImage *target_image);
private:
VkQueue _queue = VK_NULL_HANDLE;
uint32_t _queue_sync_index = 0;
VkSemaphore _queue_sync_semaphores[NUM_SYNC_SEMAPHORES] = {};
uint32_t _swap_index = 0;
std::vector<VkImage> _swapchain_images;
};
}
| 1,300 | 518 |
// StringSet C++ class
#include "burner.h"
int __cdecl StringSet::Add(TCHAR* szFormat,...)
{
TCHAR szAdd[256];
int nAddLen = 0;
TCHAR* NewMem;
va_list Arg;
va_start(Arg, szFormat);
_vstprintf(szAdd, szFormat, Arg);
nAddLen = _tcslen(szAdd); // find out the length of the new text
NewMem = (TCHAR*)realloc(szText, (nLen + nAddLen + 1) * sizeof(TCHAR));
if (NewMem) {
szText = NewMem;
// copy the new text to the end
_tcsncpy(szText + nLen, szAdd, nAddLen);
nLen += nAddLen;
szText[nLen] = 0; // zero-terminate
}
va_end(Arg);
return 0;
}
int StringSet::Reset()
{
// Reset the text
nLen = 0;
szText= (TCHAR*)realloc(szText, sizeof(TCHAR));
if (szText == NULL) {
return 1;
}
szText[0] = 0;
return 0;
}
StringSet::StringSet()
{
szText = NULL;
nLen = 0;
Reset(); // reset string to nothing
}
StringSet::~StringSet()
{
realloc(szText, 0); // Free BZip text
}
| 963 | 444 |
// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
// TestConvolution.h
#include <gtest/gtest.h>
#include <vw/Image/Convolution.h>
#include <vw/Image/ImageView.h>
#include <vw/Image/PixelTypes.h>
#include <vw/Image/Algorithms.h>
#include <vw/Image/ImageViewRef.h>
#include <vw/Image/Filter.h>
#include <test/Helpers.h>
using namespace vw;
// Simple Comparison
template <template<class> class TraitT, class T>
static bool bool_trait( T const& /*arg*/ ) {
return TraitT<T>::value;
}
template <class T1, class T2>
static bool is_of_type( T2 ) {
return boost::is_same<T1,T2>::value;
}
template <class T1, class T2>
static bool has_pixel_type( T2 ) {
return boost::is_same<T1,typename T2::pixel_type>::value;
}
TEST( Convolution, Point1D ) {
ImageView<double> src(3,1); src(0,0)=1; src(1,0)=2; src(2,0)=3;
double kernel[] = {2,3,-1};
EXPECT_EQ( correlate_1d_at_point(src.origin(), (double*)kernel,3), 5 );
ASSERT_TRUE( is_of_type<double>( correlate_1d_at_point( ImageView<double>().origin(), (double*)0, 0 ) ) );
ASSERT_TRUE( is_of_type<PixelRGB<float> >( correlate_1d_at_point( ImageView<PixelRGB<uint8> >().origin(), (float*)0, 0 ) ) );
}
TEST( Convolution, Point2D ) {
ImageView<double> src(2,2); src(0,0)=1; src(1,0)=2; src(0,1)=3; src(1,1)=4;
ImageView<double> krn(2,2); krn(0,0)=2; krn(1,0)=-1; krn(0,1)=0; krn(1,1)=3;
EXPECT_EQ( correlate_2d_at_point(src.origin(),krn.origin(),2,2), 12 );
ASSERT_TRUE( is_of_type<double>( correlate_2d_at_point( ImageView<double>().origin(), ImageView<double>().origin(), 0, 0 ) ) );
ASSERT_TRUE( is_of_type<PixelRGB<float> >( correlate_2d_at_point( ImageView<PixelRGB<uint8> >().origin(), ImageView<float>().origin(), 0, 0 ) ) );
}
TEST( Convolution, View ) {
ImageView<double> src(2,2); src(0,0)=1; src(1,0)=2; src(0,1)=3; src(1,1)=4;
ImageView<double> krn(2,2); krn(0,0)=2; krn(1,0)=-1; krn(0,1)=0; krn(1,1)=3;
ConvolutionView<ImageView<double>,ImageView<double>,ZeroEdgeExtension> cnv( src, krn );
// Test individual pixel access
EXPECT_EQ( cnv.cols(), 2 );
EXPECT_EQ( cnv.rows(), 2 );
EXPECT_EQ( cnv.planes(), 1 );
EXPECT_EQ( cnv(0,0), 2 );
EXPECT_EQ( cnv(1,0), 3 );
EXPECT_EQ( cnv(0,1), 6 );
EXPECT_EQ( cnv(1,1), 8 );
// Test rasterization
ImageView<double> dst = cnv;
EXPECT_EQ( dst.cols(), 2 );
EXPECT_EQ( dst.rows(), 2 );
EXPECT_EQ( dst(0,0), 2 );
EXPECT_EQ( dst(1,0), 3 );
EXPECT_EQ( dst(0,1), 6 );
EXPECT_EQ( dst(1,1), 8 );
// Test the traits
ASSERT_TRUE( is_of_type<double>( cnv(0,0) ) );
ASSERT_TRUE( is_of_type<double>( *(cnv.origin()) ) );
ASSERT_FALSE( bool_trait<IsResizable>( cnv ) );
ASSERT_FALSE( bool_trait<IsMultiplyAccessible>( cnv ) );
ASSERT_FALSE( bool_trait<IsFloatingPointIndexable>( cnv ) );
ASSERT_TRUE( bool_trait<IsImageView>( cnv ) );
}
TEST( Convolution, SeparableView ) {
ImageView<double> src(2,2); src(0,0)=1; src(1,0)=2; src(0,1)=3; src(1,1)=4;
std::vector<double> krn; krn.push_back(1); krn.push_back(-1);
SeparableConvolutionView<ImageView<double>,double,ZeroEdgeExtension> cnv( src, krn, krn );
// Test individual pixel access
EXPECT_EQ( cnv.cols(), 2 );
EXPECT_EQ( cnv.rows(), 2 );
EXPECT_EQ( cnv.planes(), 1 );
EXPECT_EQ( cnv(0,0), 1 );
EXPECT_EQ( cnv(0,1), 2 );
EXPECT_EQ( cnv(1,0), 1 );
EXPECT_EQ( cnv(1,1), 0 );
// Test rasterization
ImageView<double> dst = cnv;
EXPECT_EQ( dst.cols(), 2 );
EXPECT_EQ( dst.rows(), 2 );
EXPECT_EQ( dst.planes(), 1 );
EXPECT_EQ( dst(0,0), 1 );
EXPECT_EQ( dst(0,1), 2 );
EXPECT_EQ( dst(1,0), 1 );
EXPECT_EQ( dst(1,1), 0 );
// Test the traits
ASSERT_TRUE( is_of_type<double>( cnv(0,0) ) );
ASSERT_TRUE( is_of_type<double>( *(cnv.origin()) ) );
ASSERT_FALSE( bool_trait<IsResizable>( cnv ) );
ASSERT_FALSE( bool_trait<IsMultiplyAccessible>( cnv ) );
ASSERT_FALSE( bool_trait<IsFloatingPointIndexable>( cnv ) );
ASSERT_TRUE( bool_trait<IsImageView>( cnv ) );
}
TEST( Convolution, SeparableView_0x2 ) {
ImageView<double> src(2,2); src(0,0)=1; src(1,0)=2; src(0,1)=4; src(1,1)=6;
std::vector<double> krnx;
std::vector<double> krny; krny.push_back(1); krny.push_back(-1);
SeparableConvolutionView<ImageView<double>,double,ZeroEdgeExtension> cnv( src, krnx, krny );
// Test individual pixel access
EXPECT_EQ( cnv.cols(), 2 );
EXPECT_EQ( cnv.rows(), 2 );
EXPECT_EQ( cnv.planes(), 1 );
EXPECT_EQ( cnv(0,0), 1 );
EXPECT_EQ( cnv(0,1), 3 );
EXPECT_EQ( cnv(1,0), 2 );
EXPECT_EQ( cnv(1,1), 4 );
// Test rasterization
ImageView<double> dst = cnv;
EXPECT_EQ( dst.cols(), 2 );
EXPECT_EQ( dst.rows(), 2 );
EXPECT_EQ( dst.planes(), 1 );
EXPECT_EQ( dst(0,0), 1 );
EXPECT_EQ( dst(0,1), 3 );
EXPECT_EQ( dst(1,0), 2 );
EXPECT_EQ( dst(1,1), 4 );
// Test the traits
ASSERT_TRUE( is_of_type<double>( cnv(0,0) ) );
ASSERT_TRUE( is_of_type<double>( *(cnv.origin()) ) );
ASSERT_FALSE( bool_trait<IsResizable>( cnv ) );
ASSERT_FALSE( bool_trait<IsMultiplyAccessible>( cnv ) );
ASSERT_FALSE( bool_trait<IsFloatingPointIndexable>( cnv ) );
ASSERT_TRUE( bool_trait<IsImageView>( cnv ) );
}
TEST( Convolution, SeparableView_2x0 ) {
ImageView<double> src(2,2); src(0,0)=1; src(1,0)=2; src(0,1)=3; src(1,1)=4;
std::vector<double> krnx; krnx.push_back(1); krnx.push_back(-1);
std::vector<double> krny;
SeparableConvolutionView<ImageView<double>,double,ZeroEdgeExtension> cnv( src, krnx, krny );
// Test individual pixel access
EXPECT_EQ( cnv.cols(), 2 );
EXPECT_EQ( cnv.rows(), 2 );
EXPECT_EQ( cnv.planes(), 1 );
EXPECT_EQ( cnv(0,0), 1 );
EXPECT_EQ( cnv(1,0), 1 );
EXPECT_EQ( cnv(0,1), 3 );
EXPECT_EQ( cnv(1,1), 1 );
// Test rasterization
ImageView<double> dst = cnv;
EXPECT_EQ( dst.cols(), 2 );
EXPECT_EQ( dst.rows(), 2 );
EXPECT_EQ( dst.planes(), 1 );
EXPECT_EQ( dst(0,0), 1 );
EXPECT_EQ( dst(1,0), 1 );
EXPECT_EQ( dst(0,1), 3 );
EXPECT_EQ( dst(1,1), 1 );
// Test the traits
ASSERT_TRUE( is_of_type<double>( cnv(0,0) ) );
ASSERT_TRUE( is_of_type<double>( *(cnv.origin()) ) );
ASSERT_FALSE( bool_trait<IsResizable>( cnv ) );
ASSERT_FALSE( bool_trait<IsMultiplyAccessible>( cnv ) );
ASSERT_FALSE( bool_trait<IsFloatingPointIndexable>( cnv ) );
ASSERT_TRUE( bool_trait<IsImageView>( cnv ) );
}
TEST( Convolution, SeparableView_Compound ) {
ImageView<PixelGray<float32> > src(2,2); src(0,0)=1; src(1,0)=0.2; src(0,1)=0.3; src(1,1)=0.4;
std::vector<double> krn; krn.push_back(1); krn.push_back(-1);
SeparableConvolutionView<ImageView<PixelGray<float32> >,double,ZeroEdgeExtension> cnv( src, krn, krn );
PixelGray<float32> monkey = cnv(0,1);
ASSERT_TRUE( is_of_type<PixelGray<float32> >( cnv(0,0) ) );
}
// This unit test catches a bug in the separable convolution code
// that was causing the shift due to a crop operation to be applied
// twice to image view operations that included two layers of edge
// extension or convolution.
TEST( Convolution, Prerasterize ) {
ImageView<float> test_image(1024,1024);
fill(test_image,1.0);
ImageViewRef<float> two_edge_extend_operations = edge_extend(gaussian_filter(channel_cast<float>(channels_to_planes(test_image)),1.5), ZeroEdgeExtension());
BBox2i bbox(100,0,1024,1024);
ImageView<float> right_buf = crop( two_edge_extend_operations, bbox );
EXPECT_EQ(right_buf(1000,100), 0.0);
EXPECT_EQ(right_buf(900,100), 1.0);
}
| 7,492 | 3,436 |
// Author: wwylele
// https://github.com/wwylele
// Forked by pbsag/tcadr
// https://github.com/pbsag/tcadr
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
#define short_miss -32767
#define long_miss -2147483647
#define flt_miss -3.402823466e+38F
#define dbl_miss -1.7976931348623158e+308
//' Scan a binary TransCAD File
//'
//' This is a C++ implementation written by Amar Sarvepalli and adapted for Rcpp
//' by Greg Macfarlane.
//'
//' @param bin_file string with the path to the .bin file.
//' @param name character vector of each variable.
//' @param type CharacterVector with the information type for each variable.
//' @param start NumericVector with the number of bytes in which the variable
//' starts.
//' @param width NumericVector with the number of bytes given for a variable.
//' @param row_length int showing the number of bytes in a row.
//'
//' @details All input parameter values are available in the \code{.DCB} file
//' read by \link{read_dcb}. This is an internal function and should not
//' normally be used independent of \link{read_tcad}.
//'
//' @return characters in each element of the vector
//'
// [[Rcpp::export]]
void get_df_from_binary(
string bin_file, string dcb_file, string out_file /*
vector<string> name, vector<string> type,
vector<double> start, vector<double> width,
int row_length*/
)
{
vector<string> name;
vector<string> type;
vector<int> start;
vector<int> width;
int row_length;
FILE* dcb = fopen(dcb_file.c_str(), "rt");
fscanf(dcb, "%d binary\n", &row_length);
FILE*out = fopen(out_file.c_str(), "wt");
char t_name[100];
char t_type;
int t_start;
int t_width;
int a, b, c;
while(fscanf(dcb, "\"%[^\"]\",%c,%d,%d,%d,%d,%d\n", t_name, &t_type, &t_start, &t_width, &a, &b, &c)==7) {
name.emplace_back(t_name);
type.emplace_back(1, t_type);
start.push_back(t_start);
width.push_back(t_width);
//printf("%s %s %d %d\n", name.back().c_str(), type.back().c_str(), start.back(), width.back());
}
fprintf(out, "\n");
fclose(dcb);
// vector<int> numericvector
// Create a list with the appropriate number of fields
int n_fields = name.size();
int line_pos;
int n_rows;
int file_size;
string NA_STRING="NA";
char* memblock ;
// Open the binary data file and make sure it exists
std::fstream bf;
bf.open(bin_file.c_str(), ios::in | ios::binary | ios::ate);
if(!bf.is_open()){
throw std::range_error("could not open binary file");
}
file_size = bf.tellg();
n_rows = file_size / row_length;
// Loop through fields
for (int i = 0; i < n_fields; i++){
fprintf(out, "\n%s, ", name[i].c_str());
//Integer fields
if(type[i] == "I"){
// Loop over rows in data
for (int j = 0; j < n_rows; j++){
// where do we read from?
line_pos = j * row_length + start[i] - 1;
bf.seekg(line_pos, ios::beg);
int value;
bf.read((char*)&value, 4);
if (value == long_miss) {
fprintf(out, "NA, ");
} else {
fprintf(out, "%d, ", value);
}
}
// Short fields (integer)
} else if(type[i] == "S"){
short x;
for (int j = 0; j < n_rows; j++){
line_pos = j * row_length + start[i] - 1;
bf.seekg(line_pos, ios::beg);
bf.read((char*)&x, 2);
if (x == short_miss) {
fprintf(out, "NA, ");
} else {
fprintf(out, "%d, ", x);
}
}
// Real fields (double)
} else if(type[i] == "R"){
for (int j = 0; j < n_rows; j++){
line_pos = j * row_length + start[i] - 1;
bf.seekg(line_pos, ios::beg);
double value;
bf.read((char*)&value, 8);
if (value == dbl_miss) {
fprintf(out, "NA, ");
} else {
fprintf(out, "%f, ", value);
}
}
// Float fields (single)
} else if(type[i] == "F"){
vector<double> current_vec(n_rows);
float x;
for (int j = 0; j < n_rows; j++){
line_pos = j * row_length + start[i] - 1;
bf.seekg(line_pos, ios::beg);
bf.read((char*)&x, 4);
if (x == flt_miss) {
fprintf(out, "NA, ");
} else {
fprintf(out, "%f, ",x);
}
}
// Character fields
} else if(type[i] == "C") {
vector<string> current_vec(n_rows);
// Loop over rows in data
for (int j = 0; j < n_rows; j++){
// where do we read from?
char memblock[100]{};
line_pos = j * row_length + start[i] - 1;
bf.seekg(line_pos, ios::beg);
bf.read(memblock, width[i]);
fprintf(out, "%s, ", memblock);
}
} else {
}
}
//Close file
bf.close();
fclose(out);
}
int main(int argc, char** argv) {
get_df_from_binary(argv[1], argv[2], argv[3]);
}
| 4,892 | 1,865 |
/** private imeplementation.
* https://github.com/azadkuh/qhttp
*
* @author amir zamani
* @version 2.0.0
* @date 2014-07-11
*/
#ifndef QHTTPSERVER_REQUEST_PRIVATE_HPP
#define QHTTPSERVER_REQUEST_PRIVATE_HPP
///////////////////////////////////////////////////////////////////////////////
#include "httpreader.hxx"
#include "qhttpserverrequest.hpp"
#include "qhttpserverconnection.hpp"
///////////////////////////////////////////////////////////////////////////////
namespace qhttp {
namespace server {
///////////////////////////////////////////////////////////////////////////////
class QHttpRequestPrivate :
public details::HttpReader<details::HttpRequestBase>
{
protected:
Q_DECLARE_PUBLIC(QHttpRequest)
QHttpRequest* const q_ptr;
public:
explicit QHttpRequestPrivate(QHttpConnection* conn, QHttpRequest* q) : q_ptr(q), iconnection(conn) {
QHTTP_LINE_DEEPLOG
}
virtual ~QHttpRequestPrivate();
void initialize() {
}
public:
QString iremoteAddress;
quint16 iremotePort = 0;
QList<QPair<QString, QString>> iuserDefinedValues;
QHttpConnection* const iconnection = nullptr;
};
///////////////////////////////////////////////////////////////////////////////
} // namespace server
} // namespace qhttp
///////////////////////////////////////////////////////////////////////////////
#endif // QHTTPSERVER_REQUEST_PRIVATE_HPP
| 1,417 | 390 |
#include <bits/stdc++.h>
using namespace std;
int ara1[10001], ara2[10001];
int main()
{
// freopen("myInput.txt","r",stdin);
// freopen("myOutput.txt","w",stdout);
int tcase;
scanf("%d",&tcase);
for(int t=1; t<=tcase; t++) {
int n,m;
scanf("%d %d",&n,&m);
for(int i=0; i<n; i++)
scanf("%d",&ara1[i]);
//printf("n %d m %d\n",n,m);
for(int j=0; j<m; j++)
scanf("%d",&ara2[j]);
//printf("kak2\n");
long long time=0;
for(int i=0,j=0;;) {
if((i==n && j== m-1) || (i==n-1 && j== m)) {
break;
}
if(i==n) {
time += ara2[j];
j++;
} else if(j==m) {
time+= ara1[i];
i++;
} else {
if(ara1[i]<ara2[j]) {
time+= ara1[i];
i++;
} else {
time += ara2[j];
j++;
}
}
}
printf("Case %d: %lld\n",t,time);
}
return 0;
}
| 1,151 | 440 |
#include <thread>
#include <Poco/Format.h>
#include <common/DigitalOut.hpp>
#include "Agp01Relays.hpp"
using namespace std;
Agp01Relays::Agp01Relays( int id ) :
DigitalOut(id) ,
myEN{gpiod::find_line("pioB21") } ,
myOHCL{ gpiod::find_line("pioB20") } ,
myOLCH{ gpiod::find_line("pioB19") } ,
mySel{ "relaySel" , {"pioB16","pioB17","pioB18"} , GpioBus::Direction::OUTPUT , 0 }
{
/* Populate the relay entries.
* Note that the very first AGP01 board had a bug that inverted
* the order of the Yn contacts.
* For these versions, the software can circumvent the issue by
* inverting the numerical order to put on the relay_sel bus,
* which is most likely seen below in '7-i'.
* With no bug the line should simply have 'i'
*/
myRelays.reserve(8);
for ( int i=0 ; i<8 ; i++ ) {
myRelays.emplace_back(Poco::format("Y%d",i+1),false,7-i);
}
gpiod::line_request req;
req.request_type = gpiod::line_request::DIRECTION_OUTPUT;
req.consumer = "agp01/relays/en";
myEN.request(req,1);
req.consumer = "agp01/relays/ol_ch";
myOLCH.request(req,0);
req.consumer = "agp01/relays/oh_cl";
myOHCL.request(req,0);
mySel.setValue(0);
}
std::vector<DigitalOut::Output> Agp01Relays::getOutputs() const
{
std::vector<Output> outs;
outs.reserve(myRelays.size());
for ( auto const& relay : myRelays ) {
outs.emplace_back(relay.name,relay.state);
}
return outs;
}
int Agp01Relays::setOut( string name , bool value )
{
for ( auto const&relay : myRelays ) {
if ( relay.name==name ) {
mySel.setValue(relay.id);
myOLCH.set_value(value?1:0);
myOHCL.set_value(value?0:1);
myEN.set_value(0);
std::this_thread::sleep_for(std::chrono::milliseconds{50});
myEN.set_value(1);
}
}
return -1;
}
| 1,957 | 754 |
#include "defines.h"
#include "log.h"
#include "Hardware/Timer.h"
#include "Recorder/Sensor.h"
#include <usbh_cdc.h>
#include <usbh_core.h>
#include <usbh_def.h>
static USBH_HandleTypeDef handle;
static int requestForReceive = 0;
#define RX_BUFF_SIZE 0x400
static uint8 bufferRX[RX_BUFF_SIZE];
static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8 id);
void Sensor::Init()
{
USBH_Init(&handle, USBH_UserProcess, 0);
USBH_RegisterClass(&handle, USBH_CDC_CLASS);
USBH_Start(&handle);
}
void Sensor::DeInit()
{
USBH_Stop(&handle);
USBH_DeInit(&handle);
}
void Sensor::Update()
{
USBH_Process(&handle);
}
void USBH_UserProcess(USBH_HandleTypeDef *, uint8 id)
{
switch(id)
{
case HOST_USER_SELECT_CONFIGURATION:
break;
case HOST_USER_DISCONNECTION:
USBH_CDC_Stop(&handle);
requestForReceive = 0;
break;
case HOST_USER_CLASS_ACTIVE:
if(requestForReceive == 0)
{
USBH_CDC_Receive(&handle, bufferRX, RX_BUFF_SIZE);
requestForReceive = 1;
}
break;
case HOST_USER_CONNECTION:
break;
}
}
void USBH_CDC_ReceiveCallback(USBH_HandleTypeDef *)
{
uint16 size = USBH_CDC_GetLastReceivedDataSize(&handle);
bufferRX[size] = 0;
LOG_WRITE("%s", bufferRX);
USBH_CDC_Receive(&handle, bufferRX, RX_BUFF_SIZE);
}
bool Sensor::IsActive()
{
return requestForReceive == 1;
}
| 1,452 | 578 |
////////////////////////////////////////////////////////////////
// MSDN -- August 2000
// If this code works, it was written by Paul DiLascia.
// If not, I don't know who wrote it.
// Largely based on original implementation by Michael Lemley.
// Compiles with Visual C++ 6.0, runs on Windows 98 and probably NT too.
//
// CFileDialogEx implements a CFileDialog that uses the new Windows
// 2000 style open/save dialog. Use companion class CDocManagerEx in an
// MFC framework app.
//
#include "stdafx.h"
#include <afxpriv.h>
#include "FileDialogEx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
static BOOL IsWin2000();
IMPLEMENT_DYNAMIC(CFileDialogEx, CFileDialog)
CFileDialogEx::CFileDialogEx(BOOL bOpenFileDialog, LPCTSTR lpszDefExt,
LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName,
dwFlags, lpszFilter, pParentWnd)
{
}
BEGIN_MESSAGE_MAP(CFileDialogEx, CFileDialog)
//{{AFX_MSG_MAP(CFileDialogEx)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL IsWin2000()
{
OSVERSIONINFOEX osvi;
BOOL bOsVersionInfoEx;
// Try calling GetVersionEx using the OSVERSIONINFOEX structure,
// which is supported on Windows 2000.
//
// If that fails, try using the OSVERSIONINFO structure.
ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
if( !(bOsVersionInfoEx = GetVersionEx ((OSVERSIONINFO *) &osvi)) )
{
// If OSVERSIONINFOEX doesn't work, try OSVERSIONINFO.
osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
if (! GetVersionEx ( (OSVERSIONINFO *) &osvi) )
return FALSE;
}
switch (osvi.dwPlatformId)
{
case VER_PLATFORM_WIN32_NT:
if ( osvi.dwMajorVersion >= 5 )
return TRUE;
break;
}
return FALSE;
}
//////////////////
// DoModal override copied mostly from MFC, with modification to use
// m_ofnEx instead of m_ofn.
//
int CFileDialogEx::DoModal()
{
ASSERT_VALID(this);
ASSERT(m_ofn.Flags & OFN_ENABLEHOOK);
ASSERT(m_ofn.lpfnHook != NULL); // can still be a user hook
// zero out the file buffer for consistent parsing later
ASSERT(AfxIsValidAddress(m_ofn.lpstrFile, m_ofn.nMaxFile));
DWORD nOffset = lstrlen(m_ofn.lpstrFile)+1;
ASSERT(nOffset <= m_ofn.nMaxFile);
memset(m_ofn.lpstrFile+nOffset, 0, (m_ofn.nMaxFile-nOffset)*sizeof(TCHAR));
// WINBUG: This is a special case for the file open/save dialog,
// which sometimes pumps while it is coming up but before it has
// disabled the main window.
HWND hWndFocus = ::GetFocus();
BOOL bEnableParent = FALSE;
m_ofn.hwndOwner = PreModal();
AfxUnhookWindowCreate();
if (m_ofn.hwndOwner != NULL && ::IsWindowEnabled(m_ofn.hwndOwner))
{
bEnableParent = TRUE;
::EnableWindow(m_ofn.hwndOwner, FALSE);
}
_AFX_THREAD_STATE* pThreadState = AfxGetThreadState();
ASSERT(pThreadState->m_pAlternateWndInit == NULL);
if (m_ofn.Flags & OFN_EXPLORER)
pThreadState->m_pAlternateWndInit = this;
else
AfxHookWindowCreate(this);
memset(&m_ofnEx, 0, sizeof(m_ofnEx));
memcpy(&m_ofnEx, &m_ofn, sizeof(m_ofn));
if (IsWin2000())
m_ofnEx.lStructSize = sizeof(m_ofnEx);
int nResult;
if (m_bOpenFileDialog)
nResult = ::GetOpenFileName((OPENFILENAME*)&m_ofnEx);
else
nResult = ::GetSaveFileName((OPENFILENAME*)&m_ofnEx);
memcpy(&m_ofn, &m_ofnEx, sizeof(m_ofn));
m_ofn.lStructSize = sizeof(m_ofn);
if (nResult)
ASSERT(pThreadState->m_pAlternateWndInit == NULL);
pThreadState->m_pAlternateWndInit = NULL;
// WINBUG: Second part of special case for file open/save dialog.
if (bEnableParent)
::EnableWindow(m_ofnEx.hwndOwner, TRUE);
if (::IsWindow(hWndFocus))
::SetFocus(hWndFocus);
PostModal();
return nResult ? nResult : IDCANCEL;
}
//////////////////
// When the open dialog sends a notification, copy m_ofnEx to m_ofn in
// case handler function is expecting updated information in the
// OPENFILENAME struct.
//
BOOL CFileDialogEx::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
memcpy(&m_ofn, &m_ofnEx, sizeof(m_ofn));
m_ofn.lStructSize = sizeof(m_ofn);
return CFileDialog::OnNotify( wParam, lParam, pResult);
}
////////////////////////////////////////////////////////////////
// The following functions are provided for testing purposes, to
// demonstrate that they in fact called; ie, that MFC's internal dialog
// proc is hooked up properly. Delete them if you like.
//
BOOL CFileDialogEx::OnFileNameOK()
{
TRACE(_T("CFileDialogEx::OnFileNameOK\n"));
return CFileDialog::OnFileNameOK();
}
void CFileDialogEx::OnInitDone()
{
TRACE(_T("CFileDialogEx::OnInitDone\n"));
CFileDialog::OnInitDone();
}
void CFileDialogEx::OnFileNameChange()
{
TRACE(_T("CFileDialogEx::OnFileNameChange\n"));
CFileDialog::OnFileNameChange();
}
void CFileDialogEx::OnFolderChange()
{
TRACE(_T("CFileDialogEx::OnFolderChange\n"));
CFileDialog::OnFolderChange();
}
void CFileDialogEx::OnTypeChange()
{
TRACE(_T("OnTypeChange(), index = %d\n"), m_ofn.nFilterIndex);
CFileDialog::OnTypeChange();
}
| 5,297 | 1,989 |
#include <sstream>
#include <fstream>
#include <codecvt>
#include <vector>
std::wstring tokenize(const std::wstring& s, int n) {
if (!s.size()) {
return s;
}
std::wstringstream ss;
ss << s[0];
for (int i = 1; i < s.size(); i+=n) {
ss << ' ' << s[i];
}
return ss.str();
}
static std::vector<char> readAllBytes(char const* filename)
{
std::ifstream ifs(filename, std::ios::binary|std::ios::ate);
std::ifstream::pos_type pos = ifs.tellg();
std::vector<char> result(pos);
ifs.seekg(0, std::ios::beg);
ifs.read(&result[0], pos);
return result;
}
std::string readFilehex(const char* filename)
{
std::ifstream fin(filename, std::ios::binary);
std::stringstream wss;
wss << std::hex << fin.rdbuf();
//out = tokenize(out, 8);
return wss.str();
}
std::wstring readFile8(const char* filename)
{
std::wifstream wif(filename);
wif.imbue(std::locale(std::locale(""), new std::codecvt_utf8<wchar_t>));
std::wstringstream wss;
wss << wif.rdbuf();
return wss.str();
}
std::wstring readFile16(const char* filename)
{
std::wifstream wif(filename);
wif.imbue(std::locale(std::locale(""), new std::codecvt_utf16<wchar_t>));
std::wstringstream wss;
wss << wif.rdbuf();
return wss.str();
} | 1,302 | 510 |
#include "thread.h"
#include <QDebug>
Thread::Thread(QStringList list, QStringList vList, QThread *parent) : QThread(parent), directories(list),virusList(vList) {
}
void Thread::run() {
emit scanStart();
foreach (QString element, directories) {
QDirIterator directory(element, QDirIterator::Subdirectories);
while (directory.hasNext()) {
if(!stopThread){
directory.next();
foreach (const QString &str, virusList) {
if (directory.fileName() == str){
emit infectedFiles(directory.filePath());
}
}
}
}
}
emit scanComplete();
}
| 737 | 203 |
//--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file RTT_Format_Reader/CellFlags.cc
* \author B.T. Adams
* \date Mon Jun 7 10:33:26 2000
* \brief Implementation file for RTT_Format_Reader/CellFlags class
* \note Copyright (C) 2016-2020 Triad National Security, LLC., All rights reserved. */
//------------------------------------------------------------------------------------------------//
#include "CellFlags.hh"
namespace rtt_RTT_Format_Reader {
//------------------------------------------------------------------------------------------------//
/*!
* \brief Parses the cell_flags data block of the mesh file via calls to private member functions.
* \param meshfile Mesh file name.
*/
void CellFlags::readCellFlags(ifstream &meshfile) {
readKeyword(meshfile);
readFlagTypes(meshfile);
readEndKeyword(meshfile);
}
//------------------------------------------------------------------------------------------------//
/*!
* \brief Reads and validates the cell_flags block keyword.
* \param meshfile Mesh file name.
*/
void CellFlags::readKeyword(ifstream &meshfile) {
string dummyString;
meshfile >> dummyString;
Insist(dummyString == "cell_flags", "Invalid mesh file: cell_flags block missing");
std::getline(meshfile, dummyString);
}
//------------------------------------------------------------------------------------------------//
/*!
* \brief Reads and validates the cell_flags block data.
* \param meshfile Mesh file name.
*/
void CellFlags::readFlagTypes(ifstream &meshfile) {
int flagTypeNum;
string dummyString;
for (size_t i = 0; i < static_cast<size_t>(dims.get_ncell_flag_types()); ++i) {
meshfile >> flagTypeNum >> dummyString;
Insist(static_cast<size_t>(flagTypeNum) == i + 1,
"Invalid mesh file: cell flag type out of order");
Check(i < flagTypes.size());
Check(i < INT_MAX);
flagTypes[i] = std::make_shared<Flags>(dims.get_ncell_flags(static_cast<int>(i)), dummyString);
std::getline(meshfile, dummyString);
flagTypes[i]->readFlags(meshfile);
}
}
//------------------------------------------------------------------------------------------------//
/*!
* \brief Reads and validates the end_cell_flags block keyword.
* \param meshfile Mesh file name.
*/
void CellFlags::readEndKeyword(ifstream &meshfile) {
string dummyString;
meshfile >> dummyString;
Insist(dummyString == "end_cell_flags", "Invalid mesh file: cell_flags block missing end");
std::getline(meshfile, dummyString); // read and discard blank line.
}
//------------------------------------------------------------------------------------------------//
/*!
* \brief Returns the index to the cell flag type that contains the specified string.
* \param desired_flag_type Flag type.
* \return The cell flag type index.
*/
int CellFlags::get_flag_type_index(string &desired_flag_type) const {
int flag_type_index = -1;
for (size_t f = 0; f < dims.get_ncell_flag_types(); f++) {
string flag_type = flagTypes[f]->getFlagType();
if (flag_type == desired_flag_type) {
Check(f < INT_MAX);
flag_type_index = static_cast<int>(f);
}
}
return flag_type_index;
}
} // end namespace rtt_RTT_Format_Reader
//------------------------------------------------------------------------------------------------//
// end of RTT_Format_Reader/CellFlags.cc
//------------------------------------------------------------------------------------------------//
| 3,514 | 996 |
//
// BasicObjects.hh
// Copyright (C) 2021 Richard Bradley
//
// Definitions for primitive object classes
//
#pragma once
#include "Object.hh"
// **** Types ****
class Disc final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Disc>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
BBox bound(const Matrix* t) const override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _normal;
};
class Cone final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Cone>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _baseNormal;
};
class Cube final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Cube>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _sideNormal[6];
};
class Cylinder final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Cylinder>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _endNormal[2];
};
class Paraboloid final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Paraboloid>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _baseNormal;
};
class Plane final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Plane>"; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
BBox bound(const Matrix* t) const override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Vec3 _normal;
};
class Sphere final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Sphere>"; }
// Object Functions
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
};
class Torus final : public Primitive
{
public:
// SceneItem Functions
std::string desc() const override { return "<Torus>"; }
int setRadius(Flt r) override { _radius = r; return 0; }
// Object Functions
int init(Scene& s, const Transform* tr) override;
BBox bound(const Matrix* t) const override;
int intersect(const Ray& r, HitList& hl) const override;
// Primitive Functions
Flt hitCost(const HitCostInfo& hc) const override;
Vec3 normal(const Ray& r, const HitInfo& h) const override;
private:
Flt _radius = .5;
};
| 3,816 | 1,236 |
// set insertion points for each work area
CPoint rgptWork[4];
for (int i = 0; i < 4; i++)
{
rgptWork[i].x = rcWorkAreas[i].left + 10;
rgptWork[i].y = rcWorkAreas[i].top + 10;
}
// now move all the items to the different quadrants
for (int i = 0; i < 20; i++)
{
m_WorkAreaListCtrl.SetItemPosition(i, rgptWork[i % 4]);
}
// force the control to rearrange the shuffled items
m_WorkAreaListCtrl.Arrange(LVA_DEFAULT); | 423 | 174 |