Foundation
Loading...
Searching...
No Matches
Classes | Functions
Precompute.hpp File Reference
#include <Core/Container.hpp>
#include <Core/JobSystem.hpp>
#include <Math/Math.hpp>
#include "Texture.hpp"

Go to the source code of this file.

Classes

struct  GSAlias
 
struct  AliasTable
 
struct  PiecewiseConstant1D
 
struct  PiecewiseConstant2D
 

Functions

bool AliasTableRunSelfTests (Allocator *alloc, String *outError=nullptr)
 
void PrefilterEnvmapSH9 (const FTexture &source, Span< float3 > sh9, JobSystem *jobs, Allocator *alloc)
 
FTexture PrefilterEnvmapSpecular (const FTexture &source, JobSystem *jobs, Allocator *alloc)
 
float ReflectionRoughnessFromMip (uint32_t mip, uint32_t numMips)
 
float ReflectionMipFromRoughness (float roughness, uint32_t numMips)
 

Function Documentation

◆ AliasTableRunSelfTests()

bool AliasTableRunSelfTests ( Allocator alloc,
String outError = nullptr 
)

◆ PrefilterEnvmapSH9()

void PrefilterEnvmapSH9 ( const FTexture source,
Span< float3 >  sh9,
JobSystem jobs,
Allocator alloc 
)

◆ PrefilterEnvmapSpecular()

FTexture PrefilterEnvmapSpecular ( const FTexture source,
JobSystem jobs,
Allocator alloc 
)

◆ ReflectionMipFromRoughness()

float ReflectionMipFromRoughness ( float  roughness,
uint32_t  numMips 
)

◆ ReflectionRoughnessFromMip()

float ReflectionRoughnessFromMip ( uint32_t  mip,
uint32_t  numMips 
)