From b98d9dcff3ae087577f009e6ff0db5d5d173be9c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 19 Apr 2021 13:47:08 -0700 Subject: [PATCH] clarify requirements --- .../include/filament/iblprefilter/IBLPrefilterContext.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/iblprefilter/include/filament/iblprefilter/IBLPrefilterContext.h b/libs/iblprefilter/include/filament/iblprefilter/IBLPrefilterContext.h index 68604a53cd..aec5e4b038 100644 --- a/libs/iblprefilter/include/filament/iblprefilter/IBLPrefilterContext.h +++ b/libs/iblprefilter/include/filament/iblprefilter/IBLPrefilterContext.h @@ -149,7 +149,12 @@ public: * Generates a prefiltered cubemap. * @param options Options for this environment * @param environmentCubemap Environment cubemap (input). Can't be null. - * @param outReflectionsTexture Output prefiltered texture or if null it is created. + * This cubemap must be SAMPLEABLE. + * @param outReflectionsTexture Output prefiltered texture or, if null, it is + * automatically created. outReflectionsTexture must + * be a cubemap, it must have at least COLOR_ATTACHMENT and + * SAMPLEABLE usages and at least the same number of levels + * than requested by Config. * @return returns outReflectionsTexture */ filament::Texture* operator()(Options options, @@ -157,7 +162,7 @@ public: filament::Texture* outReflectionsTexture = nullptr); /** - * Generates a prefiltered cubemap with the default options + * Generates a prefiltered cubemap with the default options. * @param environmentCubemap * @param outReflectionsTexture * @return