Comments (15)
Are you getting the
error still?
from shadeup.
It works now !
I added changed lines in usf file and now it works with this command "recompileshaders changed"
It does not work with AZERTY keyboard CTR + SHIFT + . !
Thanks a lot AskingQuestions
from shadeup.
Hey, thanks for the report!
I've just pushed a release (8629bd8) which should address the issues you're running into on 5.1.
Feel free to pull down the latest archive from the repo or download from the site and let me know if it's working for you. Thanks
Example of the Compute Shader RT build running in 5.1:
from shadeup.
Thanks and congrat !
RT works now.
How do you do to refresh shader ExampleComputeShader.usf without relaunch UE ?
With ComputeShader_mat I have this error :
from shadeup.
Awesome!
Ctrl
+ Shift
+ .
will recompile shaders. That should update your compute shader as you make changes
You'll also want to follow this guide from Epic on how to enable Shader development mode: https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Rendering/ShaderDevelopment/#retryingoncompileerrors
See the section that contains this:
Retrying on compile errors
With r.ShaderDevelopmentMode enabled, you will get the opportunity to retry on shader compile error. This is especially important for global shaders since it is a fatal error if they do not compile successfully.
In debug, with the debugger attached, you will hit a breakpoint and get the compile error in the Visual Studio output window. You can then Double-click the error log to be taken directly to the offending line.
from shadeup.
enable r.ShaderDevelopmentMode by setting it to 1
I change the .usf file in visual studio and Ctrl + Shift + . for recompile shaders and nothing change.
I just changed RenderTarget[DispatchThreadId.xy] = float3(1.0, 0.0, 0.0); to test
Any idea ?
from shadeup.
Hmm, was it rendering the checkerboard previously? Also, are you using the plain compute shader to render target example or the material to render target one?
If you're using the material to render target example please make sure the Use with virtual heightfield mesh
is checked off in the material editor for the material you're using:
from shadeup.
It rendering the checkerboard previously.
I use ComputeShader_rt.
I'm using the plain compute shader to render target and material with render target inside
from shadeup.
I still can't update the new shader !
Is it possible to add usf into UE5 ?
from shadeup.
Can you paste this into the usf file just as a sanity check and then restart the editor:
#include "/Engine/Public/Platform.ush"
RWTexture2D<float3> RenderTarget;
[numthreads(THREADS_X, THREADS_Y, THREADS_Z)]
void MySimpleComputeShader(
uint3 DispatchThreadId : SV_DispatchThreadID,
uint GroupIndex : SV_GroupIndex )
{
// Simple checkerboard
int x = floor(DispatchThreadId.x / 16.f);
int y = floor(DispatchThreadId.y / 16.f);
int c = (x + y % 2) % 2;
RenderTarget[DispatchThreadId.xy] = float3(1.0, 0.0, 0.0);
}
from shadeup.
I check usf and relaunch I have well the red color.
I have always the problem to refresh shader !
Any idea ?
from shadeup.
The only thing I can think of would be to add r.ShaderDevelopmentMode 1
to your ConsoleVariables.ini as per the ue guide
When working on shaders, be sure to enable r.ShaderDevelopmentMode by setting it to 1. The easiest way is to edit ConsoleVariables.ini so it is done every time you load. This will enable retry-on-error and shader development related logs and warnings.
Could there be any macro or external keyboard thing that's intercepting the Ctrl Shift . shortcut?
from shadeup.
I add r.ShaderDevelopmentMode 1 to my ConsoleVariables.in
I have a popup when I tape Ctrl Shift . but I think It is always at 100% no change detected.
It's the same !
I have "LoadingPhase": "PostConfigInit" it is correct ?
from shadeup.
I type this command :
recompileshaders changed
[2022.12.04-00.27.56:440][129]LogShaders: Shader directory mapping /ComputeShaderShaders -> ../../../../../../dev/UnrealProjects/CCA/Plugins/ComputeShader_Plugin/Shaders/ComputeShader/Private
[2022.12.04-00.27.57:431][129]LogShaderCompilers: Warning: [Searching for changed files] took [0.5761] s
[2022.12.04-00.27.57:432][129]LogShaderCompilers: Warning: No Shader changes found.
The path is it wrong ?
from shadeup.
Ah, glad to hear it, and happy to help!
from shadeup.
Related Issues (15)
- How to pass "Shared" buffer between Shader1 and Shader2 and Vertex Factory without CPU reading HOT 3
- UE5.3 compatibility - getting errors in compute shader base HOT 3
- UE5.2 compatibility - Indirect instancing
- UE5.3 Compile Errors : error LNK2019: unresolved external symbol HOT 5
- UE5.3 Passing StructuredBuffer to Shader HOT 1
- Shadeup compiler output failing with `useAnimationFrame = false`
- No issue : Add internal texture and uniform params to ComputeShader_rt HOT 6
- Zip decompression archive HOT 1
- Cannot run "Bare-bones material graph evaluation" example HOT 5
- Windows 10: The term 'shadeup' is not recognized HOT 1
- Cannot compile compute shader with material graph on 5.1 on macOS HOT 3
- [Base Computer Shader]: Output is always 0 in UE5.1.1 HOT 2
- Pass Buffer<float4> into compute shader HOT 4
- [Example Indirect Instancing] Error: "DrawsVelocity is not a member of FPrimitiveUniformShaderParametersBuilder" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadeup.