Foundation
Loading...
Searching...
No Matches
Functions
Precompute.cpp File Reference
#include "Precompute.hpp"
#include <Core/JobSystem.hpp>
#include <cmath>
#include <numbers>

Functions

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

Function Documentation

◆ AliasTableRunSelfTests()

bool AliasTableRunSelfTests ( Allocator alloc,
String outError 
)

◆ 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 
)