Skip to content

Instantly share code, notes, and snippets.

@ldl19691031
ldl19691031 / LightWeightSMActor.cpp
Created August 24, 2024 04:49
RenderStaticMeshWithoutComponentsinUnrealEngine
// Fill out your copyright notice in the Description page of Project Settings.
#include "LightWeightSMActor.h"
#include "Engine/StaticMeshActor.h"
#include "StaticMeshSceneProxyDesc.h"
#include "PrimitiveSceneDesc.h"
// Sets default values
ALightWeightSMActor::ALightWeightSMActor()
{
@ldl19691031
ldl19691031 / WorkGraphExampleShader.usf
Created August 16, 2024 12:13
UE DispatchComputeShaderBundle example
#include "/Engine/Private/Common.ush"
struct FShaderBundleNodeRecord
{
uint DispatchGridSize : SV_DispatchGrid;
};
#include "/Engine/Shared/HLSLReservedSpaces.h"
struct FUERootConstants
{
#include "RedCubeRendering.h"
#include "DepthRendering.h"
#include "DataDrivenShaderPlatformInfo.h"
#include "Engine/Engine.h"
#include "RendererInterface.h"
#include "StaticBoundShaderState.h"
#include "SceneUtils.h"
#include "EngineGlobals.h"
#include "Materials/Material.h"
#include "PostProcess/SceneRenderTargets.h"