Skip to content

Commit c73d576

Browse files
committed
other small fixes
1 parent ae94f67 commit c73d576

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/nbl/ext/FFT/FFT.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ core::smart_refctd_ptr<video::IGPUSpecializedShader> FFT::createKernelNormalizat
252252
const char* sourceFmt =
253253
R"===(#version 430 core
254254
255-
layout(local_size_x=%u, local_size_y=1, local_size_z=1) in;
255+
layout(local_size_x=256, local_size_y=1, local_size_z=1) in;
256256
257257
struct nbl_glsl_ext_FFT_output_t
258258
{
@@ -277,12 +277,11 @@ void main()
277277
}
278278
)===";
279279

280-
const size_t extraSize = 32;
280+
const size_t extraSize = 0;
281281

282282
auto shader = core::make_smart_refctd_ptr<ICPUBuffer>(strlen(sourceFmt)+extraSize+1u);
283283
snprintf(
284-
reinterpret_cast<char*>(shader->getPointer()),shader->getSize(), sourceFmt,
285-
DEFAULT_WORK_GROUP_X_DIM
284+
reinterpret_cast<char*>(shader->getPointer()),shader->getSize(), sourceFmt
286285
);
287286

288287
auto cpuSpecializedShader = core::make_smart_refctd_ptr<ICPUSpecializedShader>(

0 commit comments

Comments
 (0)